[Resolved] Blizz ABS Enemy Event Trigger Condition Checking Error

Started by CriticalHit, August 16, 2018, 05:31:03 pm

Previous topic - Next topic

CriticalHit

Hi,

I am using RMXP with Blizz ABS. I am having an issue getting the Enemy Event Trigger Condition Checking script to work.
I want to be able to run events for when an enemy is hit by a weapon as well as on enemy death.

Whenever I enter a map with an enemy event, I get this error:

NameError occurred while running script.
Uninitialized constant BlizzABS:CET.

There is no error at line information.

I'm trying to follow the instructions in the script but they are somewhat vague. Do the conditional statements and comment statement all need to be on one page? Am I suppose to put "Trigger:" at the top of the event page as a comment, right? Basically, I've tried everything I can think of and still get this error.
Any assistance is appreciated.

KK20

You know you can reply in the original script posting even if it says you're posting in an old topic. Keeps problems consolidated so other users can reference it.

Yes, the way to specify event triggers in BlizzABS is still the same as documented in the help file (i.e. putting the Comment at the top of the event list). Your conditional branch seems to be the problem. Please post it.

Also the video link is https://www.youtube.com/watch?v=PORaXNi4yiI

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

CriticalHit

Here is what I have in the event code of enemy \e[1]:
-----------------------------------------------------
@>Comment: Trigger:Weapon
@>Comment: Trigger:Death

@>Conditional Branch: Script: $game_map.events[@SELF].triggered?(BlizzABS::CETWeapon)
play getting hit sound
Branch end


@>Conditional Branch: Script: $game_map.events[@SELF].triggered?(BlizzABS::CETDeath)
$game_map.events[@SELF].triggered?(BlizzABS::CETDeath)
Play death sound
Branch end
---------------------------------

I want to play a sound when the enemy is hit by any weapon and a different sound when it dies. I got the example from the video to work with the weapon and action button. What happens when I use the code above is the hit sound is played and the enemy disappears. It does not "die" because it drops no gold nor gives no experience which I set it up to do in the database.
Any ideas on what is going wrong?


KK20

I briefly took a look and this appears to be a bug with Blizz-ABS. I haven't supported fixes for BABS in a while and I'm not really willing to dive through the code again to figure it out.

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

CriticalHit

That's fine, I understand if you don't want to look through the code. Do you have any suggestions on any scripts that will allow me to play sounds when an enemy is hit and a different sound when they are killed? If I were to modify the default rmxp/Blizz ABS code, how do you suggest I go about editing it to achieve what I want?

KK20

I assume each enemy has a different hit and death sound?

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

CriticalHit

I figured it out. It turns out I didn't need the script after all.
I put three comments at the top of the enemy event page.
Trigger:Weapon
Trigger:Skill
Trigger:Item

Then a conditional branch:

$BlizzABS.enemy_has_state?(@SELF, 1)
play death sound
else
play getting hit sound(s)

Thanks for all your help.s

KK20

Just know that the hit sound triggers if your attack misses.

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!