Function that manage commands smaugfusse 1.9

Posted by Lerkista on Sat 06 Sep 2014 12:36 AM — 3 posts, 15,257 views.

#0
Hi

I want to know with function are the used to manage commands in Smaugfusse 1.9

I tried to change the movement commands to spanish, but if i create a command "este", when i type "e", the mud think i want to type "eat", and i want to fix that directly in that function, with something like if (cmd == "n") cmd="norte";

i don´t know if it´s the best way to do that, i´ve a very little experience with smaug (i´m a LPC coder)

Thanks
Australia Forum Administrator #1
Commands are in system/commands.dat

eg.


#COMMAND
Name        east~
Code        do_east
Position    112
Level       0
Log         0
End



You may probably have to move "este" above "eat" for it to work, I'm not sure.
Amended on Sat 06 Sep 2014 02:18 AM by Nick Gammon
Australia Forum Administrator #2
For example, in the English version, if I switch the order around:


#COMMAND
Name        eat~
Code        do_eat
Position    106
Level       0
Log         0
End

#COMMAND
Name        east~
Code        do_east
Position    112
Level       0
Log         0
End



Then compile, and type: e

I get:


Eat what?