Author Topic: [Resolved] Blizz ABS Enemy Event Trigger Condition Checking Error  (Read 316 times)

Offline CriticalHit

  • Trained Member
  • *
  • Posts: 27
  • LV: 0
    • View Profile
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.
« Last Edit: August 17, 2018, 10:44:24 PM by CriticalHit »

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3165
  • LV: 378
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: Blizz ABS Enemy Event Trigger Condition Checking Error
« Reply #1 on: August 16, 2018, 11: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



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


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

Join the CP Discord Server!

Offline CriticalHit

  • Trained Member
  • *
  • Posts: 27
  • LV: 0
    • View Profile
Re: Blizz ABS Enemy Event Trigger Condition Checking Error
« Reply #2 on: August 17, 2018, 01:36:15 AM »
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?


Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3165
  • LV: 378
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: Blizz ABS Enemy Event Trigger Condition Checking Error
« Reply #3 on: August 17, 2018, 09: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.



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


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

Join the CP Discord Server!

Offline CriticalHit

  • Trained Member
  • *
  • Posts: 27
  • LV: 0
    • View Profile
Re: Blizz ABS Enemy Event Trigger Condition Checking Error
« Reply #4 on: August 17, 2018, 09: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?

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3165
  • LV: 378
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: Blizz ABS Enemy Event Trigger Condition Checking Error
« Reply #5 on: August 17, 2018, 09:36:08 PM »
I assume each enemy has a different hit and death sound?



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


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

Join the CP Discord Server!

Offline CriticalHit

  • Trained Member
  • *
  • Posts: 27
  • LV: 0
    • View Profile
Re: [Resolved] Blizz ABS Enemy Event Trigger Condition Checking Error
« Reply #6 on: August 17, 2018, 10: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

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3165
  • LV: 378
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: [Resolved] Blizz ABS Enemy Event Trigger Condition Checking Error
« Reply #7 on: August 17, 2018, 11:08:57 PM »
Just know that the hit sound triggers if your attack misses.



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


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

Join the CP Discord Server!