Primary Zelda Hacking

Oracles Hacking => Scripts => Topic started by: Gamma 31 on November 14, 2010, 01:51:39 AM



Title: Hooded Stalfos Overworld Miniboss
Post by: Gamma 31 on November 14, 2010, 01:51:39 AM
Here's a little battle I made up within two hours. It causes rocks (Tile 74) to block the exits and spawns a Stalfos. The rocks disappear when the Stalfos is beaten, and it doesn't return. Now, I wanted to have the Miniboss be the Giant Ghini (Level 1), but it wouldn't spawn; Would I need an extra interaction to get bosses/minibosses to spawn correctly? Also, ZOLE frequently reverted to an older version of the ROM; could this be related to ZOSE?

Code:
writelocation 33FF8
setinteraction72 0
jump3byte 1FEC5

writelocation 1FEC5
checkspecialflag
setmusic 2D
checkmemory D00B 65
checkmemory D00B 64
setcoords 18 58
createpuff
setcoords 18 58
settile 74
setcoords 78 48
createpuff
setcoords 78 48
settile 74
setcoords 78 58
createpuff
setcoords 78 58
settile 74
spawnenemy 49 0 38 58
checkenemycount
setcoords 18 58
createpuff
setcoords 18 58
settile 3A
setcoords 78 48
createpuff
setcoords 78 48
settile 3A
setcoords 78 58
createpuff
setcoords 78 58
settile 3A
setmusic 03
setroomflag 80


NOTE: A few times VBA gave me an opcode error, and the first time I compiled the script the screen got glitched after a few seconds of being in the screen the interaction was on. It hasn't glitched since, though.


Title: Re: Hooded Stalfos Overworld Miniboss
Post by: Lin on November 14, 2010, 02:10:40 AM
It would be great if you could tell me the unknown opcode error message. I, as well as others, have gotten that. Few reports on the actual detail of the message like the opcode and location have been reported though.

Cool script by the way. Every time you compile your ROM with ZOSE and you have ZOLE open, you need to re-open it in ZOLE (or ZOSE). This is even stated in the FAQ topic for ZOLE. As for the boss, I'm not sure. I haven't messed with those.


Title: Re: Hooded Stalfos Overworld Miniboss
Post by: Gamma 31 on November 14, 2010, 02:20:33 AM
Thanks! I'll make sure to look out for those errors in the future.


Title: Re: Hooded Stalfos Overworld Miniboss
Post by: Jigglysaint on November 14, 2010, 07:48:52 PM
The giant Ghini miniboss would be simplier to add as an actual enemy and have the script operate the rocks.  In fact the ghini miniboss also contains code that advances Link up a few squares, and that could even be altered to extend how far link travels.  You need to use F4 as an interaction type to set a boss or miniboss.  It could also just be that minibosses just don't work in the overworld.


Title: Re: Hooded Stalfos Overworld Miniboss
Post by: Gamma 31 on November 14, 2010, 08:25:30 PM
It seems like the latter is the case;putting the two Mini/boss interactions related to it in an overworld map just leads to Link walking up a few paces and then stopping. Oh, well.


Title: Re: Hooded Stalfos Overworld Miniboss
Post by: Jigglysaint on November 15, 2010, 04:01:20 AM
I've had that happen in dungeons when I entered by the wrong direction.  I wonder if there is a limitation as to what direction you need to enter from, or if it looks for a door interaction for it to work properly.