Blight Aura

snmiglight

Active Member
Reaction score
3
is it possible to make a code in GUI that turns on and off a skill when the hero is in blighted area? ie: an endurance aura that turns on when the hero is in blight and turns off when not on blight... thnx in advance ^^
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
Pick all units that is <your unit type> every 0.2 second or so, then check if the location of the unit is Blighted.
If no, remove the ability and add a dummy ability that does nothing.
If yes, remove the dummy ability and add the real ability.
 

snmiglight

Active Member
Reaction score
3
i dont have an editor at hand i'll check that later... anyways thnks in fast reply ^^
 

waaaks!

Zinctified
Reaction score
255
yep u can do that, to make it easier, create a unit ability with the endurance aura buff, and make it have 5 levels (if u have 4 levels skill, then make it 5) for the tooltips from level 1 to level 4, put the right tooltip of the bonus given, and the bonuses, and in level 5, put a tooltip saying "ur unit is not on a blighted terrain", then remove the bonus attack and move speed given

then use darkrae's method on giving the ability and removing it, but u dont need to add and remove it, all u need to do is add the ability, if the ability has levels, then set the level for it to the level of the hero ability, and if its not in a blighted area, then set the level to 5, making the ability show the tooltip u created before
 

snmiglight

Active Member
Reaction score
3
What's wrong with this? I tried to make two skills get swapped whether the hero is in the blight or not... endurance should be working on blight; while devotion should be working on unblighted terrain... but it does work the wrong way! (devotion aura shows at blight!) help!

Trigger:
  • On Blight
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and ((Level of Blight&#039;s Boon [Learning Skill] for (Matching unit)) Greater than 0))) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Position of (Picked unit)) is blighted) Equal to True
              • ((Picked unit) has buff Devotion Aura) Equal to True
            • Then - Actions
            • Else - Actions
              • Unit - Add Blight&#039;s Boon [Endurance Aura] to (Picked unit)
              • Unit - Set level of Blight&#039;s Boon [Endurance Aura] for (Picked unit) to (Level of Blight&#039;s Boon [Learning Skill] for (Picked unit))
              • Unit - Remove Blight&#039;s Boon [Devotion Aura] from (Picked unit)
              • Unit - Remove Devotion Aura buff from (Picked unit)


Trigger:
  • Not on Blight
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and ((Level of Blight&#039;s Boon [Learning Skill] for (Matching unit)) Greater than 0))) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Position of (Picked unit)) is blighted) Equal to False
              • ((Picked unit) has buff Endurance Aura) Equal to True
            • Then - Actions
            • Else - Actions
              • Unit - Add Blight&#039;s Boon [Devotion Aura] to (Picked unit)
              • Unit - Set level of Blight&#039;s Boon [Devotion Aura] for (Picked unit) to (Level of Blight&#039;s Boon [Learning Skill] for (Picked unit))
              • Unit - Remove Blight&#039;s Boon [Endurance Aura] from (Picked unit)
              • Unit - Remove Endurance Aura buff from (Picked unit)


EDIT: is there any way to make these two codes into a single code?
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
Code:
Blight Based Ability
    Events
        Time - Every 0.30 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and ((Level of Blight's Boon [Learning Skill] for (Matching unit)) Greater than 0))) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Position of (Picked unit)) is blighted) Equal to False
                        ((Picked unit) has buff Endurance Aura) Equal to True
                    Then - Actions
                        Unit - Add Blight's Boon [Devotion Aura] to (Picked unit)
                        Unit - Set level of Blight's Boon [Devotion Aura] for (Picked unit) to (Level of Blight's Boon [Learning Skill] for (Picked unit))
                        Unit - Remove Blight's Boon [Endurance Aura] from (Picked unit)
                        Unit - Remove Endurance Aura buff from (Picked unit)
                    Else - Actions
                        Unit - Add Blight's Boon [Endurance Aura] to (Picked unit)
                        Unit - Set level of Blight's Boon [Endurance Aura] for (Picked unit) to (Level of Blight's Boon [Learning Skill] for (Picked unit))
                        Unit - Remove Blight's Boon [Devotion Aura] from (Picked unit)
                        Unit - Remove Devotion Aura buff from (Picked unit)

Try this.
 

snmiglight

Active Member
Reaction score
3
doesn't work either :banghead:

when hero is not on blight; he gets devotion. (right!)

but when on blight; endurance and devotion swaps every 0.30 sec....
 

snmiglight

Active Member
Reaction score
3
*bump* (after a year)

can't still figure out why these codes weren't working

someone help please
 

Abion47

New Member
Reaction score
0
Code:
Blight Based Ability
    Events
        Time - Every 0.30 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and ((Level of Blight's Boon [Learning Skill] for (Matching unit)) Greater than 0))) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        [B]((Position of (Picked unit)) is blighted) Equal to False
                        ((Picked unit) has buff Endurance Aura) Equal to True[/B]
                    Then - Actions
                        Unit - Add Blight's Boon [Devotion Aura] to (Picked unit)
                        Unit - Set level of Blight's Boon [Devotion Aura] for (Picked unit) to (Level of Blight's Boon [Learning Skill] for (Picked unit))
                        Unit - Remove Blight's Boon [Endurance Aura] from (Picked unit)
                        Unit - Remove Endurance Aura buff from (Picked unit)
                    Else - Actions
                        Unit - Add Blight's Boon [Endurance Aura] to (Picked unit)
                        Unit - Set level of Blight's Boon [Endurance Aura] for (Picked unit) to (Level of Blight's Boon [Learning Skill] for (Picked unit))
                        Unit - Remove Blight's Boon [Devotion Aura] from (Picked unit)
                        Unit - Remove Devotion Aura buff from (Picked unit)

In your conditions you have "unit is on blighted" AND "unit has endurance aura", so when the hero doesn't have endurance, it doesn't matter if it is on blight or not, the endurance aura check will come back false, and the trigger will go to the ELSE statement. Take out the condition that checks if the hero has the endurance aura. I don't think it's really necessary.

Hope this helps. :thup:
 

snmiglight

Active Member
Reaction score
3
now i get it... thanks!

EDIT:

for now it is working... i have these codes for now...


Trigger:
  • Cursed Earth
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and ((Level of Cursed Earth [Learning Skill] for (Matching unit)) Greater than 0))) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Position of (Picked unit)) is blighted) Equal to True
              • ((Picked unit) has buff Cursed Earth [Blighted]) Equal to False
            • Then - Actions
              • Unit - Remove Cursed Earth [Unblighted] from (Picked unit)
              • Unit - Remove Cursed Earth [Unblighted] buff from (Picked unit)
              • Unit - Add Cursed Earth [Blighted] to (Picked unit)
              • Unit - Set level of Cursed Earth [Blighted] for (Picked unit) to (Level of Cursed Earth [Learning Skill] for (Picked unit))
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Position of (Picked unit)) is blighted) Equal to False
              • ((Picked unit) has buff Cursed Earth [Unblighted]) Equal to False
            • Then - Actions
              • Unit - Remove Cursed Earth [Blighted] from (Picked unit)
              • Unit - Remove Cursed Earth [Blighted] buff from (Picked unit)
              • Unit - Add Cursed Earth [Unblighted] to (Picked unit)
              • Unit - Set level of Cursed Earth [Unblighted] for (Picked unit) to (Level of Cursed Earth [Learning Skill] for (Picked unit))
            • Else - Actions


but i have a little problem with this one... whenever i level the skill up, the hero needs to switch from a blighted to a non-blighted terrain to level up the buff... (and vice versa) another thing: it takes up at least a second before the buff is set to the level of the "learning skill" or the hidden attribute bonus that i use to level up for the hero... how can i set its level very quick, about spilt seconds (though i set the events at every 0.01 seconds of gametime)... help anyone?
 

snmiglight

Active Member
Reaction score
3
*bump* (sorry for triple post)

i've got these codes for now

they are currently working good

but i've got some questions

why doesnt it level up suddenly

whenever the unit with the skill

moves from blighted/nonblighted area

and viseversa? it takes about a sec

before the "real" skills levels up...

take a look

Trigger:
  • Cursed Earth
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and ((Level of Cursed Earth [Learning Skill] for (Matching unit)) Greater than 0))) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Position of (Picked unit)) is blighted) Equal to True
              • (Level of Cursed Earth [Blighted] for (Picked unit)) Not equal to (Level of Cursed Earth [Learning Skill] for (Picked unit))
            • Then - Actions
              • Unit - Add Cursed Earth [Blighted] to (Picked unit)
              • Unit - Set level of Cursed Earth [Blighted] for (Picked unit) to (Level of Cursed Earth [Learning Skill] for (Picked unit))
              • Unit - Remove Cursed Earth [Unblighted] from (Picked unit)
              • Unit - Remove Cursed Earth [Unblighted] buff from (Picked unit)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Position of (Picked unit)) is blighted) Equal to False
              • (Level of Cursed Earth [Unblighted] for (Picked unit)) Not equal to (Level of Cursed Earth [Learning Skill] for (Picked unit))
            • Then - Actions
              • Unit - Add Cursed Earth [Unblighted] to (Picked unit)
              • Unit - Set level of Cursed Earth [Unblighted] for (Picked unit) to (Level of Cursed Earth [Learning Skill] for (Picked unit))
              • Unit - Remove Cursed Earth [Blighted] from (Picked unit)
              • Unit - Remove Cursed Earth [Blighted] buff from (Picked unit)
            • Else - Actions
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top