• 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.

Hero Loses Health "Outside"

Status
Not open for further replies.
Level 1
Joined
Aug 11, 2006
Messages
3
Some Questions

Well, I'm working on a map, where when a User's hero health goes down slowly while "outside" of a building, but when the Hero is inside, it gains health, or that effect wears off. I'm not totally sure how to work it out. It'd be like in the game Wilderness Survival, how you need to stay heated, and regenerate back at your camp fire.

Also, are there any RPG-sort of tutorials I can take a look at ... because I need to figure out how to create a profession choosing system, or if someone could explain to me how it works, that would be very nice too. I'd also need to know if theres anyway to show a seperate experience gain in the profession, seperate from the Hero Level experience bar...

Any answers/suggestions would be much appreciated, thank you.
 
Last edited:
Level 12
Joined
Jun 22, 2006
Messages
896
No...You can just make a trigger like, (If you want the hero to lose 1 life per 2 seconds outside.)

Events
Time - Perodic Event - Every 2 seconds
Conditions
Actions
Deal 1 normal damage to (Chem.vox's unit)

Argh...something like that. Some one help me to put it in Triggy boxes again?

Then as for the healing stuff, you put a unit with the 'healing ward aura/healing fountain aura thingy', and give the unit the ability 'locust' so you wouldn't be able to click on the stuff you go inside. And lastly, set the model to 'tree of life upgrade' under abilities models. I'm sorry if I confused you some where :s I'm not very good with triggers.
 
Level 15
Joined
Feb 9, 2006
Messages
1,598
Yes it would. Well, I asome this is a RPG, and you only control one hero:

Loosing Life trigger:
  • Test
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Outside[(Integer A)] Equal to True
            • Then - Actions
              • Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) - 1.00)
            • Else - Actions
              • Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + 1.00)

''Oustide'' is just a boolean to keep track of if the hero is outside of inside.

now we have made that if a unit enters a ''house'' he will start gaining mana, and he will loose mana while being outside. But we need to make a trigger who says when a unit enters the house:
  • Test
    • Events
      • Unit - A unit enters House <gen>
    • Conditions
    • Actions
      • Set Outside[(Player number of (Owner of (Triggering unit)))] = False
We also need a trigger that says when the unit leaves the house:
  • Test
    • Events
      • Unit - A unit leaves House <gen>
    • Conditions
    • Actions
      • Set Outside[(Player number of (Owner of (Triggering unit)))] = True

that should be it
 
Last edited by a moderator:
Level 1
Joined
Aug 11, 2006
Messages
3
I had trouble finding some things but, I'll try putting Trigger in.
  • Lose Hp
  • Events
  • Time - Every 2.00 seconds of game time
  • Conditions
  • Actions
  • For each (Iteger A) from 1 to 12, do (Actions)
  • Loop - Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If Conditions
  • Then - Actions
  • Unit - Set life of (Triggering Unit) to (Life of (Triggering unit))
  • Else - Actions
  • Unit - Set life of (Triggering Unit) to (Life of (Triggering unit))
I couldn't find the +1.00, -1.00 in there, nor the "Outside[(Integer A)] Equal to True". :S
Also, in the other ones I couldn't locate the "Set Outside[(Player number of (Owner of (Triggering unit)))] = True" Could you tell me where these are?
 
Status
Not open for further replies.
Top