Home   Help Search Login Register  

Author Topic: Selecting night or day  (Read 463 times)

0 Members and 1 Guest are viewing this topic.

Jim666

  • Guest
Selecting night or day
« on: 22 Nov 2004, 17:58:04 »
Im not sure if this should be here or in advanced editing.

anywho, im making a cooperative map, and ya know on the assigning screen you can nomrlay select stuff, hard easy what not, well i want night, day, noon, dusk. Etc

How would i go about doing this?  ???

Peter haroski

  • Guest
Re:Selecting night or day
« Reply #1 on: 25 Nov 2004, 19:03:23 »
Ok, to do this, you need to do descirption.ext, and somesciprtin, you can do some of the scripts to editor, but this is the easiest way...
First, we start about descirption, I hope you know how to do description...
Start description with line like this..

Code: [Select]
titleParam1 = "Time of Day";
valuesParam1[] = {1, 2, 3, 4};
defValueParam1 = 1;
textsParam1[] = {"Dawn", "Day", "Dusk", "Night"};

This will make the select box, but this will not work alone, you need small script...
Code: [Select]
?(Param1 == 1) : goto "Dawn"
?(Param1 == 2) : goto "day"
?(Param1 == 3) : goto "dusk"
?(Param1 == 4) : goto "night"



#Dawn
SkipTime 4
goto "End"
#day
SkipTime 13
goto "End"
#Dusk
SkipTime 20
goto "End"
#night
SkipTime 23
goto "End"
#End
exit

If you name that script like param1.sqs, select one unit, what surelly is in your map, and write "this exec "param1.sqs"
Ask, what you didnt understood, because Im going to Sauna, so I cant write books about this
« Last Edit: 26 Nov 2004, 15:05:36 by Peter haroski »