![]() #Use to make a MapTag definition and set the value of a key inside. define arg1 - if = hello : - narrate Hello! - else if = goodbye : - narrate Goodbye! #Use to keep the value of a tag that you might use many times within a single script. define target ] | | null > - if = null : - narrate " Unknown player target." - stop - narrate "You targeted !" ![]() #Use to validate a player input to a command script, and then output the found player's name. size > - narrate " You have noticed blocks in the area that may be of interest." narrate "You invoke your power of notice." - define range - define blocks - define count ]. #Use to make complex tags look less complex, and scripts more readable. Returns the names of all definitions that were added to the current queue. ] > Returns the value of the specified definition. This command supports data actions, see Language: data actions.ĭefinitions can be sub-mapped with the '.' character, meaning a def named 'x.y.z' is actually a def 'x' as a MapTag with key 'y' as a MapTag with key 'z' as the final defined value. Such as by a 'run' command, without explicitly specifying to do so.ĭefinitions are lighter and faster than creating a temporary flag.ĭefinitions are also automatically removed when the queue is completed, so there is no worry for leaving unused data hanging around. Showing 43 search results for define out of 3714 meta-documentation entries.Ĭreates a temporary variable inside a script queue.ĭefinitions are queue-level 'variables' that can be used throughout a script, once defined, by using the ]> tag.ĭefinitions are only valid on the current queue and are not transferred to any new queues constructed within the script, Learn about how Denizen works in The Beginner's Guide.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |