PDA

View Full Version : Script and Variable question


Seamhainn
01-06-2008, 04:33 AM
Hello!

Two quick questions. What does this script do:

void main() {
SignalEvent(OBJECT_SELF, EventUserDefined(10));
}


What does the variable TAR_DUELINPROGRESS do?

Thanks for any help!

Stream
01-06-2008, 08:39 AM
What does this script do:
void main() {
SignalEvent(OBJECT_SELF, EventUserDefined(10));
}
It's pretty hard to tell without knowing where the script came from, did it come from a dialog and if so who's was it.


What does the variable TAR_DUELINPROGRESS do?
I guess it would do what it says, checks to see if there's a duel in progress on Taris.

Why do you want to know anyway? is there something you need to alter? If so provide more information, it makes it easier to help.

--Stream

Seamhainn
01-06-2008, 09:21 AM
The script makes Duncan run and then walk away after his conversation on Manaan.

I want a conditional for Duncan's spawning on Manaan. That is if the pc never entered the dueling arena it wouldn't make much sence to spawn Duncan.

Thanks and take care

stoffe
01-06-2008, 09:56 AM
Hello!

Two quick questions. What does this script do:

void main() {
SignalEvent(OBJECT_SELF, EventUserDefined(10));
}



It triggers the UserDefined event of the object running your script. This runs its assigned OnUserDefined script and making the GetUserDefinedEventNumber() function in that script return the value 10.