-
Notifications
You must be signed in to change notification settings - Fork 0
@SkillMenu
This trigger fires when a skill menu is displayed to a player. Note that the trigger only fires when Sphere attempts to display the menu through hardcoded behaviour, using the SKILLMENU command will not cause this trigger to fire.
Fires on:
The following object references are explicitly available for this trigger:
{| border="1" cellspacing="4" cellpadding="4" | Name || Description |- | I || The player who the menu is being shown to. |- | SRC || The player who the menu is being shown to. |}
The following arguments are set for this trigger. If an argument is marked as "In" then a value will be passed in to the trigger, if an argument is marked as "Out" then it can be set to a value to affect Sphere's behaviour:
{| border="1" cellspacing="4" cellpadding="4" | Argument || In/Out || Description |- | ARGS || I || The skillmenu's defname. This is expected to be one of the following:
- sm_alchemy
- sm_blacksmith
- sm_bolts
- sm_bowcraft
- sm_carpentry
- sm_cartography
- sm_inscription
- sm_polymorph
- sm_summon
- sm_tailor_cloth
- sm_tailor_leather
- sm_tinker |- | BIG change on X || I || https://github.com/Sphereserver/Source-X/blob/3b2c4d9c6dec393eaea725770bb86237e2a85074/Changelog.txt#L3408 |}
The following return values are explicitly defined for this trigger:
{| border="1" cellspacing="4" cellpadding="4" | Return Value || Description |- | 1 || Prevents the skillmenu from being displayed. |}
Category: Reference Compendium Category: Triggers