Execute_CreateSiteEvent
Description
Creates a site event (social event) from the specified SocialEventTemplate. The event start time is determined by S2 (TimeSettingType) with optional F1/F2 inputs. For Date-type categories the context Target is invited as a single party member; for other categories, role members are selected from the host's relationships and a customized event creation task is scheduled.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The host character who creates the site event. |
| S1 | SocialEventTemplateTable row ID identifying the event template. |
| S2 | TimeSettingType controlling when the event starts: |
| NextHour: earliest available full hour; NextNoon: earliest noon; | |
| CurrentHour: current hour rounded down; NextWeekday: next specified weekday; | |
| DaysFromNow: N days from now (N = F1). | |
| F1 | For NextWeekday: target weekday (Mon=0 … Sun=6). For DaysFromNow: number of days. |
| F2 | For NextWeekday / DaysFromNow: the hour of day at which to schedule the event. |
Examples
| Description | BaseObject | Command |
|---|---|---|
| Create the event at the earliest available full hour | Self | CreateSiteEvent |
| Create the event at the earliest available noon | Self | CreateSiteEvent |
| Create the event on the next Friday at 18:00 | Self | CreateSiteEvent |
| Create the event 3 days from now at 20:00 | Self | CreateSiteEvent |
Back to Command FinderSearch and filter all 399 Script Execution documents