Difference between revisions of "GetNthAlias - Quest"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Jbezorg
(Created page with "Assuming the code below is a quest script getting it's own aliases. <source lang="papyrus"> int idx = self.GetNumAliases() while idx > 0 idx -= 1 Alias nthAlias = in.GetNth...")
 
imported>Jbezorg
 
Line 4: Line 4:
while idx > 0
while idx > 0
idx -= 1
idx -= 1
Alias nthAlias = in.GetNthAlias(idx) as Alias
Alias nthAlias = self.GetNthAlias(idx) as Alias


; LocationAlias or ReferenceAlias
; LocationAlias or ReferenceAlias

Latest revision as of 17:31, 24 November 2013

Assuming the code below is a quest script getting it's own aliases.

int idx  = self.GetNumAliases()
while idx > 0
	idx -= 1
	Alias nthAlias = self.GetNthAlias(idx) as Alias

	; LocationAlias or ReferenceAlias
	if nthAlias
		; do stuff
	endIf
endWhile