• 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.

Triggers wont work

Status
Not open for further replies.
Level 7
Joined
Apr 3, 2007
Messages
293
My unit replacing trigger is not working. When you pick up the armor, you change from "Spy" to that unit. Which works, but when you drop it you should turn back into "Spy", but the game completely crashes, no warning, no nothing, just exits. I thin kit has something to do with the item trasfuring, any help?

On the trigger "Footman armor Aquire" pic, below the pic is the same exact trigger u see, but for different color players.
 

Attachments

  • untitled2.JPG
    untitled2.JPG
    88.5 KB · Views: 183
  • untitled.JPG
    untitled.JPG
    64.9 KB · Views: 117
Level 18
Joined
Aug 23, 2008
Messages
2,319
PS: Post your triggers between [ TRIGGER ] tags. Just right-click your trigger title (the one above 'Events') and choose Copy As Text. Then paste is between the tags and you got a trigger like this:
  • Sample
    • Events
      • Unit - I show you the trigger tags info
    • Conditions
      • TeachedPlayer Equal to DredLord2
    • Actions
      • Set TriggerTagKnowledge = True
 
I guess the trigger will enter in an infinite loop...

The spy acquires the suit. Then it loses all of its items. Then it is replaced. Then it gets the items back. Ok.

But when he loses the suit, the items will be dropped, then it will be replaced and turn into a spy. Then it will get the suit back again! And turn into that unit again.

And that unit will have all its items dropped. Gosh! It will turn into a spy again!!

And so on...

I suggest you to use Trigger - Turn off Footman Armor Drop in the beggining of the first trigger (before dropping ANY item) and Trigger - Turn on Footman Armor Drop in the end (after every item is given back).

Do the same in the second trigger, but turn off/on the first one.

How do I get the "Choas" ability to be casted onto the unit?

Just add it to the unit you wish to change.
 
Level 10
Joined
Jun 16, 2007
Messages
415
Chaos is an ability used by blizzard to change units quickly. For example, when you research Berserker Rage for the Troll Spears in wc3 melee, all trolls will get new models (is in fact a new unit). So just take the Chaos(Troll) spell from the standard orc unit spells, edit the unit it should change to, and then add the "Chaos" spell to it via trigger.
 
Level 7
Joined
Apr 3, 2007
Messages
293
Ok, I made 2 chaos abilities, 1 to turn into footman, and other to turn back into assassin. Turning into footman works just fine, but when turning back into assassin it messes up. When u pick up the armor, "Apply Footman Armor" (chaos ability) activates, turning ur model into footman. When you drop the armor "Remove Footman Armor" (2nd chaos abiltiy) should then activate turning u back into assassin, but instead the character dies, but it does not play his death animation. I put the triggers below, but I named them wrong so look at 2.jpg first, then 1.jpg, then 3.jpg. No where do I see anything that would make the character die... I also put up the chaos abilities. Any more ideas?
 

Attachments

  • 2.JPG
    2.JPG
    20.7 KB · Views: 75
  • 1.JPG
    1.JPG
    19.3 KB · Views: 67
  • 3.JPG
    3.JPG
    16.9 KB · Views: 65
  • Apply Footman Armor Ability.JPG
    Apply Footman Armor Ability.JPG
    83.5 KB · Views: 33
  • Remove Footman Armor Ability.JPG
    Remove Footman Armor Ability.JPG
    85.2 KB · Views: 52
Level 7
Joined
Apr 3, 2007
Messages
293
The game does not crash anymore, when the unit drops the item, he does turn back into an assassin, but, its a dead assassin... Doesnt make sense. I alrdy posted the triggers and abilities, let me now if u think it might be something else.
 
Level 7
Joined
Apr 3, 2007
Messages
293
Hey! I got it to work! I didnt have to use chaos ability, all I had to do is use basic, remove/create triggers... The reason it didnt work the first time is caus I tried to transfur the items in inventory between the 2 units... :p It may look crapy this way, but at least it works.
 
Status
Not open for further replies.
Top