øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=1287.msg12975e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexa78f-2.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;u=6;area=showposts;start=990e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexa78f-2.html.zx›Ÿh^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ@>sOKtext/htmlISO-8859-1gzip0|ÖsÿÿÿÿÿÿÿÿWed, 11 Mar 2020 08:38:11 GMT0ó°° ®0®P®€§²ð®šŸh^<s FF4 Battle Scripting Tips

Author Topic: FF4 Battle Scripting Tips  (Read 2222 times)

Deathlike2

  • FF4 R&D Master
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
FF4 Battle Scripting Tips
« on: December 17, 2009, 06:00:15 PM »
I'm not sure how this will apply to FF4A (noone has decoded that stuff yet, so I can't comment on the feasibility there), but this should help people try to work against an archaic system.

Despite being relatively archaic, the battle script system can be modded to react to a number of commands (like Steal/Sneak). This is very similar to FF6 where this is a common occurrence. You would have to specifically modify the list of counter/reaction list for this to work.

Another feature is that you can have enemies run special scripts due to the current status. FF4A definitely takes advantage of this (I'm not sure FF6 or FF5 does them in their scripts). So if a monster has Mute/Silence status, it could use an attack that ignores said status... like making a TinyMage to use the MomBomb's Explode spell while under Mute.

One of the unfortunate limitations of the system is that you can only have one attack per counter. It is impossible for example to execute the double hit as a counter. There are a few ways to work around this...

Cagnazzo's battle script involved modifying a variable that starts to trigger a different battle script sequence... now this can lend to a host of things...
1) The appearance of a specific enemy can trigger a different battle sequence altogether. This is "different" from having solo enemy or single group formations... For instance, I've written it so that the presence of the IceBeast would change the battle script run by a Chimera. In fact, if you wanted to, you could run a fixed-mix of counters that a monster can run.

If you have spent any time with the Soldier-Officer battle script (the save Rydia boss battle), the "Provoke" spell as I call it can allow you to do really cool things. In the battle, it is used to tell the Soldiers to attack. The Soldier's counter script "responds" to the Provoke spell, thus making them attack. I've played around with this extensively, to the point where a monster in a particular formation (specifically its current group) would run a specific counter attack. For example, if a monster is in group 1, it would Fight, but if the same monster is in group 2, it would cast some spell of sorts. This will require some tweaking of the counter code (it is easily moddable as said before) and it would increase the # of attacks possible by a monster group, w/o having to tweak around with the monster's speed/agility.

I may have forgotten a few things, but these are worth looking into in trying to expand a system which is ultimately very predictable, but you can get very creative in a very predictable system.
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: FF4 Battle Scripting Tips
« Reply #1 on: December 18, 2009, 06:48:04 AM »
Yeah, I daresay FF4 allows you to be more creative than FF6, though FF6's system is definitely more powerful. Another simple thing I really like is how you can override a spell's targeting - this is something I always wanted to do in my scripts in FF6, but it's not possible.

Deathlike2

  • FF4 R&D Master
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: FF4 Battle Scripting Tips
« Reply #2 on: December 18, 2009, 08:40:39 AM »
Yeah, I daresay FF4 allows you to be more creative than FF6, though FF6's system is definitely more powerful. Another simple thing I really like is how you can override a spell's targeting - this is something I always wanted to do in my scripts in FF6, but it's not possible.

There are some consequences attempting to override a spell's targeting in this game. I forget off the top of my head what... I do recall two instances:

1) I think I used Dispel instead of Black Hole in my modded Magus Sister battle because the overridden targeting did not go the way I expected... it didn't target every sister for some reason...

2) Spells that are normally splitting don't react the same when "unsplit" (or was it the other way around???). I forget how this works, but the damage dealt is far lower than it should, it uses a multiplier of 1 or so when it shouldn't...

 :edit: The second issue applies more to monsters targeting themselves... probably a consequence of the first issue.

2nd :edit: Fixed the multiplier bit in point #2.
« Last Edit: December 18, 2009, 09:19:49 AM by Deathlike2 »
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3