• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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