SHOW:
|
|
- or go back to the newest paste.
| 1 | [event] | |
| 2 | name=multiple_rhaens | |
| 3 | first_time_only=yes | |
| 4 | ||
| 5 | [fade_out_music][/fade_out_music] | |
| 6 | ||
| 7 | {BLACK_SCREEN}
| |
| 8 | ||
| 9 | [message] | |
| 10 | speaker=Elynia | |
| 11 | message= _ "What now..." | |
| 12 | [/message] | |
| 13 | ||
| 14 | {FOREACH dopple_locs i}
| |
| 15 | [hidden_unit] | |
| 16 | side=2 | |
| 17 | x,y=$dopple_locs[$i].x,$dopple_locs[$i].y | |
| 18 | type=$rhaen_proxy_store.type | |
| 19 | id="doppelganger_$($i+1)" # So their IDs are 1 and 2 not 0 and 1 | |
| 20 | name=$rhaen_proxy_store.name | |
| 21 | experience=$rhaen_proxy_store.experience | |
| 22 | canrecruit=yes | |
| 23 | [/hidden_unit] | |
| 24 | {NEXT i}
| |
| 25 | ||
| 26 | [delay] | |
| 27 | time=1000 | |
| 28 | [/delay] | |
| 29 | ||
| 30 | [sound] | |
| 31 | name=thunder.ogg | |
| 32 | [/sound] | |
| 33 | ||
| 34 | [remove_shroud] | |
| 35 | side=1 | |
| 36 | x=8-17,17-28 | |
| 37 | y=1-13,7-13 | |
| 38 | [/remove_shroud] | |
| 39 | ||
| 40 | # Scroll up | |
| 41 | [scroll_to] | |
| 42 | x,y=12,8 | |
| 43 | [/scroll_to] | |
| 44 | ||
| 45 | {FADE_IN}
| |
| 46 | ||
| 47 | [unserialize_and_activate_sides] | |
| 48 | side=2 | |
| 49 | variable=rhaen_store | |
| 50 | [/unserialize_and_activate_sides] | |
| 51 | ||
| 52 | [unhide_unit] | |
| 53 | side=2 | |
| 54 | [/unhide_unit] | |
| 55 | ||
| 56 | {INCIDENTAL_MUSIC ambuscade.ogg}
| |
| 57 | ||
| 58 | [redraw][/redraw] | |
| 59 | ||
| 60 | # Table of locations of him and his doppelgangers | |
| 61 | [store_locations] | |
| 62 | [filter] | |
| 63 | type=$rhaen_proxy_store.type | |
| 64 | [/filter] | |
| 65 | variable=badguy_locs | |
| 66 | [/store_locations] | |
| 67 | ||
| 68 | # Proxy table still contains his original location, so we use that here | |
| 69 | {VARIABLE_RANDOM id_fix_index (1..$badguy_locs.length) }
| |
| 70 | {VARIABLE real_loc ($rhaen_proxy_store.x,$rhaen_proxy_store.y)}
| |
| 71 | ||
| 72 | {LOG_NX_DBG ("Index randomized to" + $id_fix_index + "real loc is " + $real loc)}
| |
| 73 | ||
| 74 | {FOREACH badguy_locs i}
| |
| 75 | {VARIABLE current_badguy_loc ($badguy_locs[$i].x,$badguy_locs[$i].y)}
| |
| 76 | ||
| 77 | [scroll_to] | |
| 78 | x,y=$current_badguy_loc | |
| 79 | [/scroll_to] | |
| 80 | ||
| 81 | # Randomize which Rhaen is the real one through a simple id change | |
| 82 | # An id_fix_index of 1 means the original unit has been chosen, so take no action | |
| 83 | [if] | |
| 84 | {VARIABLE_NUMERICAL_NOT_EQUALS $current_badguy_loc $real_loc}
| |
| 85 | {VARIABLE_NUMERICAL_EQUALS "$($i+1)" $id_fix_index}
| |
| 86 | ||
| 87 | [then] | |
| 88 | - | {MODIFY_UNIT (id=doppelganger_$($i+1)) id=Rhaen}
|
| 88 | + | {MODIFY_UNIT ("id=doppelganger_$($i+1)") id=Rhaen}
|
| 89 | - | {MODIFY_UNIT (x,y=$real_loc) id=doppelganger_$($i+1)}
|
| 89 | + | {MODIFY_UNIT (x,y=$real_loc) id="doppelganger_$($i+1)"}
|
| 90 | [/then] | |
| 91 | [/if] | |
| 92 | ||
| 93 | [delay] | |
| 94 | time=300 | |
| 95 | [/delay] | |
| 96 | {NEXT i}
| |
| 97 | ||
| 98 | [message] | |
| 99 | speaker=Anathryis | |
| 100 | message= _ "By the gods, what has he done..." | |
| 101 | [/message] | |
| 102 | ||
| 103 | # Captain obvious | |
| 104 | [message] | |
| 105 | speaker=Niryone | |
| 106 | message= _ "(<i>troubled</i>) He appears to have replicated himself. But he is no mage or necromancer; how did he come across this power?" | |
| 107 | [/message] | |
| 108 | ||
| 109 | [message] | |
| 110 | speaker=doppelganger_2 | |
| 111 | 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!" | |
| 112 | [/message] | |
| 113 | ||
| 114 | [message] | |
| 115 | speaker=doppelganger_1 | |
| 116 | message= _ "Your world will crumble and you will be able to do naught about it!" | |
| 117 | [/message] | |
| 118 | ||
| 119 | [message] | |
| 120 | speaker=Elynia | |
| 121 | message= _ "Do we really have to listen to the crazed ramblings of this madman? Can he even tell us what we want to know?" | |
| 122 | [/message] | |
| 123 | ||
| 124 | [message] | |
| 125 | speaker=Anathryis | |
| 126 | message= _ "There’s nowhere else to go! Just give us the answers we want and you may walk out of here with your life." | |
| 127 | [/message] | |
| 128 | ||
| 129 | [message] | |
| 130 | speaker=Rhaen | |
| 131 | message= _ "I am not so easily won. Though how do you even know..." | |
| 132 | [/message] | |
| 133 | ||
| 134 | [message] | |
| 135 | speaker=doppelganger_1 | |
| 136 | message= _ "...this is really me talking?" | |
| 137 | [/message] | |
| 138 | ||
| 139 | [delay] | |
| 140 | time=1000 | |
| 141 | [/delay] | |
| 142 | ||
| 143 | [message] | |
| 144 | speaker=Niryone | |
| 145 | message= _ "Then you leave us no choice, sorcerer." | |
| 146 | [/message] | |
| 147 | ||
| 148 | # [end_turn][/end_turn] | |
| 149 | ||
| 150 | {OBJECTIVES (
| |
| 151 | {OBJECTIVE_VICTORY ( _ "Defeat the real Rhaen")}
| |
| 152 | ||
| 153 | {OBJECTIVE_DEFEAT ( _ "Death of Niryone")}
| |
| 154 | {OBJECTIVE_DEFEAT ( _ "Death of Elynia")}
| |
| 155 | {OBJECTIVE_DEFEAT ( _ "Death of Anathryis")}
| |
| 156 | ||
| 157 | {OBJECTIVE_CARRYOVER 40}
| |
| 158 | )} | |
| 159 | ||
| 160 | # Clean up all the crud from setting up side 2 | |
| 161 | # {CLEAR_VARIABLE rhaen_store,rhaen_proxy_store,dopple_locs,badguy_locs,current_badguy_loc,real_loc}
| |
| 162 | [/event] |