Difference between revisions of "Complete Example Scripts"
Jump to navigation
Jump to search
m
→Enabling ReferenceAliases using an array: Changed the syntax.
imported>Langerz82 |
imported>Terra Nova2 m (→Enabling ReferenceAliases using an array: Changed the syntax.) |
||
Line 844: | Line 844: | ||
; Can optionally have them enable on a specific quest stage of a quest that is different from the alias' parent quest. Requires that abSpecificQuest is set to the true. | ; Can optionally have them enable on a specific quest stage of a quest that is different from the alias' parent quest. Requires that abSpecificQuest is set to the true. | ||
int MyArrayLength = myAliasArray.length | int MyArrayLength = myAliasArray.length | ||
if abSpecifyQuest == false | if abSpecifyQuest == false | ||
While | While (myArraylength) | ||
myArrayLength -= 1 | |||
myAliasArray[i].GetReference().Enable() | myAliasArray[i].GetReference().Enable() | ||
debug.trace(" | debug.trace("References that have been enabled:" !myAliasArray[i].GetReference().IsDisabled()) | ||
EndWhile | EndWhile | ||
else | else | ||
if (akQuest.GetCurrentStageID() == aiStage) | if (akQuest.GetCurrentStageID() == aiStage) | ||
While | While (myArrayLength) | ||
myArrayLength -= 1 | |||
myAliasArray[i].GetReference().Enable() | myAliasArray[i].GetReference().Enable() | ||
i | |||
debug.trace("References that have been disabled:" !myAliasArray[i].GetReference().IsDisabled()) | |||
EndWhile | EndWhile | ||
endif | endif |