Primary Zelda Hacking

Oracles Hacking => Show Off => Topic started by: Lin on October 29, 2010, 02:44:18 AM



Title: Custom Event
Post by: Lin on October 29, 2010, 02:44:18 AM

This is an old post, using an old version of ZOSE. Although the script code will still be provided and some of it can still be used as an example, it is outdated and it is recommended you don't follow it for your script if you are using ZOSE 1.05 or a later version

Here's something I made to test ZOSE. Surprisingly, it all worked great.

http://www.youtube.com/watch?v=HTHGiBwLxvE

Here's the code for it:
Code:
writelocation 33FA6
setinteraction72 0
jump3byte 1BA3A

writelocation 1BA3A
checkspecialflag
setmusic 3A
checkmemory d00b 66
setcoords 78 18
createpuff
setdelay5
settile CE
setdelay6
setdelay6
setcoords 28 28
playsound 41
createpuff
setdelay5
setcoords 38 58
playsound 41
createpuff
setdelay5
setcoords 68 68
playsound 41
createpuff
setdelay6
setdelay6
spawnenemy 31 1 28 28
spawnenemy 31 1 38 58
spawnenemy 31 1 68 68
setmusic 2D
checkenemycount
setdelay5
setmusic 3A
playsound 4D
setcoords 28 78
createpuff
setdelay5
settile F1
setroomflag 80
setcoords 0 0

~Lin


Title: Re: Custom Event
Post by: Fatories on October 29, 2010, 07:07:19 PM
This is actually extremely awesome and I understand it :D Can't wait for ZOSE to come out.


Title: Re: Custom Event
Post by: Supreme Dirt on October 30, 2010, 06:50:23 PM
"checkspecialflag"... What is this?


Title: Re: Custom Event
Post by: Jigglysaint on October 31, 2010, 03:37:04 AM
The special flag is bit 7, and is used in various things like lock blocks, boss battles, and other things.  That being said if you put a lock block in the same room as a boss, unlocked it and left the room,when you return the boss will be defeated.