Container Target References: Difference between revisions
From HLKitWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 77: | Line 77: | ||
| | | | ||
|- | |- | ||
|tagmatch[ | |tagmatch[''refgrp'',''match'',''ref''] | ||
| | | | ||
|- | |- | ||
|tagsearch[ | |tagsearch[''str''] | ||
| | | | ||
|- | |- | ||
|intersect[ | |intersect[''src'',''targ''] | ||
| | | | ||
|- | |- | ||
|inherit | |inherit[''id''] | ||
| | | | ||
|- | |- | ||
|tagnames | |tagnames[''tmpl'',''delim''] | ||
| | | | ||
|- | |- | ||
|tagabbrevs | |tagabbrevs[''tmpl'',''delim''] | ||
| | | | ||
|- | |- | ||
|tagids | |tagids[''tmpl'',''delim''] | ||
| | | | ||
|- | |- | ||
|childexists[id] | |childexists[''id''] | ||
| | | | ||
|- | |- | ||
| | |childlives[''id''] | ||
| | | | ||
|- | |- | ||
| | |childcount[''id''] | ||
| | | | ||
|- | |- | ||
|haschild[ | |haschild[''str''] | ||
| | | | ||
|- | |- | ||
|isidentity | |isidentity[''grp''] | ||
| | | | ||
|- | |- | ||
|setidentity | |setidentity[''grp''] | ||
| | | | ||
|- | |- | ||
|countidentity | |countidentity[''grp''] | ||
| | | | ||
|- | |- | ||
Line 131: | Line 131: | ||
| | | | ||
|- | |- | ||
|hasminion[ | |hasminion[''id''] | ||
| | | | ||
|- | |- | ||
Line 140: | Line 140: | ||
| | | | ||
|- | |- | ||
|isdynalink[ | |isdynalink[expr] | ||
| | | | ||
|- | |- | ||
Line 150: | Line 150: | ||
Example: "result = this.weight". | Example: "result = this.weight". | ||
|- | |- | ||
|gearlist | |gearlist[''delim'',''expr''] | ||
| | | | ||
|- | |- | ||
|geartree | |geartree[''expr''] | ||
| | | | ||
|- | |- | ||
|panelvalid[id] | |panelvalid[''id''] | ||
| | | | ||
|- | |- | ||
Line 177: | Line 177: | ||
| | | | ||
|- | |- | ||
|combatmove[ | |combatmove[''expr''] | ||
| | | | ||
|- | |- |
Revision as of 11:19, 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".
isactive 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] livename actorname playername tagmatch[refgrp,match,ref] tagsearch[str] intersect[src,targ] inherit[id] tagnames[tmpl,delim] tagabbrevs[tmpl,delim] tagids[tmpl,delim] childexists[id] childlives[id] childcount[id] haschild[str] isidentity[grp] setidentity[grp] countidentity[grp] setactor foreach isminion ismaster hasminion[id] miniontext sourcetree isdynalink[expr] istransact weight (Read-Only) Returns the total weight of all "gear" picks within the container.
Example: "result = this.weight".
gearlist[delim,expr] geartree[expr] panelvalid[id] errorcount errorlist combatant initchange ismoveup ismovedown combatmove[expr] combatmovenow combatact combatdefer