| 08-18-2004, 01:15 PM | #1 |
im making a map and i want vampires to die when it is dawn but not if they are in their havens |
| 08-18-2004, 01:59 PM | #2 |
Heres the trigger, its off the top of my head so if u dont understand something: Code:
Events- Game Time of Day=6.00 Conditions-Nothing Events-If Vampire is in Haven <gen> Then-Do nothing (or wutever u want here) Else-Turn on trigger 2 Trigger 2 Intially off Events-Every 2 seconds Conditions-None Actions- Set life of vampire to life of vampire -2 (or wutever u want the draining to be) Special effect- Add special effect on vampire (wutever u want him to look like burning) |
| 08-18-2004, 02:03 PM | #3 |
is that an if then else???? it needs to be all vampires |
| 08-18-2004, 02:04 PM | #4 |
U can do an if then else for all vampires, Also i think u mite need WEU i'm not sure. |
| 08-18-2004, 02:05 PM | #5 |
i dont get it |
| 08-18-2004, 02:05 PM | #6 |
When the vampires enter their havens then add them to a unit group. Then use a periodic trigger once it is night time to kill all vampires that arent in that unit group. Once a vampire leaves their haven, remove him from the unit group. |
| 08-18-2004, 02:07 PM | #7 |
Look at my post above jeez, Just make an if then else and a damage for each vampire. |
| 08-18-2004, 02:08 PM | #8 |
Read my post above. ![]() |
| 08-18-2004, 02:11 PM | #9 |
ÃÂ* need some help with the damage trigger |
| 08-18-2004, 02:15 PM | #10 |
Its set units life then put the unit u want then to be damaged= to life of vampire - how much u want to be drained |
| 08-18-2004, 02:18 PM | #11 |
cant you write the code down |
| 08-18-2004, 02:25 PM | #12 |
You will need to create a unit group variable. Then add all the vampires that enter their havens into that variable. For the purpose of this example i will use VAMP_GROUP as the unit group variable. Code:
Events
Time - Every 2.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is in [u]VAMP_GROUP[/u]) Equal to False
(Unit-type of (Picked unit)) Equal to Vampire
Then - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 25.00)
Else - Actionshope this helps, . |
