Posted: Fri May 29, 2015 4:24 pm Post subject:
Get gold (tiberium) when kill enemy force (infantry, etc)
Hi people, YES ¡¡¡ AGAIN ¡¡¡. I still work with my map, I get to do certain things, but even I have work to do, now i need helpt with this:
1) Need create trigger to do the following:
- When Team 1 (Spawn1) kill light infantry them must obtain 1 of gold (tiberium in this case).
- When Team 1 (Spawn1) kill rocket infantry them must obtain 2 of gold (tiberium in this case).
- When Team 1 (Spawn1) kill tick tank them must obtain 10 of gold (tiberium in this case).
- etc.
Exist any way to do this.
Thanks again. QUICK_EDIT
AFAIK it's not possible
a) there is no way to check which type of object was killed
b) there is no way to give a player a certain amount of money via trigger _________________ SHP Artist of Twisted Insurrection: Nod buildings
Hm. Are they all preplaced?
LKO, can one invoke a reinforcement trigger on kill for each single type of enemy? If thats the case, one can have a waypoint somewhere, where the reinforcement spawns, since it will have SpeedType=Winged and Cost=1 (for light infantry), you will get that much Cash.
So, you would need in essence n different Trigger, which spawn each a different unit. All of these Units have SpeedType=Winged, but their cost will differ, for whatever value you want.
Then you have to place that trigger on each unit (each light infantry gets Trigger 1, Rockets Trigger 2, ...)
Yeah, sounds tedious, even if it were to work. But hey, that could be a way _________________
So, yeah, I've created a new acc. 'cause no one could remember Ordosherrscher - and I didn't like that name anyway. QUICK_EDIT
Bad new's for me ... you know if i can download FinalSun source, maybe i can add code and make it work.
a) FinalSun is not open source
b) even if it would be, you can't code something into the map editor and expect the game understands it as well.
The editor was written for the game, not the game written for the editor
@Nordos: i doubt that works. It's something different if a unit is build by the player and can't spawn due to bad SpeedType and thus get refunded,
or
a map trigger simply places/spawns the unit on the map.
e.g. map trigger can also spawn ships on land, which you can't do by building them from a shipyard that stands on land. _________________ SHP Artist of Twisted Insurrection: Nod buildings
Well, as far as I know SuperJoe made a work around for Oil Derricks, which could be used in the same way.
Instead of directly spawning a unit, it would deploy a unit which spawns that Winged unit to get the refund. With a timed delay, it could undeploy once again (or directly afterwards).
Though I dunno if it is fast enough to keep up when you kill a lot of the same units at once _________________
So, yeah, I've created a new acc. 'cause no one could remember Ordosherrscher - and I didn't like that name anyway. QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum