ID:168893
 
Is there anyway to change it during runtime with a verb or sumthing?
Yea
mob/verb/Change_Command_Text()
var/ct = input("What do you want to change the command text to?","Client Command Text",client.command_text) as null|text
if(ct)
client.command_text = ct
In response to DarkCampainger (#1)
Nope...it doesnt work Well it changes it, but what im trying to accomplish is change it from the alt button to the say button (u kno, the 3 lil buttons at the bottom of ds)
client.command_prompt = ".alt "
In response to Sniper Joe (#3)
Nope, just gives me a warning. no prob ill just live wit it
In response to Lou (#4)
What is the warning? I can help.
In response to Sniper Joe (#5)
loading Untitled.dme
loading macro.dms
actions.dm:130:= :warning: assignment of procedural properties takes place at compile-time. Move this to the top of the procedure to avoid this warning.
loading 1.dmp
saving Untitled.dmb (DEBUG mode)

...maybe the .alt or say thing can only be assigned at compile time
mob/verb/Change_Command_Text()
switch(alert("What do you want your command text to be?",,"alt","Say","Cancel"))
if("alt")
src.client.command_text = ".alt "
if("Say")
src.client.command_text = "Say "
if("Cancel")
return


This works
In response to Crzylme (#7)
No,actually, it doesnt...
In response to Lou (#8)
Yes it does. Before I put it there, I compiled it and it works.

Are you getting any errors?
In response to Crzylme (#9)
Well, yes it does change the variable, but it doesnt change what button is depressed.
In response to Lou (#10)
I am done Arguing with you.

Yes. It does press the button down and the Command Text changes.