Variables: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>8691RGI
No edit summary
m (added $loc variable)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOTOC__
== Overview ==
A variable is a placeholder for a piece of information that refers to your your current target or your currently logged in character.  Variables may be used in all types of [[:Category:Communication Commands|Communication Commands]].  When a variable is used the appropriate information referring to your target or character is substituted for the variable before it is sent to the appropriate communication channel.
A variable is a placeholder for a piece of information that refers to your your current target or your currently logged in character.  Variables may be used in all types of [[:Category:Communication Commands|Communication Commands]].  When a variable is used the appropriate information referring to your target or character is substituted for the variable before it is sent to the appropriate communication channel.


=== Target Variables ===
== Target Variables ==
*'''$target''' Your target's display name
*'''$target''' Your target's display name
=== Character Variables ===
== Character Variables ==
*'''$name''' Your name (minus any titles)
*'''$name''' Your name (minus any titles)
*'''$level''' Your level (security/threat, not combat)
*'''$level''' Your level (security/threat, not combat)
*'''$primary''' Your [[Primary Power Sets|primary power set]]
*'''$secondary''' Your [[Secondary Power Sets|secondary power set]]
*'''$archetype''' Your [[archetype]]
*'''$archetype''' Your [[archetype]]
*'''$origin''' Your [[origin]]
*'''$origin''' Your [[origin]]
*'''$battlecry''' Your [[battlecry]], which can be modified, along with your backstory, through the options menu.
*'''$battlecry''' Your [[battlecry]], which can be modified, along with your backstory, through the options menu.
*'''$side''' Displays "Hero" or "Villain" depending on your character's current content flag.  Content flag determines which PVP side your character is on and possibly other game-related content.
*'''$side''' Displays "Hero" or "Villain" depending on your character's current content flag.  Content flag determines which PVP side your character is on and possibly other game-related content.
:Side values for various character [[Alignment|Alignments]]
::[[Hero_(Alignment)|Hero]], [[Vigilante_(Alignment)|Vigilante]] and [[Resistance_(Alignment)|Resistance]] display '''Hero'''
::'''Hero''' [[Hero_(Alignment)|Hero]], [[Vigilante_(Alignment)|Vigilante]], [[Resistance_(Alignment)|Resistance]]
::[[Villain_(Alignment)|Villain]], [[Rogue_(Alignment)|Rogue]] and [[Loyalist_(Alignment)|Loyalist]] display '''Villain'''
::'''Villain''' [[Villain_(Alignment)|Villain]], [[Rogue_(Alignment)|Rogue]], [[Loyalist_(Alignment)|Loyalist]]
*'''$loc''' Your current coordinates as a clickable [[Thumbtack (Slash Command)|thumbtack]] link


== Example ==
== Example ==
Line 22: Line 26:


== See Also ==
== See Also ==
* [[Slash Commands]]
* [[Slash Commands]]


[[Category:Slash Commands| ]]
[[Category:Slash Commands| ]]

Latest revision as of 19:14, 17 May 2021

Overview

A variable is a placeholder for a piece of information that refers to your your current target or your currently logged in character. Variables may be used in all types of Communication Commands. When a variable is used the appropriate information referring to your target or character is substituted for the variable before it is sent to the appropriate communication channel.

Target Variables

  • $target Your target's display name

Character Variables

  • $name Your name (minus any titles)
  • $level Your level (security/threat, not combat)
  • $primary Your primary power set
  • $secondary Your secondary power set
  • $archetype Your archetype
  • $origin Your origin
  • $battlecry Your battlecry, which can be modified, along with your backstory, through the options menu.
  • $side Displays "Hero" or "Villain" depending on your character's current content flag. Content flag determines which PVP side your character is on and possibly other game-related content.
Hero, Vigilante and Resistance display Hero
Villain, Rogue and Loyalist display Villain
  • $loc Your current coordinates as a clickable thumbtack link

Example

A level 37 Blaster whose alignment is "Hero" using the following broadcast command:

/b $side $archetype $level looking for group!

will produce the following output in the broadcast channel:

Hero Blaster 37 looking for group!

See Also