Kill tracking and triggers
by Marvin Hawkins · in RTS Starter Kit · 10/15/2005 (11:24 pm) · 4 replies
Hello all,
I want to track player activities such as structures built and units created. This is on with Command and Conquer or Starcraft. At the end of each game, information such as units killed or units created is displayed. How can keep track of this information?
3DGPai1 (p 623) says that you can list variables in the server.cs file.
My issue is that the example in the book refers to these variables being tracked with triggers (which I guess were removed from RTS SK)
So how can I track these variables? Where would even place the script for this? (I'm a newb)
Also how would I use these variables to end the mission and load a new one once a certain condition(s) have been met? (I.e a trigger event similar to the Starcraft Mission editor)
I want to track player activities such as structures built and units created. This is on with Command and Conquer or Starcraft. At the end of each game, information such as units killed or units created is displayed. How can keep track of this information?
3DGPai1 (p 623) says that you can list variables in the server.cs file.
My issue is that the example in the book refers to these variables being tracked with triggers (which I guess were removed from RTS SK)
So how can I track these variables? Where would even place the script for this? (I'm a newb)
Also how would I use these variables to end the mission and load a new one once a certain condition(s) have been met? (I.e a trigger event similar to the Starcraft Mission editor)
#2
but what i'm also trying to do is create a function that checks to see if a certain type of unit still exists in the game world. I don't know if i should do some kind of if statement that checks to see if thisunit still exists and then ending the game if it is determined to not exist
01/01/2006 (11:27 pm)
Okay i actuall do understand that.... somewhat....but what i'm also trying to do is create a function that checks to see if a certain type of unit still exists in the game world. I don't know if i should do some kind of if statement that checks to see if thisunit still exists and then ending the game if it is determined to not exist
#3
01/02/2006 (12:20 am)
Ok on second thougt i don't get what you mean by 'create' are you reffereing to a given unit's datablocks (should i put the unit code with the rest of thier property)
#4
01/02/2006 (1:10 pm)
Ok on second thougt i don't get what you mean by 'create' are you reffereing to a given unit's datablocks (should i put the unit code with the rest of thier property)
Torque Owner Robert Stewart
%this.unitsbuilt++;
when you want to display the details
echo (%this.unitsbuilt);
hmm this may not work for you, unless you understand what %this means. I'm not a good teacher, maybe someone else can help.