Blockland Forums > Modification Help
Take off the _ from a name?
<< < (5/6) > >>
Pew446:

--- Quote from: Chrono on August 05, 2010, 02:20:49 AM ---I'm unsure.

I've never worked with events through scripts.

--- End quote ---

Ah. Ok.
Triple Nickels:

--- Quote from: herb on August 04, 2010, 07:41:04 PM ---%name=%brick.getName();

%name=strReplace(%name,"_","");

this will change all _ in the string, into nothing and will return John.

u can change it into different things, for ex:

%name=strReplace(%name,"_","*");

that will return *John

--- End quote ---
I hate you. You are terrible at coding.
Pew446:
MORE QUESTION!!! Alright. This one is simple, but idk.

How do I set a client variable that can be used in every function in the script? I tried %client.var = "lol"; but it only works in the one function.
Headcrab Zombie:
That should work just fine.
otto-san:

--- Quote from: Triple Nickels on August 06, 2010, 02:06:53 AM ---I hate you. You are terrible at coding.

--- End quote ---
lol'd
Navigation
Message Index
Next page
Previous page

Go to full version