Age of Variable

what is a variable in programming?

Let's take a tap delivering hot water on one side and cold water on the other.

  1. By turning only the hot water tap, you obtain hot or even boiling water.
  2. By turning only the cold water tap you obtain cold or even iced water.
  3. By turning each of the taps more or less, the mixing of the waters will produce water whose temperature will depend on the rate of hot and cold water.

In this example, we therefore have two variables:

  1. the hot water tap.
  2. the cold water tap.

It's easy to understand 🤡!

list of variables available in Age of Conan

  • %0, the name of the script. If the script is called “ example ”, then %0 will be “ example ”.
  • %1, %2, %3, … %n, the parameters given in order when calling the script. Each term separated by a space in the command will be considered a variable.
  • Combine several space-separated terms into a single variable by encapsulating them with " (quotes). This method has the default of displaying " encapsulation 😕.
  • %*, contains all the parameters following the command.
  • %f, the name of your target during combat. Although a target can inflict damage on you, it must still be hit at least once for it to be considered the combat target.
  • %m, the name of the character who executed the command.
  • %t, the name of the current target.

quickly test the different variables

If you do not know how to create a script file, please go to the page create your first script

Copy the code below into a file named “ afi_sample_variables ” then, in game, type the command /afi_sample_variables ABC DEF "UVW XYZ"

afi_sample_variables.txt

_10
<br>The name of the script is:<br> - %0<br>the command parameters are:<br> - %1 and %2<br>The combined variable is:<br> - %3<br >All of the command variables are:<br> - %*<br>My target (during combat) is:<br> - %f<br>The name of the character sending this script is:< br> - %m<br>The name of my target is:<br> - %t

💬 share your experience!

Welcome to the comments section dedicated to Age of Conan! We're excited to hear your thoughts, strategies, and experiences in this epic world. Whether you have tips to share, questions to ask, or stories to tell, we're here to listen. The lands of Hyboria are filled with mysteries and challenges, and we believe your contribution will enrich our player community. Feel free to leave your mark in the sands of time by sharing your thoughts below. Together, we're writing the history of Conan! 🎺🎺

Buy Me A Coffee