User:0.51: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎entity-output template: Unicodifying, replaced: [[Image: → [[File:)
 
(30 intermediate revisions by one other user not shown)
Line 1: Line 1:
=Work in Progress=
==entity-kvalue template==
==entity-kvalue template==
This template presents a set of keyvalues for a given enitity together with the optional comments.  
This template presents a set of keyvalues for a given enitity together with optional comments.  


''Example:''
''Example:''
Line 25: Line 26:
<pre>
<pre>
{{entity-kvalue-start|}}
{{entity-kvalue-start|}}
{{entity-kvalue|||comment}}
{{entity-kvalue|||}}
{{entity-kvalue-end}}
{{entity-kvalue-end}}
</pre>
</pre>


==entity-flag template==
==entity-flag template==
This template presents a set of flags for a given enitity together with the comments (optional).  
This template presents a set of flags for a given enitity together with optional comments.  


''Example:''
''Example:''
{{entity-flag-start|}}
{{entity-flag-start}}
{{entity-flag|Template NPC|on|you may name it as you want}}
{{entity-flag|Template NPC|on|you may name it as you want}}
{{entity-flag|Start burrowed|off|you may name it as you want}}
{{entity-flag|Start burrowed|off|you may name it as you want}}
Line 40: Line 41:
''Syntax:''
''Syntax:''


:<nowiki>{{entity-flag-start|}}</nowiki>
:<nowiki>{{entity-flag-start}}</nowiki>


:<nowiki>{{entity-flag|</nowiki>'''name'''<nowiki>|</nowiki>'''flag'''<nowiki>|</nowiki>'''comment'''<nowiki>}}</nowiki>
:<nowiki>{{entity-flag|</nowiki>'''name'''<nowiki>|</nowiki>'''flag'''<nowiki>|</nowiki>'''comment'''<nowiki>}}</nowiki>
Line 48: Line 49:
where:
where:
*'''name''' - flag name  
*'''name''' - flag name  
*'''value''' - flag value - on or offf
*'''value''' - flag value - <code>on</code> or <code>off</code>
*'''comment''' - flag comment
*'''comment''' - flag comment


''Paste-in:''
''Paste-in:''
<pre>
<pre>
{{entity-flag-start|}}
{{entity-flag-start}}
{{entity-flag|||}}
{{entity-flag|||}}
{{entity-flag|||}}
{{entity-flag|||}}
{{entity-flag-end}}
{{entity-flag-end}}
</pre>
</pre>
==entity-output template==
==entity-output template==
This template presents a set of outputs for a given enitity together with the comments (optional).  
This template presents a set of outputs for a given enitity together with optional comments.  


''Example:''
''Example:''


{{entity-output-start|[[npc_alyx]]}}
{{entity-output-start}}
{{entity-output|Name|on|you may name it as you want||||}}
{{entity-output||onTrigger|on|you may name it as you want||||}}
{{entity-output|Name|off|you may name it as you want||||}}
{{entity-output||Name|off|you may name it as you want||||}}
{{entity-output-end}}
{{entity-output-end}}


''Syntax:''
''Syntax:''


:<nowiki>{{entity-output-start|}}</nowiki>
:<nowiki>{{entity-output-star}}</nowiki>


:<nowiki>{{entity-output|</nowiki>'''output'''<nowiki>|</nowiki>'''target_entity'''<nowiki>|</nowiki>'''target_input'''<nowiki>|</nowiki>'''parameter'''<nowiki>|</nowiki>'''delay'''<nowiki>|</nowiki>'''once_flag'''<nowiki>|</nowiki>'''comment'''<nowiki>}}</nowiki>
:<nowiki>{{entity-output|</nowiki>'''icon'''<nowiki>|</nowiki>'''output'''<nowiki>|</nowiki>'''target_entity'''<nowiki>|</nowiki>'''target_input'''<nowiki>|</nowiki>'''parameter'''<nowiki>|</nowiki>'''delay'''<nowiki>|</nowiki>'''once_flag'''<nowiki>|</nowiki>'''comment'''<nowiki>}}</nowiki>


:<nowiki>{{entity-output-end}}</nowiki>
:<nowiki>{{entity-output-end}}</nowiki>


where:
where:
{|style="position:absolute; right:10px;"
!| value || icon || comments
|-
| <empty>|| [[File:entity-output-icon.png]]|| default icon
|}
*'''icon''' - output icon - see right:
*'''output''' - output name  
*'''output''' - output name  
*'''target_entity''' - target entity name
*'''target_entity''' - target entity name
Line 82: Line 90:
*'''parameter''' - input's parameter override
*'''parameter''' - input's parameter override
*'''delay''' - inputs's delay
*'''delay''' - inputs's delay
*'''once''' - output's once status
*'''once_flag''' - output's once status
*'''comment''' - output comment
*'''comment''' - output comment


''Paste-in:''
''Paste-in:''
<pre>
<pre>
{{entity-output-start|}}
{{entity-output-start}}
{{entity-output|||||||}}
{{entity-output||||||||}}
{{entity-output|||||||}}
{{entity-output||||||||}}
{{entity-output-end}}
{{entity-output-end}}
</pre>
</pre>

Latest revision as of 05:56, 7 January 2024

Work in Progress

entity-kvalue template

This template presents a set of keyvalues for a given enitity together with optional comments.

Example:

Class: npc_alyx
Keyvalues Comments
Name dropship-1 ..you may name it as you want
Number of grenades 5 ..dont get them too many

Syntax:

{{entity-kvalue-start|class}}
{{entity-kvalue|key|value|comment}}
{{entity-kvalue-end}}

where:

  • class - entity class
  • key - parameter name
  • value - parameter value
  • comment - parameter comment

Paste-in:

{{entity-kvalue-start|}}
{{entity-kvalue|||}}
{{entity-kvalue-end}}

entity-flag template

This template presents a set of flags for a given enitity together with optional comments.

Example:

Flag
Checkbox-on.png Template NPC you may name it as you want
Checkbox-off.png Start burrowed you may name it as you want

Syntax:

{{entity-flag-start}}
{{entity-flag|name|flag|comment}}
{{entity-flag-end}}

where:

  • name - flag name
  • value - flag value - on or off
  • comment - flag comment

Paste-in:

{{entity-flag-start}}
{{entity-flag|||}}
{{entity-flag|||}}
{{entity-flag-end}}

entity-output template

This template presents a set of outputs for a given enitity together with optional comments.

Example:

My output Target entity Target input Parameter Delay Only once Comments
Entity-output-icon.png onTrigger on you may name it as you want
Entity-output-icon.png Name off you may name it as you want

Syntax:

{{entity-output-star}}
{{entity-output|icon|output|target_entity|target_input|parameter|delay|once_flag|comment}}
{{entity-output-end}}

where:

value icon comments
<empty> Entity-output-icon.png default icon
  • icon - output icon - see right:
  • output - output name
  • target_entity - target entity name
  • target_input - target entity input
  • parameter - input's parameter override
  • delay - inputs's delay
  • once_flag - output's once status
  • comment - output comment

Paste-in:

{{entity-output-start}}
{{entity-output||||||||}}
{{entity-output||||||||}}
{{entity-output-end}}