Map designate ex
From Unofficial QEdit Wiki Guide
Revision as of 20:47, 29 April 2019 by LunarFuror (Talk | contribs)
Contents
Syntax
Syntax: map_designate_ex register
- register = register to start designations from.
Use
Specifies which map to load when entering a floor. Floors number up from 0 being pioneer2 or labo. Map numbers can be found in the table here.
This opcode reads the given register and the 4 following it in order. If we called map_designate_ex R40, it would read R40 R41 R42 R43 and R44.
In this example the registers would represent the following.
R40 = floor id R41 = map id R42 = ??? (leave at 0) R43 = variation R44 = ??? (leave at 0)
if is best
For GC use only. For Blue Burst see bb_map_designate. For v1 and v2 see map_designate.
Example
0: set_episode 00000001 //Defines we are playing in episode 2
leti R40, 00000000 //used to set floor id (floor 0)
leti R41, 00000012 //used to set the map id (labo)
leti R42, 00000000 //unknown, leave at 0 (note we only need to set this once)
leti R43, 00000000 //used to set the variation
leti R44, 00000000 //unknown leave at 0 (note we only need to set this once)
map_designate_ex R40 //use the previously set 5 registers to set floor 0, to labo
leti R40, 0000000A //used to set floor id (floor 10)
leti R41, 0000001C //used to set the map id (seabed upper)
leti R43, 00000002 //used to set the variation (map 3)
map_designate_ex R40 //use the previously set 5 registers to set floor 10, to seabed upper, variation 3
leti R40, 0000000B //used to set floor id (floor 11)
leti R41, 0000001D //used to set the map id (seabed lower)
leti R43, 00000002 //used to set the variation (map 3)
map_designate_ex R40 //use the previously set 5 registers to set floor 11, to seabed lower, variation 3
leti R40, 0000000D //used to set floor id (floor 13)
leti R41, 0000001F //used to set the map id (Olga Flow)
leti R43, 00000000 //used to set the variation
map_designate_ex R40 //use the previously set 5 registers to set floor 11, to seabed lower, variation 3
set_floor_handler 0000000A, 100 //Run label 100 when entering floor 10 (Seabed Upper)
set_floor_handler 0000000B, 200 //Run label 200 when entering floor 11 (Seabed Lower)
set_floor_handler 0000000D, 300 //Run label 300 when entering floor 13 (Olga Flow)
initial_floor 0000000A //Start players in Seabed Upper
get_difflvl2 R252 //Store off the difficulty for later use
get_number_of_player1 R251 //Store off the number of players for later use
0: ret
Also see
set_episode, set_floor_handler, initial_floor, bb_map_designate, map_designate, get_difflvl2, get_number_of_player1, ret