Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: CriticalHit on August 16, 2018, 05:31:03 pm

Title: [Resolved] Blizz ABS Enemy Event Trigger Condition Checking Error
Post by: CriticalHit on August 16, 2018, 05:31:03 pm
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.
Title: Re: Blizz ABS Enemy Event Trigger Condition Checking Error
Post by: KK20 on August 16, 2018, 05:44:08 pm
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
Title: Re: Blizz ABS Enemy Event Trigger Condition Checking Error
Post by: CriticalHit on August 16, 2018, 07:36:15 pm
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?

Title: Re: Blizz ABS Enemy Event Trigger Condition Checking Error
Post by: KK20 on August 17, 2018, 03:21:59 pm
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.
Title: Re: Blizz ABS Enemy Event Trigger Condition Checking Error
Post by: CriticalHit on August 17, 2018, 03:30:59 pm
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?
Title: Re: Blizz ABS Enemy Event Trigger Condition Checking Error
Post by: KK20 on August 17, 2018, 03:36:08 pm
I assume each enemy has a different hit and death sound?
Title: Re: [Resolved] Blizz ABS Enemy Event Trigger Condition Checking Error
Post by: CriticalHit on August 17, 2018, 04:48:13 pm
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
Title: Re: [Resolved] Blizz ABS Enemy Event Trigger Condition Checking Error
Post by: KK20 on August 17, 2018, 05:08:57 pm
Just know that the hit sound triggers if your attack misses.