• 🏆 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!

no unit requirment

Status
Not open for further replies.
hello
i have a small problem with trigger
I need a no unit requirment like with the mothership in starcraft 2
but there is no no unit requirment in warcraft 3.
So i need to use my imagination this time
I created an upgrade named No Lurker (A player can control only one lurker at the time) and in trigger, ill make it researched or not researched if you have a lurker or no
Here is my problem
I made somes trigger like these one:
Trigger1
StartLurker
Events
Map initialization
Conditions
Actions
Player - Set the current research level of No Lurker to 1 for Player 1 (Red)
Player - Set the current research level of No Lurker to 1 for Player 2 (Blue)
...for all player

trigger 2
LurkerCREATION
Events
Unit - A unit Finishes training a unit
Conditions
(Unit-type of (Trained unit)) Equal to The Lurker
Actions
Player - Set the current research level of No Lurker to 0 for (Owner of (Triggering unit))

Trigger 3

LurkerDie
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to The Lurker
Actions
Player - Set the current research level of No Lurker to 1 for (Owner of (Triggering unit))

My problem: When a lurker is trained, the no lurker requirment doesnt change to level0
So the no lurker condition failed
So i was able to make as much lurker i want
please tell me what is the problem in these trigger
thx
(oh and plz
tell me how to make trigger looking like in the world editor on THW;))
 
Yes, you can't push back upgrade levels; in other words, upgrades cannot be degraded. To do what you want, use
  • Trigger
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • For each (IntegerA) from 1 to 12, do (Actions)
      • Loop - Actions
        • Player - Limit training of Lurker to 1 for (Player(IntegerA))
To get "Player(IntegerA)", when it asks you for a player input, scroll to Conversion -> Convert Player to Player Index.

The unit will automatically become available for training, once it dies.
 
Status
Not open for further replies.
Top