• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Two Trigger Problems...

Status
Not open for further replies.
Level 3
Joined
May 7, 2009
Messages
21
First problem is arranging spells in a spellbook to the order I want. I've tried enabling the spells in the correct during map initialization. So far no luck. Any advice? Maybe add .01 seconds between each?


Second problem is the replace unit trigger. My friend tried to find an answer in an earlier post but I'll clarify things here. There are 20 custom units, and 20 custom spells (matching up accordingly). Each unit has two spell books with 10 of the custom abilities in each. My trigger looks like this:

  • Event - A unit starts the effect of an ability.
  • Conditions
  • Actions - If - (Ability being cast) equal to CustomAbility01
    • Then - Replace (Triggering Unit) with CustomUnit01
    • ElseIf - (Ability being cast) equal to CustomAbility02
    • Then - Replace (Triggering Unit) with CustomUnit02
    • ElseIf - (Ability being cast) equal to CustomAbility03
    • Then - Replace (Triggering Unit) with CustomUnit03
    • ElseIf - (Ability being cast) equal to CustomAbility04
    • Then - Replace (Triggering Unit) with CustomUnit04
    • And so on down to 20
However, what's happening is whatever unit uses whatever custom spell, that unit is being replaced with a CustomUnit19 and a CustomUnit20.

Additional notes (Any of these the issues?):

Custom abilities were made using Roar
Didn't change any of the Order Strings



Thanks for any feedback.
 
Level 3
Joined
May 7, 2009
Messages
21
Scratch the first problem. The buttons are in order of the ability list in object editor.

However, for the second problem, the trigger is no longer returning CustomUnit19 and CustomUnit20. It's now replacing the triggering unit with CustomUnit11, and its corresponding CustomAbility11 happens to be the absolute last ability listed in the aforementioned spellbooks. Prior to changing, CustomAbility19 and CustomAbility20 were the last. Coincidence? I think not... Are the spellbooks messin with my trigger?
 
Status
Not open for further replies.
Top