Users browsing this thread: 1 Guest(s)
Need Some Help
06-08-2018, 12:49 AM
Okay, so I've done some other testing and stuff namely trying to get it so that the "Rain" command casts spells randomly (which it now does) and I've been able to add / swap some when needed but it still has the effect of making beneficial spells (like two positive Rain moves I've edited in) only work on the enemy. Like it won't switch targets like Dance / Rage does. I've messed around with a few things and either I have: beneficial and damaging spells hitting the enemy or beneficial and damaging spells hitting the party - but not the spells themselves hitting the right targets. I'm at a loss here because I don't know how to proceed.
Am I correct in assuming I would have to go look at code from Dance / Rage and copy them over? I'm just trying to figure out where to look here.
Am I correct in assuming I would have to go look at code from Dance / Rage and copy them over? I'm just trying to figure out where to look here.
06-08-2018, 09:38 AM
You're likely hardcoding a target, and you need to let the game pull the default target from the spell data. I wouldn't know much about that in general, but I suspect that's the case given what issues I've had with targetting myself.
06-08-2018, 03:00 PM
There's a data table that handles targetting, and one of the settings is to pull targetting data from the associated spell - I know I got this working for Pray and Ravage, but I don't remember exactly how, so I'll have to take a look through my old notes and see what I've got.
06-08-2018, 06:11 PM
(06-08-2018, 03:00 PM)GrayShadows Wrote: There's a data table that handles targetting, and one of the settings is to pull targetting data from the associated spell - I know I got this working for Pray and Ravage, but I don't remember exactly how, so I'll have to take a look through my old notes and see what I've got.
Thanks man! Whatever help you could offer I'd really appreciate.
06-14-2018, 12:05 PM
Take a look at $CFFE00 - the table there handles command targetting. It's a two byte table, and you want the second byte of each entry, so you're looking at $CFFE01 + (2*Command ID). Give it a try with $FF - that's what I used to pull targetting data from the spell being cast.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)