TriggerActivation()
Alkalurops
Member Posts: 269
Newby here, so I apologize if this is a stupid question.
If I use TriggerActivation("myTrigger", FALSE) on a trigger region, can you still click that region? Will the region script still run?
As a sidenote: are there good guides for "essential" skills such as working with trigger regions? Or do I have to gather information from bits and pieces here and there...
I've read a few introductory tutorials here and there, but I can't find any "everything you need to know about..." guides. For example, when I'm using the DLTC Editor I'm often left in the dark wondering what a certain value means.
177 TriggerActivation(O:Object*,I:State*Boolean)This sounds very cryptic to me... I've read it a couple of times and I still don't know what this function actually does.
This action is used in conjunction with trigger region in ARE files. The action sets the activation state a trigger region (specified by the object parameter).
If I use TriggerActivation("myTrigger", FALSE) on a trigger region, can you still click that region? Will the region script still run?
As a sidenote: are there good guides for "essential" skills such as working with trigger regions? Or do I have to gather information from bits and pieces here and there...
I've read a few introductory tutorials here and there, but I can't find any "everything you need to know about..." guides. For example, when I'm using the DLTC Editor I'm often left in the dark wondering what a certain value means.
0
Comments
You would do well to start here: http://www.pocketplane.net/tutorials/simscript.html
SimDingO Complete Scripting Guide
I guess I could just copy the entire script to the override and remove the TriggerActivation() action, but that's probably not a good idea for compatibility, right?
Basically the old script sets a global, then disables the trigger region.
Maybe I could append a new block that checks that global and enables the trigger region again?
Or do region scripts only respond to Clicked() triggers?
Thanks for the link. I think I got scripting figured out for the most part, and am looking for other guides right now (I just found http://www.simpilot.net/~sc/dltcep/index.htm and I think it's a good place to continue my quest for modding knowledge)
I can't think of an example that's somehow similar, because regions don't get disabled if they're still going to be used...
You didn't say what kind of script you want to write. Scripts are quite diverse, it requires lots of learning.
Try to decompile some scripts and figure out what they do.