what is this? aprq2 1.19 :O

The place to discuss your client and server issues, or to post your client and server related problems. Now with added Anticheat flavour.

Moderator: Moderators

Post Reply
Cnnlngs
plummets to its death
Posts: 68
Joined: Wed Oct 05, 2005 8:34 pm
Location: cl

what is this? aprq2 1.19 :O

Post by Cnnlngs »

-r1q2 text${var}text scripting support.
[/code]
NRGizeR
feels some chest pain
Posts: 695
Joined: Mon Aug 30, 2004 1:00 am
Location: fi
Contact:

Post by NRGizeR »

My guess is that it works like in a bash script... if you put a variable inside text you need to have braces around it ( {} ) in order for the variable to be recognized.

i.e. you could have a variable $firstword, that is set to "dick"
and then you could insert that into other text like for example:

Code: Select all

say "you gay ${firstword}head"
(which would ofcourse produce "you gay dickhead")

If you don't have the braces q2 would be looking for a variable that was named $firstwordhead, but since the braces are in place, it inserts the correct variable, and then puts the head at the end as text.
Note that this is only a qualified guess, I could be wrong about this :)
gegoj
tried to put the pin back in
Posts: 290
Joined: Sun Aug 29, 2004 3:19 pm
Location: si

Post by gegoj »

Is there a list of all pre-defined macros/variables for aprq2?

There are some in the readmes, but i doubt that those are all.
Last edited by gegoj on Sun Apr 02, 2006 5:40 am, edited 1 time in total.
Some people drink from the fountain of knowledge... ...and some just gargle...
AK
is connecting
Posts: 9
Joined: Sat Oct 02, 2004 6:34 pm
Location: fi
Contact:

Post by AK »

gegoj wrote:Is there a list of all pre-defined macros/variables for aprq2?
Check that aprq2_readme.txt in the aprq2 zip file. :o
Örr...
Cnnlngs
plummets to its death
Posts: 68
Joined: Wed Oct 05, 2005 8:34 pm
Location: cl

Post by Cnnlngs »

My guess is that it works like in a bash script... if you put a variable inside text you need to have braces around it ( {} ) in order for the variable to be recognized.
yeah you're right ${firstword}head :D
thanks :P
V34
tried to put the pin back in
Posts: 283
Joined: Tue Aug 31, 2004 12:22 pm
Location: dk
Contact:

Post by V34 »

New Censured Version of ${firstword}head !
Image
Post Reply