Editing Event Reference

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1,307: Line 1,307:
'''Examples'''  
'''Examples'''  
* <code>set_layer 255:0:0:128</code>
* <code>set_layer 255:0:0:128</code>
=== set_mission ===
Set mission.
'''Parameters'''
* <code>character</code>: Either "player" or npc slug name (e.g. "npc_maple").
* <code>slug</code>: slug mission
* <code>operation</code>: add, remove or change
* <code>status</code>: completed, pending, failed (default pending)
'''Examples'''
* <code>set_mission mission1</code>
* <code>set_mission mission1,change,completed</code>


=== set_money ===
=== set_money ===
Line 1,332: Line 1,319:
* <code>set_money player,500</code>
* <code>set_money player,500</code>


=== set_monster_attribute ===
=== set_mission ===
Set the given attribute of the monster to the given value.
Set mission.


'''Parameters'''  
'''Parameters'''  
* <code>variable</code>: Name of the variable where to store the monster id.
* <code>character</code>: Either "player" or npc slug name (e.g. "npc_maple").
* <code>attribute</code>: Name of the attribute.
* <code>slug</code>: slug mission
* <code>value</code>: Value of the attribute.
* <code>operation</code>: add, remove or change
* <code>status</code>: completed, pending, failed (default pending)


'''Examples'''  
'''Examples'''  
* <code>set_monster_attribute name_variable,name,jimmy</code> (the monster will be named jimmy)
* <code>set_mission mission1</code>
* <code>set_mission mission1,change,completed</code>


=== set_monster_flair ===
=== set_monster_flair ===
Line 1,380: Line 1,369:
* <code>get_player_monster name_variable</code>
* <code>get_player_monster name_variable</code>
* <code>set_monster_level name_variable,1</code>
* <code>set_monster_level name_variable,1</code>
=== set_monster_plague ===
Cure or infect a monster.
'''Parameters'''
* <code>variable</code>: Name of the variable where to store the monster id. If no variable is specified, all monsters get the condition. (optional)
* <code>condition</code>: inoculated, healthy or infected, default healthy (optional)
'''Examples'''
* <code>set_monster_plague</code> (all the monsters in the party are healthy)
or
* <code>get_player_monster name_variable</code>
* <code>set_monster_plague name_variable,infected</code>


=== set_monster_status ===
=== set_monster_status ===
Line 1,404: Line 1,406:
'''Examples'''  
'''Examples'''  
* <code>set_char_attribute character,attribute,value</code>
* <code>set_char_attribute character,attribute,value</code>
=== set_party_attribute ===
Set the given attribute of party's monsters to the given value.
'''Parameters'''
* <code>character</code>: Either "player" or character slug name (e.g. "npc_maple").
* <code>attribute</code>: Name of the attribute.
* <code>value</code>: Value of the attribute.
'''Examples'''
* <code>set_party_attribute player,name,jimmy</code> (all the monsters in the party will be named jimmy)


=== set_party_status ===
=== set_party_status ===

Please note that all contributions to Tuxepedia are considered to be released under the Creative Commons Attribution-ShareAlike (see Tuxepedia:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)