| Author |
Message |
Topic: Help converting a script from Lua to zmud |
Syrik
Replies: 7
Views: 9033
|
Forum: zMUD General Discussion Posted: Sun Dec 12, 2010 12:54 pm Subject: Help converting a script from Lua to zmud |
| ok, thank you so much! |
Topic: Help converting a script from Lua to zmud |
Syrik
Replies: 7
Views: 9033
|
Forum: zMUD General Discussion Posted: Sun Dec 12, 2010 6:16 am Subject: Help converting a script from Lua to zmud |
Ok, thanks!
So how does the #ADDITEM work? Would I just type in something, or would it be put into the script? |
Topic: Help converting a script from Lua to zmud |
Syrik
Replies: 7
Views: 9033
|
Forum: zMUD General Discussion Posted: Sat Dec 11, 2010 5:31 pm Subject: Help converting a script from Lua to zmud |
Ok, I don't know zmud code at all, Sorry! But:
prompt: (\w+) tells you 'command:(.+)' <---- perl regex the (\w+) captures whatever name and becomes, matches[2]. The (.+) is matches[3] and it ca ... |
Topic: Help converting a script from Lua to zmud |
Syrik
Replies: 7
Views: 9033
|
Forum: zMUD General Discussion Posted: Sat Dec 11, 2010 3:34 am Subject: Help converting a script from Lua to zmud |
Ok I have this trigger in mudlet:
prompt: (\w+) tells you 'command:(.+)' <---- perl regex
Script:
commanders = { "<insert any name here>" } <--- these are manually inserted into th ... |
| |