How do you regenerate Creeps?

tassadar920

Member!
Joined
May 18, 2003
Messages
2,048
Reaction score
0
Location
My house
Ok, do this:

Make a trigge rthat, when a unit dies it runs a for int a = 30, statement and each time it checks if its night-time. If it is night-time it revives the unit and "exits" the trigger. If it doesn't find that its night-time it runs again.

Make the for statemnt run, the amount of time (in seconds) it takes for it to switch between night-time and daytime, /10
 
Joined
Jan 10, 2004
Messages
6
Reaction score
0
Website
Visit site
Regenerating and reviving are 2 different things.

In the object editor you can modify any units' "hitpoints regeneration type"

this can be set to (1) none (2) always (3) only while on blight (4) only during the day and BINGO!!! (5) only during the night :D
 

Aragorn7

Member!
Joined
Jul 19, 2003
Messages
3,907
Reaction score
0
Location
At My Computer, Where Else?
First you need to set an Area where you want to creeps to respawn.

Then you need to make a trigger:

Events:
-Unit dies

Conditions:
-Unit owned by Neutral Hostile

Actions:
-Wait X Seconds
-Create one "Triggering Unit" at Random Point in an Area.

That is the simple way to do it.
 
Joined
Jun 22, 2003
Messages
180
Reaction score
0
Website
Visit site
or

Actions:
-Wait X Seconds
-Create one "Triggering Unit" at Posistion of "Triggering Unit".


that should work also =/

dunno though hehe
 

][nvisible

Member!
Joined
Jul 16, 2003
Messages
17
Reaction score
0
Website
Visit site
um... i'm kind of having a hard time finding the title of the
-Create one "Triggering Unit" at Posistion of "Triggering Unit".
is it in units- ?
 

SephirothX89

Member!
Joined
May 19, 2003
Messages
1,074
Reaction score
0
Location
Azeroth
Website
Visit site
what i did is... load up Legends Open RPG and i copyd/pasted their respawn trigger into mine... its 1 trigger that does repawn for all creeps.

its really complex tho with then and else actions and stuff...
 

NewPosts

New threads

Top