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 976: | Line 976: | ||
* <code>pathfind_to_player spyder_route2_roddick</code> | * <code>pathfind_to_player spyder_route2_roddick</code> | ||
* <code>translated_dialog spyder_route2_roddick1</code> | * <code>translated_dialog spyder_route2_roddick1</code> | ||
* <code>start_battle | * <code>start_battle spyder_route2_roddick</code> | ||
=== pause_music === | === pause_music === | ||
Line 1,504: | Line 1,504: | ||
'''Examples''' | '''Examples''' | ||
* <code>start_battle | * <code>start_battle npc_maple</code> | ||
* <code>start_battle npc_maple,npc_apple</code> | * <code>start_battle npc_maple,npc_apple</code> | ||
Line 1,767: | Line 1,767: | ||
Let's say you want to set up and event for trading monsters. You need 3 events after creating the NPC in map. | Let's say you want to set up and event for trading monsters. You need 3 events after creating the NPC in map. | ||
* <code>monster1</code> (monster desired by the NPC) | * <code>monster1</code> (monster desired by the NPC) | ||
* <code>monster2</code> (monster the NPC wants to trade | * <code>monster2</code> (monster the NPC wants to trade) | ||
1st: if the player has the monster | 1st: if the player has the monster | ||
translated_dialog dialog_npc1 | |||
translated_dialog_choice yes:no,npc_willtrade | |||
talk npc_slug | |||
is has_monster monster1 | |||
not variable_set npc_hastraded:yes | |||
2nd: if the player hasn't the monster | 2nd: if the player hasn't the monster | ||
translated_dialog dialog_npc1 | |||
translated_dialog dialog_npc_nomonster1 | |||
talk npc_slug | |||
not has_monster monster1 | |||
not variable_set npc_hastraded:yes | |||
3rd: trading part | 3rd: trading part | ||
translated_dialog dialog_npc_willtrade | |||
get_player_monster name_variable | |||
trading name_variable,traded_monster | |||
set_variable npc_hastraded:yes | |||
is has_monster monster1 | |||
is variable_set npc_willtrade | |||
not variable_set npc_hastraded | |||
==== Get Party Monster ==== | ==== Get Party Monster ==== | ||
Let's say you want to add a tech to a monster (NPC). Eg. the NPC [[Rockitten]] needs to know [[Canine]], but [[Rockitten]] is the 4th monster (equal to 3rd slot). | Let's say you want to add a tech to a monster (NPC). Eg. the NPC [[Rockitten]] needs to know [[Canine]], but [[Rockitten]] is the 4th monster (equal to 3rd slot). | ||
add_monster rockitten,20,npc_slug,27,10 | |||
add_monster vivipere,20,npc_slug,27,10 | |||
add_monster budaye,20,npc_slug,27,10 | |||
add_monster rockitten,20,npc_slug,27,10 | |||
add_monster nut,20,npc_slug,27,10 | |||
get_party_monster npc_slug | |||
add_tech iid_slot_3,canine ---> iid_slot_3 followed by [[Canine]] | |||
start_battle npc_slug | |||
==== Battle Among NPCs (the player watches without interacting) ==== | ==== Battle Among NPCs (the player watches without interacting) ==== |