Difference between revisions of "Complete Example Scripts"
Jump to navigation
Jump to search
m
→Enabling ReferenceAliases using an array
imported>Langerz82 |
imported>Terra Nova2 |
||
Line 842: | Line 842: | ||
; 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 | |||
if abSpecifyQuest == false | if abSpecifyQuest == false | ||
While i < | While i < myArraylength | ||
myAliasArray[i].GetReference().Enable() | myAliasArray[i].GetReference().Enable() | ||
i += 1 | i += 1 | ||
Line 852: | Line 854: | ||
else | else | ||
if (akQuest.GetCurrentStageID() == aiStage) | if (akQuest.GetCurrentStageID() == aiStage) | ||
While i < | While i < myArraylength | ||
myAliasArray[i].GetReference().Enable() | myAliasArray[i].GetReference().Enable() | ||
i +=1 | i +=1 | ||
Line 860: | Line 862: | ||
EndFunction | EndFunction | ||
</source> | </source> | ||
=Resurrect an Enemy on Death Script= | =Resurrect an Enemy on Death Script= | ||
Created by [http://www.nexusmods.com/skyrim/users/6211524/? DarkWolfModding]. | Created by [http://www.nexusmods.com/skyrim/users/6211524/? DarkWolfModding]. |