• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] Evolve trigger

Status
Not open for further replies.
Level 4
Joined
Jul 10, 2013
Messages
73
I'm trying to do a evolve trigger where once a person has enough currency they can upgrade with a chat string (-evolve int). I have the trigger here but I don't know why it isn't working.

  • evolve intellect1
    • Events
      • Player - Player 1 (Red) types a chat message containing -evolve int as An exact match
    • Conditions
      • (Player 1 (Red) Current lumber) Greater than or equal to 1500
      • (Owner of (Triggering unit)) Equal to Player 1 (Red)
    • Actions
      • Set Point = (Position of Hero1)
      • Player - Add -1500 to Player 1 (Red) Current lumber
      • Unit - Remove Hero1 from the game
      • Unit - Create 1 |CFF20C000Biomind (Intellect Hero) for Player 1 (Red) at Point facing Default building facing degrees
      • Special Effect - Create a special effect at Point using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Special Effect - Create a special effect at Point using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Custom script: call RemoveLocation(udg_Point)
I have my other trigger posted where I set the previous Hero1 variable.

  • player 1
    • Events
      • Map initialization
    • Conditions
      • (Player 1 (Red) slot status) Equal to Is playing
    • Actions
      • Set Point = (Random point in Starting Point <gen>)
      • Unit - Create 1 Player (Hero) for Player 1 (Red) at Point facing Default building facing degrees
      • Set Hero1 = (Last created unit)
      • Unit Group - Add (Last created unit) to HumansAlive
      • Hero - Create Body Armor and give it to (Last created unit)
      • Hero - Create Droid and give it to (Last created unit)
      • Player - Add 300 to Player 1 (Red) Current gold
      • Custom script: call RemoveLocation(udg_Point)
      • Selection - Select Hero1 for Player 1 (Red)
Edit: I figured it out lol, I had the wrong Condition: owner of trigger player should of been triggering player = player 1; I also realize i dont even need this condition.
 
Last edited:
Status
Not open for further replies.
Top