Forum Jump :

Author Message


Posts: 1
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2013-11-09 19:44        
     
For the past few days I've been trying to make a custom TDM game for me and my friends so we can just have some fun shooting each other. So far I've had a lot of fun learning about the different scripts setting and other behind-the-scenes parts of the game, but there is just one bit of confusion I am having. I just can not figure out how you set a time limit and a score to win for the game. I've searched all over the internet, but anything that I am able to find just doesn't help me at all. Here's what I know so far:
Creating a score and time limit has something to do with the description.ext file. I believe you put the following into it:
titleParam1 = "Time limit:";
valuesParam1[] = {10000, 300, 600, 900, 1200, 1500, 1800, 2100, 3600, 7200};
defValueParam1 = 1800;
textsParam1[] = {"Unlimited", "5 min", "10 min", "15 min", "20 min", "25 min", "30 min", "35 min", "60 min", "120 min"};

and

titleParam2 = "Score to win:";
valuesParam2[] = {10000, 5, 7, 10, 15, 20, 25, 30};
defValueParam2 = 5;
textsParam2[] = {"Unlimited", 5, 7, 10, 15, 20, 25, 30};

The thing is, when I put that in, the game just stops looking at the description.ext file. It just completely ignores it and forgets about the respawn and gamemode and everything else that is set up. So I need somebody to explain this to me as easily as they can. Pretend that we're basically starting from scratch and I have nothing but the mission file, respawn, and gamemode type up. It's really getting confusing and the perfectionist and OCD inside me will never let it rest if I don't at least figure out how to at least add score limits to the game. Thanks in advance!

BTW I'm sorry if this kind of post doesn't belong in this category, I wasn't 100% sure where it would go so I put it here because as far as I can see, it has the most to do with scripting. If it doesn't belong here, just tell me and I'll see if I can move it.