Skip to main content

Execute_CastPromVote

Description

Casts Self's prom vote for the NonBaseObject target in the given gender category. Requires Self to be enrolled in a school and NonBaseObject to resolve to a valid entity. Silently no-ops if Self has no school, the target is unresolved, or S1 is not Male/Female.

Parameters

ParameterDescription
BaseObjectThe voter (Self) — used to resolve the voter's school.
NonBaseObjectThe character being voted for (resolved automatically as the opposite of BaseObject).
S1EB1GenderType (Male/Female) — the prom royalty category being voted for.

Examples

DescriptionBaseObjectCommandS1
Self votes Target for Prom King (Male)SelfCastPromVoteMale
Self votes Target for Prom Queen (Female)SelfCastPromVoteFemale