Users browsing this thread: 1 Guest(s)
HP Script (Zeemis)

#24
Posts: 33
Threads: 13
Thanks Received: 2
Thanks Given: 0
Joined: Jun 2009
Reputation: 6
Status
Vanish
BTB Wrote:I don't understand why you use the "if monster is in slot..." conditional for this purpose. It seems unnecessary.


The command (FC,19,01,00) "If the monster is in slot 1" seems unnecessary in the script. However, it's purpose was simply to prevent bugs from surfacing. There are times when the game responds just as expected and there are times when it does whatever it wants completely skipping over a set of bytes or an entire sequence. I haven't figured out the reason for this yet. I'm not sure if the Rom gets bugged when things are moved, or if curtain formations are the culprit. I do know that if you don't specify what the script should check, sometimes bugs will surface.

When I create a script, usually I prioritize what sequences are the most critical. The game seems to run fluent and efficiently once it knows which ones are the most important. For Example:

FC,0D,01,13, - If variable VAR001 is greater than or equal to 20
FC,12,00,00, - If following monster is/are dead:
F5,0C,01,FF, - Monsters #1, #2, #3, #4, #5, #6 are killed, dies like a boss
FE, - End If and reset targeting
FC,19,01,00, - If monster is in slot: #1
FC,12,00,00, - If following monster is/are dead:
F5,00,00,01, - Monsters #1 , if hidden/dead, brought in with their HP restored, suddenly
F8,01,81, - 1 added to VAR001
FE, - End If and reset targeting

This HP/Loop belongs to my Emperor Dragon. Even after death, you still receive the Exp and Items. I'm not certain why everyone else is having problems with their Loop. However, you can play test this in your custom designs and see if you receive your items.

This loop must be placed after (FF,) "End first wave of attack", and before (FC,05,00,00) "If monster has been attacked". Priority is placed in the monster dying like a boss and the (FC,19,01,00,) command is specified here for preventing bugs.

Contact me if your having problems.
Quote  



Messages In This Thread
HP Script (Zeemis) - by Zeemis - 06-07-2009, 12:02 AM
RE: HP Script (Zeemis) - by Ultima - 01-02-2010, 02:21 PM
RE: HP Script (Zeemis) - by SSJ Rick - 01-02-2010, 04:45 PM
RE: HP Script (Zeemis) - by Lord Envoy - 01-02-2010, 09:27 PM
RE: HP Script (Zeemis) - by SSJ Rick - 01-03-2010, 07:51 PM
RE: HP Script (Zeemis) - by smokehound - 04-23-2010, 02:44 AM
RE: HP Script (Zeemis) - by NeoBahamut - 03-09-2010, 05:50 PM
RE: HP Script (Zeemis) - by kefkaroth - 04-25-2010, 07:13 PM
RE: HP Script (Zeemis) - by Zeemis - 04-25-2010, 10:30 PM
RE: HP Script (Zeemis) - by kefkaroth - 04-26-2010, 12:08 PM
RE: HP Script (Zeemis) - by Zeemis - 04-26-2010, 01:51 PM
RE: HP Script (Zeemis) - by kefkaroth - 04-26-2010, 04:14 PM
RE: HP Script (Zeemis) - by Lord Envoy - 12-23-2010, 08:21 AM
RE: HP Script (Zeemis) - by kefkaroth - 03-17-2011, 09:26 PM
RE: HP Script (Zeemis) - by Gi Nattak - 03-17-2011, 09:42 PM
RE: HP Script (Zeemis) - by kefkaroth - 03-24-2011, 07:36 AM
RE: HP Script (Zeemis) - by Zeemis - 03-17-2011, 09:49 PM
RE: HP Script (Zeemis) - by kefkaroth - 03-18-2011, 07:45 PM
RE: HP Script (Zeemis) - by kefkaroth - 03-23-2011, 12:24 AM
RE: HP Script (Zeemis) - by Zeemis - 03-23-2011, 09:07 AM
RE: HP Script (Zeemis) - by MugenHeadNinja - 01-01-2012, 02:40 AM
RE: HP Script (Zeemis) - by madsiur - 01-01-2012, 02:50 AM
RE: HP Script (Zeemis) - by BTB - 06-18-2013, 02:18 PM
RE: HP Script (Zeemis) - by Lord Envoy - 06-18-2013, 03:05 PM
RE: HP Script (Zeemis) - by BTB - 07-03-2013, 04:59 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite