Skip to main content

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

ParameterDescription
BaseObjectThe host character who creates the site event.
S1SocialEventTemplateTable row ID identifying the event template.
S2TimeSettingType 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).
F1For NextWeekday: target weekday (Mon=0 … Sun=6). For DaysFromNow: number of days.
F2For NextWeekday / DaysFromNow: the hour of day at which to schedule the event.

Examples

DescriptionBaseObjectCommand
Create the event at the earliest available full hourSelfCreateSiteEvent
Create the event at the earliest available noonSelfCreateSiteEvent
Create the event on the next Friday at 18:00SelfCreateSiteEvent
Create the event 3 days from now at 20:00SelfCreateSiteEvent