Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
daimyo21

Class Duration Display in-game and sync MP?

Recommended Posts

So im tying to create a time limit that is synced with JIP for a survival mission.

The players must survive for 2 hours or do objectives to complete earlier.

Looking at the Description.ext examples I came across this:

class Params 
{ 
class Score 
{ 
title = "$STR_mp_param_score"; 
values[] = {10,200};
texts[] = {"10","200"}; 
default = 10; 
}; 
class Duration 
{ 
title = "$STR_mp_param_duration"; 
values[] = {1,2}; 
texts[] = {"one hour","two hours"}; 
default = 1; 
}; 
etc. ..... }

How do I sync with in-game triggers or scripts thatll display current time left and also be synced with JIP and able to end-game.

Ive looked at other posts and they all seem complicated or not what im looking for.

I also want to be able to change params before mission to maybe 1 hour survival etc..

Edit so i got this in my params as params array 4:

class Duration

{

// paramsArray[4]

title = "Survival Time";

values[] = {3600, 7200};

texts[] = {"1 hour survival", "2 hour survival"};

default = 7200;

};

I put this in a trigger on cond: (Duration<10000) and (Duration>=7120) and ((Duration-time) <=7120);

on act: hint "119 minutes left!";

Doesnt work.

I used to use this and it worked:

titleParam1 = "Time limit:";

valuesParam1[] = {0, 300, 600, 7200};

defValueParam1 = 7200;

textsParam1[] = {"Unlimited", "5 min", "10 min", "120 min"};

Edited by Daimyo21

Share this post


Link to post
Share on other sites
Sign in to follow this  

×