Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ Function that manage commands smaugfusse 1.9
Function that manage commands smaugfusse 1.9
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Lerkista
(57 posts) Bio
|
Date
| Sat 06 Sep 2014 12:36 AM (UTC) |
Message
| 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 | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sat 06 Sep 2014 02:07 AM (UTC) Amended on Sat 06 Sep 2014 02:18 AM (UTC) by Nick Gammon
|
Message
| 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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #2 on Sat 06 Sep 2014 02:16 AM (UTC) |
Message
| 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:
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
12,028 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top