Container Target References: Difference between revisions

From HLKitWiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 14: Line 14:
Example: "result = this.ishero".
Example: "result = this.ishero".
|-
|-
|assign[tag]
|assign[''tag'']
|
|
|-
|-
|delete[tmpl]
|delete[''tmpl'']
|
|
|-
|-
|assignstr[str]
|assignstr[''str'']
|
|
|-
|-
|deletestr[str]
|deletestr[''str'']
|
|
|-
|-
|tagis[tmpl]
|tagis[''tmpl'']
|
|
|-
|-
|tagcount[tmpl]
|tagcount[''tmpl'']
|
|
|-
|-
|tagvalue[tmpl]
|tagvalue[''tmpl'']
|
|
|-
|-
|tagmax[tmpl]
|tagmax[''tmpl'']
|
|
|-
|-
|tagmin[tmpl]
|tagmin[''tmpl'']
|
|
|-
|-
|tagexpr[expr]
|tagexpr[''expr'']
|
|
|-
|-
|taguniquestr[str]
|taguniquestr[''str'']
|
|
|-
|-
|tagcountstr[str]
|tagcountstr[''str'']
|
|
|-
|-
|tagvaluestr[str]
|tagvaluestr[''str'']
|
|
|-
|-
|tagmaxstr[str]
|tagmaxstr[''str'']
|
|
|-
|-
|tagminstr[str]
|tagminstr[''str'']
|
|
|-
|-
|taguniquestr[str]
|taguniquestr[''str'']
|
|
|-
|-
|tagexprstr[str]
|tagexprstr[''str'']
|
|
|-
|-

Revision as of 10:52, 5 December 2008

Context: HL Kit … Kit Reference … Target References 

There are a wide assortment of operations that can be performed on containers, some of which modify the container and some that simply retrieve information about the container. The complete list of these operations is presented in the table below.

NOTE! When a container is accessed from within a visual script, all operations are restricted to read-only behavior. Any attempts to modify a container from within a visual script will fail.

live (Read-Only) Returns whether the container is currently considered "live" (1) or not (0). The live state for a gizmo is dictated by the live state of its parent pick that attaches it, while a hero is always considered live.

Example: "result = this.live".

ishero (Read-Only) Returns whether the container is a hero (1) or not (0).

Example: "result = this.ishero".

assign[tag]
delete[tmpl]
assignstr[str]
deletestr[str]
tagis[tmpl]
tagcount[tmpl]
tagvalue[tmpl]
tagmax[tmpl]
tagmin[tmpl]
tagexpr[expr]
taguniquestr[str]
tagcountstr[str]
tagvaluestr[str]
tagmaxstr[str]
tagminstr[str]
taguniquestr[str]
tagexprstr[str]
weight (Read-Only) Returns the total weight of all "gear" picks within the container.

Example: "result = this.weight".

foreach
errorcount
errorlist
istransact
isminion
ismaster
miniontext
livename
isactive
initchange
ismoveup
ismovedown
combatant
actorname
playername
sourcetree
panelvalid[id]
childexists[id]
picklives[id]
pickcount[id]
inherit
isidentity
setidentity
countidentity
tagmatch[
tagsearch[
isdynalink[
gearlist
geartree
tagnames
tagabbrevs
tagids
hasminion[
setactor
combatmove[
combatmovenow
combatact
combatdefer
haschild[
intersect[