User Tools

Site Tools


builders:actionscripts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
builders:actionscripts [2025/10/24 20:55] amandabuilders:actionscripts [2025/10/24 21:01] (current) amanda
Line 5: Line 5:
 Scripts are triggered in a number of ways. Scripts are triggered in a number of ways.
  
-**On purchase from vendo** - sets action to that of property //defaultAction//, after interval of property //defaultActionTime//+**Directly**, by setting id_action and next_action (unixtime in seconds) which is when you want it to happen. 
 + 
 +**On purchase from vendo** - sets action to that of property //defaultAction//, with a delay of property //defaultActionTime//
  
 **On pick up of item** - ditto. **On pick up of item** - ditto.
  
-**On dropping an item** - sets action to that of property //dropAction//, after interval of property //dropActionTime//+**On dropping an item** - sets action to that of property //dropAction//, after delay of property //dropActionTime//
  
-**On sitting on an item** - sets action to that of property //sitAction//, after interval of property //sitActionTime//+**On sitting on an item** - sets action to that of property //sitAction//, after delay of property //sitActionTime//
  
 **On drinking a potion** - if potionType is set to //script**nn**// where **nn** is the id of a script, immediately execute script (only tick delay).  Properties //potionDrinkSelf// and //potionDrinkOthers// hold messages to display to the users. **On drinking a potion** - if potionType is set to //script**nn**// where **nn** is the id of a script, immediately execute script (only tick delay).  Properties //potionDrinkSelf// and //potionDrinkOthers// hold messages to display to the users.
  
  
 +If an action is intended to repeat itself, the script is responsible for setting a new //next_action// time and, of necessary, new //id_action// Default is for a script to be executed once and next_action time set to 0 (disabled)
  
  
builders/actionscripts.1761339327.txt.gz · Last modified: by amanda