Difference between revisions of "BB Map Designate"
From Unofficial QEdit Wiki Guide
(Created page with "==Syntax== ''Syntax:'' <span style='font-size:12px;font-family:courier'><span style='color:green'>BB_Map_Designate</span> ww, xxxx, yy, zz</span> * ww = Floor number to place...") |
(→Example) |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 6: | Line 6: | ||
* yy = Map variation number. | * yy = Map variation number. | ||
* zz = unknown, leave at 00. | * zz = unknown, leave at 00. | ||
+ | |||
+ | The xxxx parameter is incorrectly identified in Qedit. It's actually two separate fields of one byte each, making all five arguments match [[map_designate_ex]] in usage. Changing the definition in the asm.txt for Qedit will break how Qedit recognizes maps designated with this opcode. | ||
==Use== | ==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 | + | 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 [https://sharnoth.com/psodevwiki/client/assets/area_mappings here]. Map numbers can be found in the table [[Map_ID_Table]]. |
− | For Blue Burst use only. For GC see [[map_designate_ex]] | + | |
+ | For Blue Burst use only. For GC see [[map_designate_ex]]. For v1 and v2 see [[map_designate]]. | ||
==Example== | ==Example== | ||
Line 24: | Line 27: | ||
<span style='color:green'> get_difflvl2 </span>R252<span style='color:orange'> //Store off the difficulty for later use</span> | <span style='color:green'> get_difflvl2 </span>R252<span style='color:orange'> //Store off the difficulty for later use</span> | ||
<span style='color:green'> get_number_of_player1 </span>R251<span style='color:orange'> //Store off the number of players for later use</span> | <span style='color:green'> get_number_of_player1 </span>R251<span style='color:orange'> //Store off the number of players for later use</span> | ||
− | <span style='color:blue'> | + | <span style='color:blue'>1: </span><span style='color:green'>ret</span> |
</span> | </span> | ||
==Also see== | ==Also see== | ||
[[set_episode]], [[set_floor_handler]], [[initial_floor]], [[map_designate_ex]], [[map_designate]], [[get_difflvl2]], [[get_number_of_player1]], [[ret]] | [[set_episode]], [[set_floor_handler]], [[initial_floor]], [[map_designate_ex]], [[map_designate]], [[get_difflvl2]], [[get_number_of_player1]], [[ret]] |
Latest revision as of 23:44, 12 December 2023
Contents
Syntax
Syntax: BB_Map_Designate ww, xxxx, yy, zz
- ww = Floor number to place the map on.
- xxxx = Map number to place on that floor.
- yy = Map variation number.
- zz = unknown, leave at 00.
The xxxx parameter is incorrectly identified in Qedit. It's actually two separate fields of one byte each, making all five arguments match map_designate_ex in usage. Changing the definition in the asm.txt for Qedit will break how Qedit recognizes maps designated with this opcode.
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. Map numbers can be found in the table Map_ID_Table.
For Blue Burst use only. For GC see map_designate_ex. For v1 and v2 see map_designate.
Example
0: set_episode 00000001 //Defines we are playing in episode 2
BB_Map_Designate 00, 0012, 00, 00 //Sets floor 0 to Labo
BB_Map_Designate 0A, 001C, 02, 00 //Sets floor 10 to Seabed Upper variation 3
BB_Map_Designate 0B, 001D, 02, 00 //Sets floor 11 to Seabed Lower variation 3
BB_Map_Designate 0D, 001F, 00, 00 //Sets floor 13 to Olga Flow
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
1: ret
Also see
set_episode, set_floor_handler, initial_floor, map_designate_ex, map_designate, get_difflvl2, get_number_of_player1, ret