GetAliasByName - Quest

Member of: Quest Script

Obtains the alias with the specified name that is attached to this quest. This is the name appearing in the Alias Name field of the Reference Alias form.

SyntaxEdit

Alias GetAliasByName(String name)

ParametersEdit

  • name: The Alias Name of the desired Alias.

Return ValueEdit

The Alias associated with the name, or None if the reference is not found.

ExamplesEdit

; given a series of references named Ref1, Ref2.. RefN, find the first unfilled reference
ReferenceAlias function findEmptyRef()
	int ndx = 0
	ReferenceAlias ref

	while true
		ndx += 1
		ref = memberQuest.getAliasByName("Ref"+ndx) as ReferenceAlias
		if !ref || !ref.getReference() 
			return ref ; returns the open reference or none
		endif
	endwhile
endfunction

NotesEdit

See AlsoEdit