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

Help in making the 3rd skill of kardell in DoTA

Status
Not open for further replies.
Level 20
Joined
Jun 27, 2011
Messages
1,864
  • Take Aim
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Take Aim
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Take Aim for (Learning Hero)) Equal to 1
        • Then - Actions
          • Player - Set the current research level of Take Aim to 1 for (Owner of (Learning Hero))
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Take Aim for (Learning Hero)) Equal to 2
            • Then - Actions
              • Player - Set the current research level of Take Aim to 2 for (Owner of (Learning Hero))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Take Aim for (Learning Hero)) Equal to 3
                • Then - Actions
                  • Player - Set the current research level of Take Aim to 3 for (Owner of (Learning Hero))
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Level of Take Aim for (Learning Hero)) Equal to 4
                    • Then - Actions
                      • Player - Set the current research level of Take Aim to 4 for (Owner of (Learning Hero))
                    • Else - Actions
Just make an upgrade base on Long Rifle then edit it.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Hopefully his map has 1 unit-type of that unit per player, else, the trigger will bugged (not MUI).

Also, you should change the (Owner of (Learning Hero)) to (Triggering player), calls less function, works the same.

Also, (Triggering unit) == (Learning Hero), if you use (Triggering unit), it is faster call than (Learning Hero) because (Triggering unit) is the native response.
 
Level 8
Joined
Nov 30, 2012
Messages
255
Oh...
I don't have enough knowledge abou triggers, can you make it in a map and i will copy it only in my map.
plss
Take Aim
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Take Aim
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Take Aim for (Learning Hero)) Equal to 1
Then - Actions
Player - Set the current research level of Take Aim to 1 for (Owner of (Learning Hero))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Take Aim for (Learning Hero)) Equal to 2
Then - Actions
Player - Set the current research level of Take Aim to 2 for (Owner of (Learning Hero))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Take Aim for (Learning Hero)) Equal to 3
Then - Actions
Player - Set the current research level of Take Aim to 3 for (Owner of (Learning Hero))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Take Aim for (Learning Hero)) Equal to 4
Then - Actions
Player - Set the current research level of Take Aim to 4 for (Owner of (Learning Hero))
Else - Actions
Just make an upgrade base on Long Rifle then edit it.
 
Level 14
Joined
Nov 2, 2008
Messages
579
Here ya go. Nice & Simple.. Just copy the upgrade, ability and trigger.

  • Take Aim
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Take Aim
    • Actions
      • Player - Set the current research level of Take Aim to (Level of Take Aim for (Triggering unit)) for (Owner of (Triggering unit))
Edit: Forgot to change the player.. My bad. Fixed now.
 

Attachments

  • Kardell.w3x
    17.5 KB · Views: 90
Status
Not open for further replies.
Top