Hero inventory check trigger problems

louis_9300

New Member
Reaction score
3
I made a trigger that checks if the hero gain 1 soul,the ability of the item will be lvl 1.
2soul=lv 2
3soul=lv 3
all the way to lvl 6.

But seems that it has some problems on it ...

Code:
Soul
    Events
        Unit - A unit Acquires an item
    Conditions
        ((Hero manipulating item) has an item of type |cff32cd32Corrupted Soul) Equal to True
    Actions
        Set Item = 0
        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 (Hero manipulating item) in slot (Integer A))) Equal to |cff32cd32Corrupted Soul
                    Then - Actions
                        Set Item = (Item + 1)
                    Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Item Greater than or equal to 1
            Then - Actions
                Unit - Increase level of Corupt Soul Aura  for (Hero manipulating item)
                Sound - Play GoodJob <gen>
            Else - Actions
 

Azlier

Old World Ghost
Reaction score
461
You said there are problems with it. I'm not psychic yet, I'm too busy learning telekenesis. What is the problem?
 

the_ideal

user title
Reaction score
61
Try replacing hero manipulating item with triggering unit. Sometimes information like hero manipulating item can get lost (somehow =p) in the trigger.

Other than that, I can't find any problems with it. I'm assuming it doesn't run?
 

louis_9300

New Member
Reaction score
3
Try replacing hero manipulating item with triggering unit. Sometimes information like hero manipulating item can get lost (somehow =p) in the trigger.

Other than that, I can't find any problems with it. I'm assuming it doesn't run?

It still does'nt work even i change it to triggering unit...
btw is there a trigger to check for -ms of the current hero in game?
 

LightChaosma

New Member
Reaction score
60
change
Code:
Unit - Increase level of Corupt Soul Aura  for (Hero manipulating item)
into
Code:
Unit - Set level of Corupt Soul Aura  for (triggering unit) to item
 

louis_9300

New Member
Reaction score
3
if you wish, values only get lost after a wait ;) so no problems here

Code:
Soul
    Events
        Unit - A unit Acquires an item
    Conditions
        ((Hero manipulating item) has an item of type |cff32cd32Corrupted Soul|r) Equal to True
    Actions
        Set Item = 0
        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 (Hero manipulating item) in slot (Integer A))) Equal to |cff32cd32Corrupted Soul|r
                    Then - Actions
                        Set Item = (Item + 1)
                    Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Item Greater than or equal to 1
            Then - Actions
                Unit - Increase level of Corupt Soul Aura  for (Triggering unit)
                Sound - Play GoodJob <gen>
            Else - Actions

this trigger won't work ...
 

LightChaosma

New Member
Reaction score
60
change

unit - Increase level of Corupt Soul Aura for (triggering unit)

to

Unit - Set level of Corupt Soul Aura for (triggering unit) to item
 
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