ID:167214
 
Is it possible to do something like:
client/script={"
macro
F1 return "ChangeWeapon" "1"
F2 return "ChangeWeapon" "2"
F3 return "ChangeWeapon" "3"
"}


mob
var
Weapon
list/Weapons
verb/ChangeWeapon(N)
set hidden = 1
if(N) Weapon = Weapons[N]


I know that doesn't work. If it's currently impossible, could it be added? It would make some things alot easier by allow them to be passed through a central verb.
DarkCampainger wrote:
> client/script={"
> macro
> F1 return "ChangeWeapon" "1"


Couldn't that work with:
client/script={"
macro
F1 return "ChangeWeapon 1"

?
In response to Scoobert
I'll be darned... This should be documented :D

Thanks Scoobert.
In response to DarkCampainger
So, that worked? I wasn't sure, but knowing how macros worked in DS, I guessed that preprogrammed ones would work the same.