Category:Script control flow
Jump to navigation
Jump to search
These script commands modify where execution continues next.
Comand | Context | Description |
---|---|---|
accept | Ignored | End script event execution with a positive result. |
destroy <entity> destroy <spell> | For self | Destroy an entity or spell. |
else | Ignored | Skip the next command block. |
gosub <label> | Ignored | Jump to a label and add a return point. |
goto <label> | Ignored | Jump to a label. |
if <needle*> iselement <haystack*> if <needle*> isin <haystack*> if <stringa*> isclass <stringb*> if <entity*> [!]isgroup <group*> if <entity*> istype <type*> if <stringa*> (==|!=) <stringb*> if <numbera*> (==|!=|<=|<|>=|>) <numberb*> | For self | Conditionally execute or skip the next command block. |
ifexistinternal <entity> | Ignored | Skip the next command block if an entity doesn't exist in the current level. |
ifvisible <entity> | Any Entity | Skip the next command block unless an entity is inside the cone of vision. |
random <chance*> | Ignored | Randomly execute or skip the next command block. |
refuse | Ignored | End script event execution with a negative result. |
replaceme <script> | Any Entity | Create a new replacement entity. |
return | Ignored | Jump to just after the previous gosub command. |
Pages in category "Script control flow"
The following 12 pages are in this category, out of 12 total.