About hero inventory..

louis_9300

New Member
Reaction score
3
Is there a trigger to check the hero's inventory ?
Example : The hero inventory has soul(item), so he will get a lvl 1 endurance, if "2 soul(item)" he will get lvl 2 endurance, if got 3 soul,he will get lv 3 endurance,is tat a trigger to make it?

Thx in advance....
:D
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
Code:
Untitled Trigger 001
    Events
    Conditions
    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 Soul(item)
                    Then - Actions
                        Unit - Set the custom value of (Triggering unit) to ((Custom value of (Triggering unit)) + 1)
                    Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Endurance Aura for (Triggering unit)) Equal to 0
            Then - Actions
                Unit - Endurance Aura to (Triggering unit)
            Else - Actions
        Unit - Set level of Endurance Aura for (Triggering unit) to (Custom value of (Triggering unit))

change the triggering unit to a variable or whatever you want.
 

louis_9300

New Member
Reaction score
3
> or whatever you want

You probably want to set the custom value to 0 at the beginning.

huh?? could u make a trigger in a sample map and attach it here?
and the goldmine only can allow 1 peon to take gold per interval,can i change to more peons to enter per interval?
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
Acehart means that you've got to set the units custom value to 0 before you run my trigger, otherwise it could get messed up if you run my trigger twice on the same hero.

change the skill 'Goldmine in the abilitys editor.
 

louis_9300

New Member
Reaction score
3
huh? i dn understand >.<
oh and can i set the goldmine can be use by different teams in the same time?
my goldmine under neutral and i have 10different teams tat wanna use it,but they cannot enter all at 1 time,they nid to wait till the player inside to come out of the goldmine before they can go in,
the error msg is : you cannot use goldmine from other teams...
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top