- 7
- Posts
- 3
- Years
- Seen Nov 8, 2021
I wanted to insert the below level 1 setmaptile script into the game, where defeating certain trainers and reaching a certain flag spawns warp tiles in the top floor of a cave and also removes one barrier (so you dont have to walk the whole way everytime). While the warps generally work the tiles dont change, so the warps only work on the way out and the removal of the barrier also just doesnt happen. I tested with the compare command and without and with special 0x8E and without. I looked up the level scripts from vanilla firered where the same thing happens and basically copied what they did, but it still doesnt work. Can someone help me with that?
Spoiler:
Code:
'---------------
#org 0x904595
checktrainerflag 0x16D
if 0x1 call 0x89045A5
checktrainerflag 0x16C
if 0x1 call 0x89045C1
checkflag 0x220
if 0x1 call 0x89045D8
checktrainerflag 0x15C
if 0x1 call 0x89045F4
end
'---------------
#org 0x9045A5
setmaptile 0xD 0x11 0x390 0x0
special 0x8E
return
'---------------
#org 0x9045C1
setmaptile 0x1 0x11 0x390 0x0
special 0x8E
return
'---------------
#org 0x9045D8
setmaptile 0x7 0x11 0x390 0x0
special 0x8E
return
'---------------
#org 0x9045F4
setmaptile 0x16 0xC 0x282 0x0
setmaptile 0x17 0xC 0x281 0x0
setmaptile 0x17 0xB 0x281 0x0
setmaptile 0x17 0xA 0x281 0x0
setmaptile 0x16 0xB 0x282 0x0
setmaptile 0x16 0xA 0x281 0x0
setmaptile 0x17 0xD 0x281 0x0
special 0x8E
return