• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

A unit enters problem

Status
Not open for further replies.
Level 7
Joined
Feb 23, 2020
Messages
253
This trigger works perfectly fine, but i cant use the action "set max hp", "set life" nor "set damage".
It works if i gives them an ability but why cant i just change it to i.e, damage x 0.6 as in the example on Medium

  • Bonus
    • Events
      • Unit - A unit enters Spawn 1 <gen>
      • Unit - A unit enters Spawn 2 <gen>
      • Unit - A unit enters Spawn 3 <gen>
      • Unit - A unit enters Spawn 4 <gen>
      • Unit - A unit enters Spawn 5 <gen>
      • Unit - A unit enters Spawn 6 <gen>
      • Unit - A unit enters Spawn 7 <gen>
      • Unit - A unit enters Spawn 8 <gen>
      • Unit - A unit enters Spawn 9 <gen>
      • Unit - A unit enters Spawn 10 <gen>
      • Unit - A unit enters Spawn 11 <gen>
      • Unit - A unit enters Spawn 12 <gen>
      • Unit - A unit enters Spawn 13 <gen>
    • Conditions
      • (Owner of (Triggering unit)) Equal to Player 12 (Brown)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • EasyDiff Equal to True
        • Then - Actions
          • Do nothing
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • MediumDiff Equal to True
            • Then - Actions
              • Unit - Set Max HP of (Triggering unit) to 5000
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • HardDiff Equal to True
                • Then - Actions
                  • Unit - Add Creeps Bonus damage (Hard) to (Triggering unit)
                  • Unit - Set level of Creeps Bonus damage (Hard) for (Triggering unit) to WaveCount
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • VeryHardDiff Equal to True
                    • Then - Actions
                      • Unit - Add Creeps Bonus damage (Very Hard) to (Triggering unit)
                      • Unit - Set level of Creeps Bonus damage (Very Hard) for (Triggering unit) to WaveCount
                    • Else - Actions
 
Level 12
Joined
Mar 13, 2020
Messages
421
First of all you think wrong
Try to do Integers and for each unit runs in Medium for Example it counts +1 and then at the end you do something like
if Hard is Grather Medium then do
If Medium is Grather then Hard do

and then you put in for the Life
Handicap from 100% to 150% for Neutral Hostile that changes the Hp Prozentual...

Edit: Maybe I Miss Understood what you want can you explain it?
 
Last edited:
Level 7
Joined
Feb 23, 2020
Messages
253
First of all you think wrong
Try to do Integers and for each unit runs in Medium for Example it counts +1 and then at the end you do something like
if Hard is Grather Medium then do
If Medium is Grather then Hard do

and then you put in for the Life
Handicap from 100% to 150% for Neutral Hostile that changes the Hp Prozentual...

Edit: Maybe I Miss Understood what you want can you explain it?
Well, the vote system itself is nothing that i have a problem with. Only setting the life of the units after a difficluty has been set. I tried the handicap but it doesnt seem too work either :/
 
Level 7
Joined
Feb 23, 2020
Messages
253
Handicap worked for me fine..
Try it again and show me the Trigger..
  • Bonus
    • Events
      • Unit - A unit enters Spawn 1 <gen>
      • Unit - A unit enters Spawn 2 <gen>
      • Unit - A unit enters Spawn 3 <gen>
      • Unit - A unit enters Spawn 4 <gen>
      • Unit - A unit enters Spawn 5 <gen>
      • Unit - A unit enters Spawn 6 <gen>
      • Unit - A unit enters Spawn 7 <gen>
      • Unit - A unit enters Spawn 8 <gen>
      • Unit - A unit enters Spawn 9 <gen>
      • Unit - A unit enters Spawn 10 <gen>
      • Unit - A unit enters Spawn 11 <gen>
      • Unit - A unit enters Spawn 12 <gen>
      • Unit - A unit enters Spawn 13 <gen>
    • Conditions
      • (Owner of (Triggering unit)) Equal to Player 12 (Brown)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • EasyDiff Equal to True
        • Then - Actions
          • Do nothing
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • MediumDiff Equal to True
            • Then - Actions
              • Player - Set Player 12 (Brown) handicap to 200.00%
              • Unit - Add Creeps Bonus damage (Medium) to (Triggering unit)
              • Unit - Set level of Creeps Bonus damage (Medium) for (Triggering unit) to WaveCount
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • HardDiff Equal to True
                • Then - Actions
                  • Unit - Add Creeps Bonus damage (Hard) to (Triggering unit)
                  • Unit - Set level of Creeps Bonus damage (Hard) for (Triggering unit) to WaveCount
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • VeryHardDiff Equal to True
                    • Then - Actions
                      • Unit - Add Creeps Bonus damage (Very Hard) to (Triggering unit)
                      • Unit - Set level of Creeps Bonus damage (Very Hard) for (Triggering unit) to WaveCount
                    • Else - Actions
It's like this, also, the trigger is runningg correctly since the AD is still given.

Edit: Okay it works now, thank very much mate.
 
Level 12
Joined
Mar 13, 2020
Messages
421
  • Bonus
    • Events
      • Unit - A unit enters Spawn 1 <gen>
      • Unit - A unit enters Spawn 2 <gen>
      • Unit - A unit enters Spawn 3 <gen>
      • Unit - A unit enters Spawn 4 <gen>
      • Unit - A unit enters Spawn 5 <gen>
      • Unit - A unit enters Spawn 6 <gen>
      • Unit - A unit enters Spawn 7 <gen>
      • Unit - A unit enters Spawn 8 <gen>
      • Unit - A unit enters Spawn 9 <gen>
      • Unit - A unit enters Spawn 10 <gen>
      • Unit - A unit enters Spawn 11 <gen>
      • Unit - A unit enters Spawn 12 <gen>
      • Unit - A unit enters Spawn 13 <gen>
    • Conditions
      • (Owner of (Triggering unit)) Equal to Player 12 (Brown)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • EasyDiff Equal to True
        • Then - Actions
          • Do nothing
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • MediumDiff Equal to True
            • Then - Actions
              • Player - Set Player 12 (Brown) handicap to 200.00%
              • Unit - Add Creeps Bonus damage (Medium) to (Triggering unit)
              • Unit - Set level of Creeps Bonus damage (Medium) for (Triggering unit) to WaveCount
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • HardDiff Equal to True
                • Then - Actions
                  • Unit - Add Creeps Bonus damage (Hard) to (Triggering unit)
                  • Unit - Set level of Creeps Bonus damage (Hard) for (Triggering unit) to WaveCount
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • VeryHardDiff Equal to True
                    • Then - Actions
                      • Unit - Add Creeps Bonus damage (Very Hard) to (Triggering unit)
                      • Unit - Set level of Creeps Bonus damage (Very Hard) for (Triggering unit) to WaveCount
                    • Else - Actions
It's like this, also, the trigger is runningg correctly since the AD is still given.

Edit: Okay it works now, thank very much mate.

No I know this Issue :) sometimes I miss or forget to place something test 10 times around and then I find the solution it was a simple mistake :p
 
Status
Not open for further replies.
Top