| Blockland Forums > Modification Help |
| Coding questions V2 |
| (1/2) > >> |
| heedicalking:
After taking wallet's class, I fell I know alot more about blockland scripting and the torque language, but there are still some things that bug me. How to i combine two variables into one? Like if I did function servercmdCombine(%client, %var1, %var2) And typed /combine Hi There How would I make it form a new variable called Hithere? Another problem I had was servercmds not supporting easy word manipulation. I want to make a command such as /createteam cool club, it would only make the team named cool. I want it so you do function servercmdCreateteam(%client, %name1, %name2) and it keeps spaces and creates a new string called %name3 by combining name 1 and 2. |
| rkynick:
%newvariable = %var1 @ %var2; If I remember correctly. |
| Headcrab Zombie:
@ will concatenate without a space "Hi" @ "There" becomes "HiThere" SPC will concatenate with a space "Hi" SPC "There" becomes "Hi There" Theres a few more, I think, but I don't remember them. |
| lilboarder32:
--- Quote from: Headcrab Zombie on July 12, 2010, 03:38:51 PM ---@ will concatenate without a space "Hi" @ "There" becomes "HiThere" SPC will concatenate with a space "Hi" SPC "There" becomes "Hi There" Theres a few more, I think, but I don't remember them. --- End quote --- There's TAB for a new field and NL for a new line. |
| spartan101:
--- Quote from: heedicalking on July 12, 2010, 08:10:08 AM ---After taking wallet's class, I fell I know alot more about blockland scripting and the torque language, but there are still some things that bug me. How to i combine two variables into one? Like if I did function servercmdCombine(%client, %var1, %var2) And typed /combine Hi There How would I make it form a new variable called Hithere? Another problem I had was servercmds not supporting easy word manipulation. I want to make a command such as /createteam cool club, it would only make the team named cool. I want it so you do function servercmdCreateteam(%client, %name1, %name2) and it keeps spaces and creates a new string called %name3 by combining name 1 and 2. --- End quote --- Dunno,I suck at it myself |
| Navigation |
| Message Index |
| Next page |