Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

how would i use a script to turn lights on and off in a sequence?

Page: 1 of 1
 *Dark
02-20-2004, 10:16 AM
#1
How would i use a script to turn a few lights on and off in a sequence with different timings between each of them?
 WadeV1589
02-20-2004, 11:04 AM
#2
use("light1"); //light1 off
wait(1000); //wait 1 second
use("light2"); //light2 off
wait(500); //wait 0.5 seconds
use("light1"); //;light1 on
wait(250); //...
use("light3");
wait(750);
use("light2");
wait(1250);
use("light3");
wait(500);

Easy as peanut pie!
 Jedi_Vogel
02-20-2004, 2:58 PM
#3
This is going to be a dumb question, I DO realise but...


I thought Scripting and Mapping were separate entities, but I assume now that to do a decent/interesting map the two are interwoven? :?

So do I need to find some *cough*newbie*cough* tutorials to learn scripting as well? Cos you see, people's questions are often answered by scripts and I have no idea where the scripts are put or ANYTHING. lol

So someone help please :)
Thank you.
 GothiX
02-20-2004, 3:02 PM
#4
Originally posted by WadeV1589
Easy as peanut pie!
Yum.
 vas_zag
02-21-2004, 12:57 AM
#5
well Jedi_Vogel there is no scripts forum here is there and most half decent maps need some kind of script...
maybe we should make an official scripting thread
so if anyone has any question scripting wise they go there.....
we could fill it full of tutorials and stuff to help out newbie scripters
:)
 Business_Eskimo
02-21-2004, 1:51 AM
#6
Some scripting tutorials for JK2 can be found here. (http://www.geocities.com/kengomaps)
 *Dark
02-21-2004, 7:25 AM
#7
no offence dude, but that is JKII and this is the JA forum

maybe you guys should writh the tut
 Jedi_Vogel
02-23-2004, 7:35 AM
#8
I assume then Coding and Scripting are not the same thing?

Can anyone at all point me in a good direction for learning to script JA Maps (not JO unless purely compatible), as when I do something, I like to do it properly
 GothiX
02-23-2004, 8:43 AM
#9
Icarus (JO) has the same basics as Icarus II (JA). Those tutorials still apply.
 Jedi_Vogel
02-23-2004, 12:24 PM
#10
Thanks :)

And the Icarus Tutorials can be located where? And Icarus, I assume, is a separate program. Not having yet had time to unpack the JA SDK, can you tell me if it's in there?
 *Dark
02-23-2004, 3:37 PM
#11
btw the difference between coding and scripting is that coding is the stuf in the .exe and scripting is what the exe uses for info
 GothiX
02-23-2004, 4:09 PM
#12
Icarus II comes with the SDk, and the tutorials are over at http://www.geocities.com/kengomaps/tutorials.html).

Especially the cutscene tutorials explain the basic functions of scripting.
 Jedi_Vogel
02-24-2004, 7:20 AM
#13
Thanks again :)
Page: 1 of 1