Giving bonuses for having a piece of armor?

Noritox

New Member
Reaction score
0
I want to make it so if a player has 3 pieces of this set of items he gains a bonus.

example if a player has "Chain armor, chain boots and chain helmet" he gets a movement speed bonus
 

WolfieeifloW

WEHZ Helper
Reaction score
372
If Hero carries (Item1) and (Item2) and (Item3) Then
increase his movement speed by X.
I'm guessing using an If/Then/Else, Multiple Functions statement will do the trick.

Search the Tutorials section too.
 

Noritox

New Member
Reaction score
0
Conditions
((Triggering unit) has an item of type |c0000e000Archimonde's Ring|r) Equal to True
((Triggering unit) has an item of type |c0000e000Archimonde's Studded Leather|r) Equal to True
((Triggering unit) has an item of type |c0000e000Archimonde's Symbol|r) Equal to True

Actions
Unit - Kill (Triggering unit)


(I'll change the Kill action once i get it working)
 

C0mput3r

New Member
Reaction score
20
Well, triggering unit might not work depending on your event.

Anyways.. here's a trigger example that I thought might work.

Just replace the 3 different Key of the moons with your archimonde armor set.
Code:
ArmorSetSpeedBonus
    Events
        Unit - A unit Acquires an item
    Conditions
        Or - Any (Conditions) are true
            Conditions
                (Item-type of (Item being manipulated)) Equal to Key of Three Moons
                (Item-type of (Item being manipulated)) Equal to Partial Key of the Three Moons
                (Item-type of (Item being manipulated)) Equal to Mooncrystal
    Actions
        For each (Integer A) from 1 to 6, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Item-type of (Item carried by (Triggering unit) in slot (Integer A))) Equal to Key of Three Moons
                    Then - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                (Item-type of (Item carried by (Triggering unit) in slot (Integer A))) Equal to Partial Key of the Three Moons
                            Then - Actions
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    If - Conditions
                                        (Item-type of (Item carried by (Triggering unit) in slot (Integer A))) Equal to Mooncrystal
                                    Then - Actions
                                        Unit - Set (Triggering unit) movement speed to ((Current movement speed of (Triggering unit)) + <however much you want>)
                                    Else - Actions
                            Else - Actions
                    Else - Actions
 

Dinowc

don't expect anything, prepare for everything
Reaction score
223
you don't need the condition "item being manipulated....."
you will probably want to set unit's ms back to normal after he loses the item
 

Noritox

New Member
Reaction score
0
it wouldnt work at all though, his speed wouldnt change

I also took out "item being manipulated"
 

Dinowc

don't expect anything, prepare for everything
Reaction score
223
well it should work....

Code:
e: unit acquires an item
   unit loses an item
   unit uses an item....
   or even unit starts the effect of an ability, whatever it has to do with a unit
c:
a: if then else
      if 
       triggering unit has item of type "1. item"
       triggering unit has item of type "2. item"
       triggering unit has item of type "3. item"
      then
       set triggering unit's movement speed to (default movement speed of triggering unit + (whatever))
      else
       set triggering unit's movement speed to (default movement speed of triggering unit)
 

Noritox

New Member
Reaction score
0
okay it works great, only for Else, it wont remove the advantage when they get rid of one of the items =/
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top