• 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] Probably the strangest thing...

Status
Not open for further replies.
Level 3
Joined
Apr 20, 2005
Messages
34
  • Events
    • Unit - A unit owned by Player 11 (Dark Green) Changes owner
    • Conditions
      • (Unit-type of (Ownership-changed unit)) Equal to Mage
    • Actions
      • Unit - Add mage_spells[(Random integer number between 0 and 7)] to (Ownership-changed unit)
this isn't working. ive tried about 10 other versions, changing the event and everything that should follow such a change, but it still refuses to work. does anyone see a problem with it?

I tried just adding a straight spell rather than a random one, but that didnt work either, so theres nothing wrong with the variables.
 
Last edited by a moderator:
Level 3
Joined
Apr 20, 2005
Messages
34
Exactly. and its really depressing me.
Im working on a new kind of AoS in which rather than just picking you hero at the start of the game you get a redemption/vengeance spirit (based on your team) to take control of the creeps spawned at your base.
there will be roughly about 15 different classes of these spawned units and after having controlled this unit long enough, it will learn random class based spells periodically. if your unit dies however, the spirit will be expelled and you will have to take control of an entirely new unit.

now that you know what i'm aiming for, perhaps someone knows another way around this dilemma.

oh and griffen, what do you mean by checking if the trigger fires? the event?
 
Last edited by a moderator:
Level 11
Joined
Jul 12, 2005
Messages
764
Try not to make a separate trigger for adding the new ability. Instead, in the trigger where you put the action to change the owner of the unit, (check the unit's type, and) add the ability to the unit instantly.
I don't know what's wrong with it anyway...
 
Status
Not open for further replies.
Top