Out of curiosity is this possible?
I mean, I know with expressions it is now technically possible using regular expressions matching each letter in the string and setting a variable for it, but is there a more practical solution?
String Capture
- Sif al Taak
- Posts: 19
Are we able to initialise are varaiable with a string value like:
I know i will get: [VTank] Error in meta expression action: setvar[player1,Sif al Taak] (Operand without intervening operator: "setvar[player1,Sif al Taak]")
is working and i get the Player name and i could compare with
But i want to initalise vars with the names of players of a fellowship, which are allowed to control the shared commands for multi boxing
Static it works like
But i want to initalise vars with the names, so i dont need the whole static char name stuff in each command check....
Code: Select all
setvar[player1, Sif al Taak]
Code: Select all
setvar[player,getcharstringprop[1]]
Code: Select all
istrue[getvar[player]==Sif al Taak]==1
Static it works like
Code: Select all
^(\[Fellowship\] |)(\<Tell:IIDString:.+:(Sif al Taak|Ziv al Taak|Elm|Sin'sa)\>.+\<\\Tell\> (says|tells you)|You say), \"!r\"$
- HellsWrath
- Site Admin
- Posts: 389
You are trying to name your variable with both a string and an integer as [player1]
You need to escape the 1 to make it part of the string [player\1, Sif al Taak]
You need to escape the 1 to make it part of the string [player\1, Sif al Taak]
Hell's Wrath of MT
http://www.twitch.tv/hellswrathmt/profile
http://www.twitch.tv/hellswrathmt/profile