Difference between revisions of "@SkillMenu"

From SphereWiki
Jump to: navigation, search
 
Line 38: Line 38:
 
* sm_tailor_leather
 
* sm_tailor_leather
 
* sm_tinker
 
* sm_tinker
 +
|-
 +
| BIG change on X || I || https://github.com/Sphereserver/Source-X/blob/3b2c4d9c6dec393eaea725770bb86237e2a85074/Changelog.txt#L3408
 
|}
 
|}
  

Latest revision as of 02:53, 3 June 2024

Description

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:


References

The following object references are explicitly available for this trigger:

Name Description
I The player who the menu is being shown to.
SRC The player who the menu is being shown to.


Arguments

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:

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


Return Values

The following return values are explicitly defined for this trigger:

Return Value Description
1 Prevents the skillmenu from being displayed.