• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Non-hero Endurance Aura lvluping...

Status
Not open for further replies.
Level 10
Joined
Mar 17, 2012
Messages
582
Okay, I have an ability that lets my hero to move and attack faster when the night falls...
I got 1 hero ability based on Attribute Bonus (hidden) [Hunter In The Night (learn)] Evasion - daytime ability (gives nothing)(non-hero) [Hunter In The Night (Neutral Hostile)] and Endurance aura (non-hero) gives some bonuses [Hunter In The Night (night)].

Unit learns an ability:
  • Events
  • Unit - A unit Learns a skill
  • Conditions
  • (Learned Hero Skill) Equal to Hunter In The Night (learn)
  • Actions
  • Set Hunter_in_the_Night = (Learning Hero)
  • Trigger - Turn on Check Night <gen>
  • Trigger - Turn on Check Day <gen>
set lvl of ability:
  • Events
  • Unit - A unit Learns a skill
  • Conditions
  • (Level of Hunter In The Night (learn) for (Learning Hero)) Greater than or equal to 2
  • (Learned Hero Skill) Equal to Hunter In The Night (learn)
  • Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • ((In-game time of day) Greater than or equal to 6.00) or ((In-game time of day) Less than 18.00)
  • Then - Actions
  • Unit - Set level of Hunter In The Night (Neutral Hostile) for (Learning Hero) to (Level of Hunter In The Night (learn) for (Learning Hero))
  • Else - Actions
  • Unit - Set level of Hunter In The Night (night) for (Learning Hero) to (Level of Hunter In The Night (learn) for (Learning Hero))
Check Day:
  • Events
  • Time - Every 2.00 seconds of game time
  • Conditions
  • Or - Any (Conditions) are true
  • Conditions
  • (In-game time of day) Greater than or equal to 6.00
  • (In-game time of day) Less than 18.00
  • Actions
  • Unit - Remove Hunter In The Night (night) from Hunter_in_the_Night
  • Unit - Add Hunter In The Night (Neutral Hostile) to Hunter_in_the_Night
  • Unit - Set level of Hunter In The Night (Neitral Hostile) for Hunter_in_the_Night to (Level of Hunter In The Night (learn) for Hunter_in_the_Night)
  • Trigger - Turn off (this trigger)
  • Trigger - Turn on Check Night <gen>
Check Night:
  • Events
  • Time - Every 2.00 seconds of game time
  • Conditions
  • Or - Any (Conditions) are true
  • Conditions
  • (In-game time of day) Greater than or equal to 18.00
  • (In-game time of day) Less than 6.00
  • Actions
  • Unit - Remove Hunter In The Night (Neutral Hostile) from Hunter_in_the_Night
  • Unit - Add Hunter In The Night (night) to Hunter_in_the_Night
  • Unit - Set level of Hunter In The Night (night) for Hunter_in_the_Night to (Level of Hunter In The Night (learn) for Hunter_in_the_Night)
  • Trigger - Turn off (this trigger)
  • Trigger - Turn on Check Day <gen>
But when everything happens - Hunter In THe Night (night) writes that it is Level 4, but gives bonuses like Level 1... :ogre_rage:
 
Level 12
Joined
Mar 24, 2011
Messages
1,082
  • Or - Any (Conditions) are true
Remove that form Check day <gen>


  • Conditions
  • Or - Any (Conditions) are true
  • Conditions
  • (In-game time of day) Greater than or equal to 6.00
  • (In-game time of day) Less than 18.00
You see that line means that if ANY of the condition is true the actions are done.
So if the time is 5:34 the condition Less than 18:00 is met and the actions are done.

Better atach a map so ppl can check what exactly goes whrong.
 
Level 10
Joined
Mar 17, 2012
Messages
582
  • Or - Any (Conditions) are true
Remove that form Check day <gen>


  • Conditions
  • Or - Any (Conditions) are true
  • Conditions
  • (In-game time of day) Greater than or equal to 6.00
  • (In-game time of day) Less than 18.00
You see that line means that if ANY of the condition is true the actions are done.
So if the time is 5:34 the condition Less than 18:00 is met and the actions are done.

Better atach a map so ppl can check what exactly goes whrong.

:fp:View attachment Hunter In The Night_hive.w3x
here you go)
 
Status
Not open for further replies.
Top