Warcraft III resources & community, 2003–2006 · archived

Plz help heat trigger

10 posts
#1

Plz help heat trigger

i've got a big problem, i'm making a map that is like kinda like island troll tribes, but i can't fix a trigger to add heat (lumber) every second that a hero stands within 500 range to the fire, someone please help me :(
#2
Events:
Every X sec of the game
Conditions:
--------
Actions:
If:
.... is withing XXX range of 'Fire Camp'
Then:
Player - Add Property
Else: Do Nothing
#3
RamzaEvents:
Every X sec of the game
Conditions:
--------
Actions:
If:
.... is withing XXX range of 'Fire Camp'
Then:
Player - Add Property
Else: Do Nothing


what's the point with the dots in .... is withing XXX range of 'Fire Camp'? that is what i don't know, what unit shall it be :?
#4
well... the main character ofcourse, and i thought u can only control 1 unit in troll tribes. if there r more, then u will have to fill in the hero or main character in the dots. the XXX is the range (the fire gives heat till 200 range or sumthing)
#5
why actions: if then else? I mean, the if could simply be the condition of the trigger, the 'then' the action...


Why not use 'A unit comes within XXX of 'Fire Camp' as event, and give the recource to the owner of the unit?
#6
read better :P it gives warmth all the time, not only when u enter te rect at fire (just like real life)
so then u have t use my trigger
#7
i'm getting kinda confused by your way of explaining it Ramza, could u tell me how to do it, not only how it looks when it's done please :roll:
#8
the event u can just find

for the 'if': boolean - unit is in rect - for the rect do: convert point with size to rect and the rest is easy

action is easy to
#9
Ramzathe event u can just find

for the 'if': boolean - unit is in rect - for the rect do: convert point with size to rect and the rest is easy

action is easy to


nope it isn't, convert point with size to Rect, but what rect? i know it's in a certain range around a unit, but around what unit? there isn't an option "any unit of typ Fire Camp, and i don't think u mean i shall create a variable for firecamp, right? :?
#10
when a unit creates a fire camp, u should set that unit as a variable. use that variable in the trigger as the rect around that unit.