HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

fairly tricky trigger

05-04-2003, 02:35 AM#1
iceslushee
what i want to do is to find when a unit is sold (not trained) as an event and then give the unit only 40 seconds to live, but this is for a multiplayer game so im stuck.

also the player that is buying the unit can buy quite a few at a time so say like 5


if this makes any sense whatsoever and u can solve it thanks
05-04-2003, 03:05 AM#2
Guest
if no one replies to this message soon i will probably try it figure this out somehow for you, but im starting to think this might need custom text. So someone who knows custom text is probably going to come in here and tell you that you need to use JASS.
05-04-2003, 06:42 AM#3
Krakou
If in your map you can only sold units and not train, you can use the trigger : Unit enters region (entire map).
05-04-2003, 04:55 PM#4
Panto
You can make all the units that you can purchase be based off an existing summon unit, giving them a set time to live.

As far as buying several at a time, there is an option for how many can be stocked in the unit's stats in the unit editor in WE. No need for triggers for that.
05-04-2003, 05:38 PM#5
AIAndy
If the unit type that is sold is different from the unit type that is trained then you can use the Unit enters region (entire map) with a condition for the unit type. Then you can use Apply timed life as an action (I think that needs either JASS or an advanced editor)