You must be logged in to post messages.
Please login or register

Scenario Design Discussions
Moderated by GoSailing

Hop to:    
loginhomeregisterhelprules
Bottom
Topic Subject: Trigger Challenge: Make corpses stay for 1 minute.
posted 11-04-03 04:49 PM EDT (US)   
Almost done with my scenario, now adding eye-candy and stuff.
And this is one of them:
I want the bodies of the dead soldiers to stay on the screen after they die, I can accomplish that by making each soldier carry some food on them, like animals.
The problem is, with all the dead bodies things start to lag, so I only want corpses to stay for 1 minute and disappear after.
Idealy I was hopping that food would rote, and if I set some low value like 10, the body will be gone in 2 minutes, unfortunately that`t not the case and food doesn`t rote when given to the player units.
Maybe u guys have some ideas how to go about this

Producer, Art & Design Director
Reverie World Studios, INC
Replies:
posted 11-04-03 05:42 PM EDT (US)     1 / 3  
Yep. Make an object "ALL P1 Units" Min/Max 1-9999 with State "Unit Rotting". You might want to specify the exact unit with the Class drop-down list, otherwise everything that dies of Player 1 will never rot away.

Then make an Effect(Unit-attribute) that increases their rot time by x amount (Whatever you want)

Make a trigger that says,

"IF All P1 Units (rotting) THEN "Set Rot time +100%"

Turn the trigger back on every 5-10 seconds or so, and it will always check for rotting Player 1 units and increase their rot time by whatever amount you choose.

[This message has been edited by Hank (edited 11-04-2003 @ 05:47 PM).]

posted 11-04-03 10:08 PM EDT (US)     2 / 3  
or give the unit(s) a food artibute of 9999 that makes it to never rot

Now known as Delfino_Messor i am no longer BlackEvil
Mrlrdg񕧆d Scenario Designer

[This message has been edited by BlackEvil (edited 11-04-2003 @ 10:09 PM).]

posted 11-04-03 11:04 PM EDT (US)     3 / 3  
BlackEvil, I wanted them to rot, just slower.

Hank, I tried to get ur way to work, but it didn`t work out too well, like units are constantly created in my map, and constantly die, so if I am to use this "Add 60 second to rotting" I`ll have to use it at least every 61 seconds, otherwise it would just constantly add more roating time to the units already roating. And thanks for this Roating state tip, woah, didn`t ever thought such thing was possible.

So I went the other way (expanded on my food on corpses idea)
Every unit is created with 2 food on them. And every 60 seconds I ran effect Decrease food by 2, for All Units 1-999, State FoodRoating. So units die and stay on the ground, and every 60 seconds that effect fires and these old corpses disappear.


Producer, Art & Design Director
Reverie World Studios, INC
Empires Heaven » Forums » Scenario Design Discussions » Trigger Challenge: Make corpses stay for 1 minute.
Top
You must be logged in to post messages.
Please login or register
Hop to:    
Empires Heaven | HeavenGames