Aslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=2390.msg27694e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexdfdd-2.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;area=showposts;sa=topics;u=337e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexdfdd-2.html.zxIh^{}OKtext/htmlISO-8859-1gzip@}Wed, 11 Mar 2020 02:31:37 GMT0 0PIh^} Monster AI - HP triggers

Author Topic: Monster AI - HP triggers  (Read 357 times)

Praetarius5018

  • Vargas
  • *
  • Posts: 88
    • View Profile
Monster AI - HP triggers
« on: August 05, 2017, 05:55:57 AM »
when I started I thought the HP conditions in enemy AI would be percentage so it wouldn't matter what I set HP to.
I was wrong, the checks are in absolute values ..

specifically I mean the likes of Magisa checking for her own HP to drop below 300 before she summons her husband.

does someone happen to have a list with enemies that even use any HP checks or a good method to find them?
367 entries are a bit much for me atm..

samurai goroh

  • FF5 Hacker
  • *
  • Posts: 221
  • Gender: Male
    • View Profile
    • My page
Re: Monster AI - HP triggers
« Reply #1 on: August 05, 2017, 08:55:02 AM »
It wasn't that hard (only 30) by searching in the Algorithm FAQ:

Bahamut, Byblos, Carbunkle (1st form), Conago, Dilure, Exdeath (Exdeath Castle), Exdeath (Final), Exdeath (Solo battle vs. Galuf), Galura (Waltz Tower), Gilgamesh (Bridge), Gilgamesh (Dungeon), Gilgamesh (ExDeath Castle), Gilgamesh (Ship), Gilgamesh (X-Zone), Gogo, Launcher (1), Launcher (2), Magisa, Mithril Drgn, Necrofobia, Necromancr, Neo X-Death (part1), Omniscient, Seal Guardian (Air), Seal Guardian (Earth), Seal Guardian (Fire), Seal, Guardian (Water), ShieldDrgn, Shinryuu, Sol Cannon

Code: [Select]
Mithril Drgn
    HP < 300{
Dilure
    HP < 300{
ShieldDrgn
    HP < 10000 & HP Damage{
Conago
    HP < 300{
Necromancr
    HP < 3000{
Magisa
    V00=00 & HP < 300{
Galura (Waltz Tower)
    HP < 800 & HP Damage{
Byblos
    HP < 800  &  HP Damage{
Launcher (1)
    HP Damage & HP < 10000{
Launcher (2)
    HP Damage & HP < 10000{
Sol Cannon
    HP Damage & HP < 10000{
Gilgamesh (Dungeon)
    HP < 10000 & HP Damage{
Gilgamesh (Bridge)
    HP < 2500 & HP Damage & V00=00{
Gilgamesh (Ship)
    HP < 6000{
Seal Guardian (Fire)
    HP < 3000{
Seal Guardian (Earth)
    HP < 3000{
Seal Guardian (Water)
    HP < 3000{
Seal Guardian (Air)
    HP < 3000{
Exdeath (Solo battle vs. Galuf)
    HP < 1{
    HP < 43000{
Carbunkle (1st form)
    HP < 3000{
    HP < 10000{
Gilgamesh (ExDeath Castle)
    HP < 42000 & V00=00 & HP Damage{
Exdeath (Exdeath Castle)
    HP < 16000{
    HP < 7000{
Omniscient
    HP < 4000{
Gogo
    HP < 33000 & HP Damage{
Bahamut
    HP < 10000{
    HP < 15000{
    HP < 20000{
    HP < 25000{
    HP < 30000{
    HP < 35000{
    HP < 10000 & Magic:Mega Flare{
Gilgamesh (X-Zone)
    HP < 30000{
Shinryuu
    HP < 20000 & HP Damage{
Necrofobia
    HP < 9999 & V01=00 & HP Damage & React:??{
Exdeath (Final)
    HP < 10000{
    HP < 30000{
Neo X-Death (part1)
    HP < 15000{
    HP < 30000{
I'm the best in the universe! Just remember! [F-zero X]

Praetarius5018

  • Vargas
  • *
  • Posts: 88
    • View Profile
Re: Monster AI - HP triggers
« Reply #2 on: August 05, 2017, 10:16:57 AM »
thanks, that helped a lot

Squall

  • Dark Dragon
  • *
  • Posts: 486
    • View Profile
Re: Monster AI - HP triggers
« Reply #3 on: August 07, 2017, 02:28:42 AM »
when I started I thought the HP conditions in enemy AI would be percentage so it wouldn't matter what I set HP to.
I was wrong, the checks are in absolute values ..
Absolute indeed. It is good and bad. Good because it reduce the code for the trigger, but if you change the monster HP value, you might have to tune the triggers too.

Praetarius5018

  • Vargas
  • *
  • Posts: 88
    • View Profile
Re: Monster AI - HP triggers
« Reply #4 on: August 07, 2017, 10:54:34 AM »
For me it is more bad than ok;
I've repurposed message speed as a difficulty selector which also affects enemy HP, so yeah..