Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [event]
- name=multiple_rhaens
- first_time_only=yes
- [fade_out_music][/fade_out_music]
- {BLACK_SCREEN}
- [message]
- speaker=Elynia
- message= _ "What now..."
- [/message]
- {FOREACH dopple_locs i}
- [hidden_unit]
- side=2
- x,y=$dopple_locs[$i].x,$dopple_locs[$i].y
- type=$rhaen_proxy_store.type
- id="doppelganger_$($i+1)" # So their IDs are 1 and 2 not 0 and 1
- name=$rhaen_proxy_store.name
- experience=$rhaen_proxy_store.experience
- canrecruit=yes
- [/hidden_unit]
- {NEXT i}
- [delay]
- time=1000
- [/delay]
- [sound]
- name=thunder.ogg
- [/sound]
- [remove_shroud]
- side=1
- x=8-17,17-28
- y=1-13,7-13
- [/remove_shroud]
- # Scroll up
- [scroll_to]
- x,y=12,8
- [/scroll_to]
- {FADE_IN}
- [unserialize_and_activate_sides]
- side=2
- variable=rhaen_store
- [/unserialize_and_activate_sides]
- [unhide_unit]
- side=2
- [/unhide_unit]
- {INCIDENTAL_MUSIC ambuscade.ogg}
- [redraw][/redraw]
- # Table of locations of him and his doppelgangers
- [store_locations]
- [filter]
- type=$rhaen_proxy_store.type
- [/filter]
- variable=badguy_locs
- [/store_locations]
- # Proxy table still contains his original location, so we use that here
- {VARIABLE_RANDOM id_fix_index (1..$badguy_locs.length) }
- {VARIABLE real_loc ($rhaen_proxy_store.x,$rhaen_proxy_store.y)}
- {LOG_NX_DBG ("Index randomized to" + $id_fix_index + "real loc is " + $real loc)}
- {FOREACH badguy_locs i}
- {VARIABLE current_badguy_loc ($badguy_locs[$i].x,$badguy_locs[$i].y)}
- [scroll_to]
- x,y=$current_badguy_loc
- [/scroll_to]
- # Randomize which Rhaen is the real one through a simple id change
- # An id_fix_index of 1 means the original unit has been chosen, so take no action
- [if]
- {VARIABLE_NUMERICAL_NOT_EQUALS $current_badguy_loc $real_loc}
- {VARIABLE_NUMERICAL_EQUALS "$($i+1)" $id_fix_index}
- [then]
- {MODIFY_UNIT ("id=doppelganger_$($i+1)") id=Rhaen}
- {MODIFY_UNIT (x,y=$real_loc) id="doppelganger_$($i+1)"}
- [/then]
- [/if]
- [delay]
- time=300
- [/delay]
- {NEXT i}
- [message]
- speaker=Anathryis
- message= _ "By the gods, what has he done..."
- [/message]
- # Captain obvious
- [message]
- speaker=Niryone
- message= _ "(<i>troubled</i>) He appears to have replicated himself. But he is no mage or necromancer; how did he come across this power?"
- [/message]
- [message]
- speaker=doppelganger_2
- message= _ "You think you're a hero, but you're only a self-absorbed wose-born bitch who delights in making points with other people's lives!"
- [/message]
- [message]
- speaker=doppelganger_1
- message= _ "Your world will crumble and you will be able to do naught about it!"
- [/message]
- [message]
- speaker=Elynia
- message= _ "Do we really have to listen to the crazed ramblings of this madman? Can he even tell us what we want to know?"
- [/message]
- [message]
- speaker=Anathryis
- message= _ "There’s nowhere else to go! Just give us the answers we want and you may walk out of here with your life."
- [/message]
- [message]
- speaker=Rhaen
- message= _ "I am not so easily won. Though how do you even know..."
- [/message]
- [message]
- speaker=doppelganger_1
- message= _ "...this is really me talking?"
- [/message]
- [delay]
- time=1000
- [/delay]
- [message]
- speaker=Niryone
- message= _ "Then you leave us no choice, sorcerer."
- [/message]
- # [end_turn][/end_turn]
- {OBJECTIVES (
- {OBJECTIVE_VICTORY ( _ "Defeat the real Rhaen")}
- {OBJECTIVE_DEFEAT ( _ "Death of Niryone")}
- {OBJECTIVE_DEFEAT ( _ "Death of Elynia")}
- {OBJECTIVE_DEFEAT ( _ "Death of Anathryis")}
- {OBJECTIVE_CARRYOVER 40}
- )}
- # Clean up all the crud from setting up side 2
- # {CLEAR_VARIABLE rhaen_store,rhaen_proxy_store,dopple_locs,badguy_locs,current_badguy_loc,real_loc}
- [/event]
Advertisement
Add Comment
Please, Sign In to add comment