ID:157350
 

Im trying to make a way to make ingame macros and also have them saved in your savefile(for people that multikey or play multiply games), but its not working right in the begining

mob/verb/Test()world<<"Worked"

client
control_freak=1
//The next lines goes into the script file from DM

macro
a return "Test"


For some reason it doesn't output "Worked" when I press "a", I suppose there is a variable to "activate" the script, yet I don't know what it is nor does it say in the reference.

Am I doing something wrong?
(Note that I dont want to use that .alt thing..)
You seem to be mixing up client.script (the '.alt thing', as you call it) with the 'new' interface.

Handling macros should be done through winset, as described in the skin reference and not through a dms file as you have partly included in your code snippet.
In response to Schnitzelnagler
hmm, that makes sense lol..
I will find a way to winset it to the macro(cant try atm cuz am on a mac), but just so I dont have to ask again, how would you go about saving these macros?
In response to Abrax
since I'm not sure as to what exactly you're referring to, I'll blunt out guess.
I'd simply save the macro's name and command value and then recreate them upon loading.