Difference between revisions of "Complete Example Scripts"

Jump to navigation Jump to search
207 bytes added ,  18:02, 1 March 2015
m
imported>Langerz82
imported>Terra Nova2
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 i = 0
 
int MyArrayLength = myAliasArray.length
int MyArrayLength = myAliasArray.length


if abSpecifyQuest == false
if abSpecifyQuest == false
While i < myArraylength
While (myArraylength)
                myArrayLength -= 1
myAliasArray[i].GetReference().Enable()
myAliasArray[i].GetReference().Enable()
i += 1
debug.trace("Iterating:" + i)
debug.trace("References that have been enabled:" !myAliasArray[i].GetReference().IsDisabled())
EndWhile
EndWhile
else
else
if (akQuest.GetCurrentStageID() == aiStage)
if (akQuest.GetCurrentStageID() == aiStage)
    While i < myArraylength
    While (myArrayLength)
                myArrayLength -= 1
        myAliasArray[i].GetReference().Enable()
        myAliasArray[i].GetReference().Enable()
        i +=1
         
debug.trace("References that have been disabled:" !myAliasArray[i].GetReference().IsDisabled())
    EndWhile
    EndWhile
endif
endif
Anonymous user

Navigation menu