Author |
Message |
Topic: Voter pkg for cmud - strange error |
Fang Xianfu
Replies: 4
Views: 12268
|
Forum: CMUD General Discussion Posted: Mon Sep 28, 2009 1:44 am Subject: Voter pkg for cmud - strange error |
Thanks for this update; I've uploaded a new version of this script to the library that fixes the problem. |
Topic: Variable defined as part of trigger text received? |
Fang Xianfu
Replies: 3
Views: 8359
|
Forum: zMUD General Discussion Posted: Thu Sep 03, 2009 1:14 pm Subject: Variable defined as part of trigger text received? |
If you want to keep the value for later use you can do something like
bodypart=%1
instead of "will my familiar to strike", and then you can use @bodypart to give you the value anywhere you might ... |
Topic: Minor Issues |
Fang Xianfu
Replies: 2
Views: 6614
|
Forum: zMUD General Discussion Posted: Mon Aug 03, 2009 7:06 am Subject: Minor Issues |
Try [url=http://forums.zuggsoft.com/forums/viewtopic.php?p=146543#146543]this, which I hope is a pretty thorough explanation of how you can go about doing this ;) |
Topic: Need some help with compatiblity report debugging |
Fang Xianfu
Replies: 3
Views: 9368
|
Forum: CMUD General Discussion Posted: Mon Aug 03, 2009 7:00 am Subject: Need some help with compatiblity report debugging |
[[cmud_changes_varassign]This]. |
Topic: auto practice - help plz |
Fang Xianfu
Replies: 1
Views: 6752
|
Forum: zMUD General Discussion Posted: Mon Aug 03, 2009 6:57 am Subject: auto practice - help plz |
I've moved this post to the zMUD forum - if it's a question for CMUD, recreate the thread in the right forum. |
Topic: Log/copy in BBCode color? |
Fang Xianfu
Replies: 2
Views: 7849
|
Forum: zMUD General Discussion Posted: Mon Aug 03, 2009 6:55 am Subject: Log/copy in BBCode color? |
This is going to be difficult in zMUD because it only has ANSI colour logging. You'd either have to use a very complex ansi trigger and #write, a plugin, or a third-party utility like Charbal's HTML l ... |
Topic: How do I... |
Fang Xianfu
Replies: 2
Views: 8226
|
Forum: CMUD General Discussion Posted: Mon Aug 03, 2009 6:50 am Subject: How do I... |
%pop(%string($name))
#var %string($name) value
#say $name is @{$name} |
Topic: Captured Varible with Multiple words, expanding them separately |
Fang Xianfu
Replies: 6
Views: 13398
|
Forum: zMUD General Discussion Posted: Fri Jul 31, 2009 11:24 pm Subject: Captured Varible with Multiple words, expanding them separately |
It might be simpler just to do:
mobname=%trim(%subregex(%lower(@mobname),"\b(a|an|the|whatever)\b"))
which avoids the loop and multiple regex compiles. |
Topic: Math functions for large and floating point numbers |
Fang Xianfu
Replies: 16
Views: 66163
|
Forum: Finished MUD Scripts Posted: Tue Jul 28, 2009 9:48 am Subject: Math functions for large and floating point numbers |
I think this is a factor of your sleep deprivation Vitae. They're both identical:
#if (%mss(islessthan(@test,@ZeroOut))) {#echo YAY} {#Echo BOO}
#if (@test < @ZeroOut) {#echo YAY} {#echo BOO}
... |
Topic: Removing linefeeds/carriage returns |
Fang Xianfu
Replies: 4
Views: 9981
|
Forum: CMUD General Discussion Posted: Thu Jul 23, 2009 7:56 pm Subject: Removing linefeeds/carriage returns |
Basically, you have two options. The first is to start off with a variable and fill it dependant on your variables, and then print it:
$string = ""
#if (@var1=1) {$string=%concat($string,"Variable ... |
Topic: which kind of mud client can run in linux, but can load zmud's ,mud file in it? |
Fang Xianfu
Replies: 2
Views: 7855
|
Forum: zMUD General Discussion Posted: Thu Jul 16, 2009 11:48 am Subject: which kind of mud client can run in linux, but can load zmud's ,mud file in it? |
I heard that Lord Lucan is building a client that'll do just this. Shergar is doing the voice-over work, from the previews it's looking like really amazing stuff.
Seriously, though, you'll be prett ... |
Topic: 1384.61535644531 < 1384 according to %int() ?? |
Fang Xianfu
Replies: 8
Views: 21654
|
Forum: zMUD General Discussion Posted: Wed Jul 15, 2009 7:19 am Subject: 1384.61535644531 < 1384 according to %int() ?? |
I suspect you'll have to re-input your #scripts, yes. In this case, zMUD is using the Windows Script Host to communicate with, I think, VBScript, and when zMUD closes the link stops. |
Topic: tutorials? |
Fang Xianfu
Replies: 3
Views: 10182
|
Forum: CMUD Beta Forum Posted: Wed Jul 15, 2009 7:14 am Subject: tutorials? |
Lua's pretty advanced; if you're just getting started, zScript is easier and can do most of the stuff you'll want to. There're some screencast tutorials being produced at the moment - the thread is [u ... |
Topic: Zmud mysql support |
Fang Xianfu
Replies: 2
Views: 9653
|
Forum: zMUD General Discussion Posted: Tue Jul 14, 2009 9:18 pm Subject: Zmud mysql support |
COM is the way you'll probably want to tackle this in zMUD. It's considerably easier in CMUD (since CMUD's database module will be migrated to SQL at some point anyway) with the Lua interface and LuaS ... |
Topic: 1384.61535644531 < 1384 according to %int() ?? |
Fang Xianfu
Replies: 8
Views: 21654
|
Forum: zMUD General Discussion Posted: Tue Jul 14, 2009 9:16 pm Subject: 1384.61535644531 < 1384 according to %int() ?? |
That's a problem with the max size of a signed integer, which is 2,147,483,648. CMUD raises the limit to 9,223,372,036,854,775,808, which is much better. Beyond that, there's [url=http://forums.zuggso ... |
Topic: Trigger convert to regex function |
Fang Xianfu
Replies: 3
Views: 7209
|
Forum: CMUD Beta Forum Posted: Sun Jul 12, 2009 11:04 am Subject: Trigger convert to regex function |
Making your triggers into regexes doesn't do much, though. The first time the trigger's run, the zScript pattern is converted into a regex which is compiled. Converting your trigger will give you a ve ... |
Topic: AND operator problems |
Fang Xianfu
Replies: 2
Views: 7489
|
Forum: zMUD General Discussion Posted: Sun Jul 12, 2009 11:01 am Subject: AND operator problems |
You have to be careful with the priority of operators - I can't remember what the priorities are, but I suspect that AND comes before <, which means that rather than ((@HP < @TargetHP) AND (@Sip ... |
Topic: #FILE more then 5 text files? |
Fang Xianfu
Replies: 3
Views: 6590
|
Forum: CMUD General Discussion Posted: Sun Jul 12, 2009 10:57 am Subject: #FILE more then 5 text files? |
Nope, though you could write your own file manager that'd open files only when you're about to write to them and close files as necessary to make space for new ones. |
Topic: zMud on a Mac |
Fang Xianfu
Replies: 3
Views: 14183
|
Forum: zMUD General Discussion Posted: Sat Jul 11, 2009 7:40 am Subject: zMud on a Mac |
There're some threads about it around - have a [url=http://forums.zuggsoft.com/forums/search_kb.php]search. It's not officially supported, but it's certainly possible. |
Topic: Mapper Issues |
Fang Xianfu
Replies: 3
Views: 7871
|
Forum: CMUD Beta Forum Posted: Fri Jul 10, 2009 6:56 am Subject: Mapper Issues |
First make sure you're in edit mode (the one with the pencil as opposed to the feet or the cross). Then, if you're in a brand new map with no rooms on it, use the toolbar that appears to create a new ... |
Topic: Logging |
Fang Xianfu
Replies: 7
Views: 14299
|
Forum: CMUD Beta Forum Posted: Tue Jul 07, 2009 4:29 pm Subject: Logging |
Basically, you have an OnConnect [[#event]event] in that window to do the #file command and open the file. You have a trigger that fires on everything to do the #write command, and you have an OnDisco ... |
Topic: Debugging CodeIgniter using PhpEd |
Fang Xianfu
Replies: 14
Views: 147120
|
Forum: Zugg's Blog Posted: Tue Jul 07, 2009 4:11 pm Subject: Debugging CodeIgniter using PhpEd |
As useful as this post might be, this isn't a web development forum, so most of us don't really know what's going on in the OP. Zugg's only one guy and he's pretty busy with CMUD and might not have ti ... |
Topic: loading backup settings |
Fang Xianfu
Replies: 3
Views: 8002
|
Forum: CMUD Beta Forum Posted: Sun Jul 05, 2009 2:47 pm Subject: loading backup settings |
You basically want the whole My Games\CMUD\YourMudName folder. The .dbm file is your map and the .zfg file is the configuration for it. The .pkg file is your triggers and aliases and whatnot. The .tbz ... |
Topic: Import zmud text file with triggers/dirs etc in CMUD? |
Fang Xianfu
Replies: 1
Views: 8013
|
Forum: CMUD General Discussion Posted: Sun Jul 05, 2009 2:43 pm Subject: Import zmud text file with triggers/dirs etc in CMUD? |
Just paste it onto the command line and hit enter. Beware that some things [[cmud_zmud]are different] though. |
Topic: loading backup settings |
Fang Xianfu
Replies: 3
Views: 8002
|
Forum: CMUD Beta Forum Posted: Sun Jul 05, 2009 3:22 am Subject: loading backup settings |
The relative positions of windows are saved in a .xly file rather than a .pkg file - if you've backed up from an old copy you probably deleted the .xly file, or the window IDs in the file don't match ... |
|