• 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] How i can improve this trigger?

Status
Not open for further replies.
Level 3
Joined
Apr 8, 2009
Messages
63
Hi, this trigger work, it give to an unit (Tauren warrior) some item when a player choos this character, but this trigger make the game freeze 1-2 sec

  • Guerriertaurenitem
    • Evénements
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Unit-type of (Triggering unit)) Egal Ã* Guerrier Tauren
    • Actions
      • Unit - Move (Triggering unit) instantly to (Center of Rez <gen>)
      • Unit - Change color of (Triggering unit) to Marron
      • Heros - Create Viande and give it to (Triggering unit)
      • Item - Set charges remaining in (Last created item) to 4
      • Heros - Create Eau fraiche and give it to (Triggering unit)
      • Item - Set charges remaining in (Last created item) to 8
      • Heros - Create Potion de vitesse and give it to (Triggering unit)
      • Item - Set charges remaining in (Last created item) to 4
      • Wait 2.00 seconds
      • Trigger - Turn off (This trigger)
I don't know how to improve this to remove this crazy freeze
 
Level 3
Joined
Apr 8, 2009
Messages
63
But if multiples player take an char the same time, does it won't set charges to an wrong item ?

(I have a trigger like this for all my characters)
 
Level 3
Joined
Apr 8, 2009
Messages
63
Try preloading the Tauren warrior and the items by setting both on the map and remove them after 0. seconds.

Place a tauren warrior, and all the item he will get to the ground somewhere on the map and remove them at start ?

I'll try

Edit : W00t it work =o
 
Status
Not open for further replies.
Top