Script questions
The Shell 27 Apr 2008
Do [S A nd] scripts run, check it's conditions and perform actions when the map loads or does the subroutine flag lock it until it's referenced?
What about [S A D] scripts? Does the fact that it deactivates after it has run mean it won't run when triggered by another script?
As for [S nA D]. Does it not run when triggered by another script because it's set to inactive?
Thanks
Edited by hl_world, 27 April 2008 - 22:48.
What about [S A D] scripts? Does the fact that it deactivates after it has run mean it won't run when triggered by another script?
As for [S nA D]. Does it not run when triggered by another script because it's set to inactive?
Thanks
Edited by hl_world, 27 April 2008 - 22:48.
nip 27 Apr 2008
Forget the logograms, they are unimportant. 2 type of scripts are available - scripts and subroutine scripts. Subroutines are triggered by another script using the action 'Run subroutine script' or by teams when the subroutine is embedded in teams properties and certain conditions are met. When a script is disabled it must be enabled first to run by using the action 'Enable script'.
The Shell 28 Apr 2008
You didn't answer any questions. All you did was tell me what I already know and didn't ask. If by logograms you mean [S A D], they are VERY important. The flags make the difference between the script being subroutine or normal.
So if you you know the answer to any of the 3 questions PLEASE LET ME KNOW!
So if you you know the answer to any of the 3 questions PLEASE LET ME KNOW!
Liliana 28 Apr 2008
hl_world, on 28 Apr 2008, 0:45, said:
Do [S A nd] scripts run, check it's conditions and perform actions when the map loads or does the subroutine flag lock it until it's referenced?
The latter. Subroutine = does not start until it's loaded via "load subroutine" (see post above)
hl_world, on 28 Apr 2008, 0:45, said:
What about [S A D] scripts? Does the fact that it deactivates after it has run mean it won't run when triggered by another script?
The D just means it will stop running when the script has been executed. It can easily be re-run when called by another script.
hl_world, on 28 Apr 2008, 0:45, said:
As for [S nA D]. Does it not run when triggered by another script because it's set to inactive?
First the script needs to be enabled, otherwise it won't run even if called.