| 02-03-2008, 05:04 AM | #1 |
I have a timed life unit that is created via dummycast summoning spell and when it is created it does not take up 1 food cap. I have it edited in the object editor that the food cost for that unit is set to 1. Yet when the unit is created it does not take up 1 food cap... any ideas? Is this something I would have to trigger manually or am I missing some setting that enables/disables that unit to take up food supply? |
| 02-03-2008, 05:46 AM | #2 |
Summoned units do not use up food, if I remember correctly. |
| 02-04-2008, 02:55 AM | #5 |
I haven't done triggers in a while, so I might be doing this a bit wrong, but I think its kinda simple. You would need 3 variables (2 unit variables with arrays and an integer) and you would need to use custom values. So basically, similarly like pyrogasm's way. You would add Trigger: Actions:![]() set summonedunit[x] = (Last created unit)![]() Unit - Set the custom value of (Last created unit) to x![]() Unit - Create 1 <dummy unit> for (Owner of (casting unit)) at ((position of casting unit) offset by 150.00 towards (Facing of (casting unit)) degrees) facing (Facing of (casting Unit)) degrees))![]() Unit - Set the custom value of (Last created unit) to x![]() set dummyunit[x] = (last created unit)![]() set x = x+1So this trigger would basically check whenever a unit dies, if its the summoned unit, it removes the dummy unit. If its the dummy unit, it kills the summoned unit. |
