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

Flames

Status
Not open for further replies.
Level 9
Joined
Apr 2, 2005
Messages
491
how do i made a trigger for when a unit enters region it starts getting damage
ive made this spot with fire in it and i want to make trigger damage unit in region

Event - unit enters region x

action -- deal x damage to unit (I don't remember the exact wording because i don't have WE installed anymore. I believe the damage thing is in generic or specific unit events.)

Make sure you have the region.
 
Level 3
Joined
May 20, 2008
Messages
66
Event - unit enters region x

action -- deal x damage to unit (I don't remember the exact wording because i don't have WE installed anymore. I believe the damage thing is in generic or specific unit events.)

Make sure you have the region.

cheesdude,I believe Rethon was talking about damage over time, or damage per second. In that case, your trigger won't work since it's instant damage.

To Rethon, this trigger is actually pretty simple but in my way you'll use 2 trigger instead of one. The first one is the "enter the region" thingy, I'm pretty sure you've known that already.:grin:

The second trigger, first you should create a variable type "Unit Group" (not an array) and name it "BurningUnit" or whatever you want. That group will determine which unit is burned and which is not.
Now back to the first trigger, in the action part, do it like this: Unit Enter Region ---> Action: Put that unit into the unit group you just created ( i don't have WE right now so you'll have to find it out yourself,:con: )

Again with the 2nd trigger, this is what make your unit take damage, do this:
_ Event: Every 1 ( or else ) second of game time ( the Periodic Event thingy )
_ Action: Unit - Set [unit match condition [belongs to the BurningUnit Group]]'s HP to [Current Hp - [damage]]

Or an alternative action: Unit - Cause [some unit] to deal [X] damage to [unit in the BurningUnit Group].

There you go then, any unit enter the region should take some damage every second. Sorry for some confusions cause by the lack of WE.:grin:
 
Level 3
Joined
May 20, 2008
Messages
66
or, you could just create a dummy unit, and give it permanent immolation and locust.
Locust = cannot be selected
Immolation = dmg over time, adn you can edit the spells dmg values.

so you just place the dummy unit in the flaming area :)

much simpler


Good thinking, I ( and maybe Rethon ) was talking about trigger, but you have the great and creative way to do it. Nice.

One thing, if the burning area is a circle, then we can put only 1 dummy and set the AOE based on the area's size. But if the terrain is much more complicated, then we must put in more and even more dummy, which cause more memory usage. Too much memory usage cause lag. My way, which may seems complicated in words, is simple and short in triggers. There'll be 2 triggers each have like, 2 lines, 1 for event, 1 for action. And a simple variable.
 
Level 3
Joined
May 20, 2008
Messages
66
what i mean is kinda like a cloak of flames or immolation
that if a unit/ship is in the region with the flames it gets damaged as if its a cloak of flames get it?

We got your point. Both cool_is_i's and my way would work for you. Feel free to use them.
 
Level 22
Joined
Jun 24, 2008
Messages
3,050
I think he really is newbish. I dont know if he even bothered to read your posts.

Just do as they said, and make a footman, give him the ability 'Locust' and 'Permanent immolotion'.
That way, you cant select the footman, and units near him will get dmg.

Then set his model to '.mdl' so that you cant see him.
 
Level 13
Joined
Sep 14, 2008
Messages
1,408
Oh looool.... Before making a map and asking such questions you should really read a beginners tutorial or something like that.

Dummy unit: A unit which model was set to (custom path) a model which does not exist. So the unit will have NO model. (example model: NONE.mdl)

Then the unit gets the abilty LOCUST which will make it invul, unselectable.
Then you add the immolation to that unit. (you should remove the imo effect)
Then you place the unit in the center of that area.
Then you make sure the owner is neutral hostile.

THEN YOU ARE HAPPY!!!

(I would remove the shadow of the unit as well)
 
Level 3
Joined
May 20, 2008
Messages
66
He wants triggers, I gave him triggers, and now, Rethon doesn't even understands the triggers (I apologize for describing triggers in such complicated way). So he wants something like Cloak of Flames or Immolation, and cool_is_i gave him that. Still he doesn't understand?

@Rethon: you really need to have some research on tutorials and the WE itself. Try creating things and see what it turns out. You'll be good someday.
 
Level 11
Joined
Dec 31, 2007
Messages
780
@Zenerik there is a bug in your trigger... you forgot to remove the entering unit from damage group when leaving the region :p

that would mean another trigger

unit leaves region

unit is in damage group equal to true

remove leaving unit from damage group
 
Level 3
Joined
May 20, 2008
Messages
66
@Zenerik there is a bug in your trigger... you forgot to remove the entering unit from damage group when leaving the region :p

that would mean another trigger

unit leaves region

unit is in damage group equal to true

remove leaving unit from damage group

Thank you, but yes, I already know that, I just forgot to mention it. And I think it's not a leak after all.

P/S: The unit will not be removed from the group because it's the GREAT ETERNAL FIRE. :grin: :grin: ok it's a joke :grin:
 
Status
Not open for further replies.
Top