The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.3.33 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Users browsing this thread: 1 Guest(s)
Trying to understand subroutines

#1
Posts: 378
Threads: 94
Thanks Received: 17
Thanks Given: 26
Joined: Jul 2013
Reputation: 11
Status
Charmed
I was told I could expand the space in events by using subroutines; however, their mechanics looked difficult to learn so I decided to stay away from them.
Now that I'm better at scripting I gave it a go but I can't seem to get the hang of it. Here's what I'm doing.

When you talk to Cyan after the phantom train departs, you wait (B5 05) then displays the "Cyan: ..." message and ends. I decided to start a subroutine there (replacing the B5 with B2 and so on). I went to free space located at 010118 (CA/FF18?), so I went with B2 18 FF 01 FE.

On CA/FF18 I wrote my code, ended it with FE and returned. As I was afraid the game freezes (game stays still forever, doesn't shut down) whenever I speak to Cyan instead of supposedly doing whatever it is on CA/FF18. I'm posting a picture of my WindHex, hoping you can help me figure out why this isn't working for me.

[Image: untitled_1_by_kugawattan-d9jesk2.png]

Thanks in advance.


Step forward, spriters! We are also responsible to make hacks look new and fresh, we are no less important than code or ASM hackers! CHARGE!!
Quote  



Messages In This Thread
Trying to understand subroutines - by Kugawattan - 12-07-2015, 11:50 PM
RE: Trying to understand subroutines - by madsiur - 12-08-2015, 12:31 AM
RE: Trying to understand subroutines - by Catone - 12-08-2015, 07:26 AM
RE: Trying to understand subroutines - by Catone - 12-08-2015, 09:22 AM
RE: Trying to understand subroutines - by Catone - 12-08-2015, 10:33 AM
RE: Trying to understand subroutines - by Catone - 12-08-2015, 01:39 PM
RE: Trying to understand subroutines - by Catone - 12-08-2015, 02:47 PM
RE: Trying to understand subroutines - by Catone - 12-08-2015, 03:58 PM
RE: Trying to understand subroutines - by Catone - 12-08-2015, 07:15 PM
RE: Trying to understand subroutines - by madsiur - 12-08-2015, 07:23 PM
RE: Trying to understand subroutines - by Catone - 12-08-2015, 09:57 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite