Author |
Message |
Topic: capuring numbers into a variable? |
Hibio
Replies: 10
Views: 15888
|
Forum: zMUD General Discussion Posted: Thu Dec 30, 2004 2:04 am Subject: capuring numbers into a variable? |
First of all, you do have to clarify your question and what you want to do clearly
You wanted 'unlock code : 5467' and for the variable code to get the number 5467, the trigger I gave you works fin ... |
Topic: capuring numbers into a variable? |
Hibio
Replies: 10
Views: 15888
|
Forum: zMUD General Discussion Posted: Wed Dec 29, 2004 9:24 pm Subject: capuring numbers into a variable? |
#trigger {unlock code ~: (%d)} {#var code %1} |
Topic: Word Wrap problem |
Hibio
Replies: 1
Views: 4046
|
Forum: zMUD General Discussion Posted: Wed Dec 29, 2004 9:00 pm Subject: Word Wrap problem |
Look at the 2 quotes... the pattern doesn't match
hmmm try pattern
(%d) Agatean Empire saveloy~-rhinu |
Topic: Reducing value of a variable? |
Hibio
Replies: 8
Views: 12775
|
Forum: zMUD General Discussion Posted: Wed Dec 29, 2004 9:21 am Subject: Reducing value of a variable? |
#ALIAS afflict {#addkey afflictions %1 1;#IF (@testnum) < 0 {@testnum = 0};#add testnum 1}
The #if part seems to be the error. How can you have if TRUE then have a comparison < right after? ... |
Topic: cap sensitive... |
Hibio
Replies: 1
Views: 3679
|
Forum: zMUD General Discussion Posted: Tue Dec 28, 2004 10:32 pm Subject: cap sensitive... |
The %ascii() might be of help, I believe ASCII for cap characters are from 65 for A to 90 for Z and for lower case 97 for a to 122 for z.
There are also the %proper() and %upper() functions which a ... |
Topic: help me with a variable please |
Hibio
Replies: 5
Views: 6661
|
Forum: zMUD General Discussion Posted: Tue Dec 28, 2004 9:41 pm Subject: help me with a variable please |
i.e.
1) #math mvp (@xp_cur / (%3 + (24 * (%2 + (%1 * 7)))))
2) #math mp_per (@mp_cur*100/@mp_max)
3) #math tick (@tick + 1)
Is this enough? multiplication/division/addition/subtraction ... |
Topic: help me with a variable please |
Hibio
Replies: 5
Views: 6661
|
Forum: zMUD General Discussion Posted: Tue Dec 28, 2004 8:49 pm Subject: help me with a variable please |
The zMUD help gives a very good example on how to use the #math function. |
Topic: help me with a variable please |
Hibio
Replies: 5
Views: 6661
|
Forum: zMUD General Discussion Posted: Tue Dec 28, 2004 2:08 pm Subject: help me with a variable please |
First of, %eval is only to show, it doesn't really save the variable
example:
#var amount 100
%eval {@amount - 50} = this will show 50 on the screen, and the variable amoun ... |
Topic: Loot and sell script help please |
Hibio
Replies: 7
Views: 11614
|
Forum: zMUD General Discussion Posted: Tue Dec 28, 2004 5:44 am Subject: Loot and sell script help please |
try
#forall @sell {#var sell %delitem( %i, @sell);#wait 2000}
a wait 2 seconds after each sell |
Topic: Reducing value of a variable? |
Hibio
Replies: 8
Views: 12775
|
Forum: zMUD General Discussion Posted: Mon Dec 27, 2004 11:19 pm Subject: Reducing value of a variable? |
#math test_var {@test_var - 1}
works fine for me |
Topic: zCHAT + zMUD 7.05 |
Hibio
Replies: 0
Views: 2932
|
Forum: zMUD General Discussion Posted: Mon Dec 27, 2004 9:54 pm Subject: zCHAT + zMUD 7.05 |
I got the 'snoop' part working, but somehow the 'command' part doesn't work.
Checked the options for snoop and command. My friend can see my mud session screen, but he just can't get the #sendcom ... |
Topic: Loot and sell script help please |
Hibio
Replies: 7
Views: 11614
|
Forum: zMUD General Discussion Posted: Mon Dec 27, 2004 9:50 pm Subject: Loot and sell script help please |
Make a string with items you are going to pick up, do a loop through the string to pick up the items - this might look kind of messy on your mud session screen but less time to crate than the other o ... |
Topic: Timing issue for two-part alias (Achaea) |
Hibio
Replies: 2
Views: 5895
|
Forum: zMUD General Discussion Posted: Mon Dec 27, 2004 9:44 pm Subject: Timing issue for two-part alias (Achaea) |
You can always add in the '#wait xxxx' command for a pause in between, 1000 = 1 second |
Topic: Alias/Variable Trouble |
Hibio
Replies: 4
Views: 5100
|
Forum: zMUD General Discussion Posted: Mon Dec 27, 2004 9:42 pm Subject: Alias/Variable Trouble |
count is just a number vriable. What happen is you put the monsters into an array of variables, and count tells you the slot in the array.
Gremlin - 1
Bubonis - 2
Slime - 3
Storm - 4
Tho ... |
Topic: roller iluminado (tiradas iluminado) (trigger) |
Hibio
Replies: 2
Views: 8745
|
Forum: Finished MUD Scripts Posted: Tue Apr 20, 2004 11:14 pm Subject: roller iluminado (tiradas iluminado) (trigger) |
*yawn* how about something more exciting.. |
Topic: Achaea triggs help wanted |
Hibio
Replies: 8
Views: 9791
|
Forum: zMUD General Discussion Posted: Mon Apr 12, 2004 10:49 pm Subject: Achaea triggs help wanted |
Time to rewrite them... |
Topic: command history |
Hibio
Replies: 8
Views: 7099
|
Forum: zMUD General Discussion Posted: Sat Apr 03, 2004 12:51 am Subject: command history |
You can always try to log your own commands then do the recall there, instead of using the buildin function... |
Topic: Best way to.....? |
Hibio
Replies: 5
Views: 6705
|
Forum: zMUD General Discussion Posted: Wed Mar 31, 2004 8:08 pm Subject: Best way to.....? |
I use the editor since I have so many trigs/variables/classes, I rather just click on the class to create something new instead of having to type our and remember all the classes/trigs/variables when ... |
Topic: You killed %1. - trigger double. |
Hibio
Replies: 3
Views: 4685
|
Forum: zMUD General Discussion Posted: Wed Mar 31, 2004 8:03 pm Subject: You killed %1. - trigger double. |
why bother with abort and more if? When you can just go
And You killed %1
#IF ("orcish horde" = %1) {
get gold from corpse
get bow from corpse
get vest from corpse into pack
get vest from ... |
Topic: %additem etc. |
Hibio
Replies: 4
Views: 5696
|
Forum: zMUD General Discussion Posted: Wed Mar 31, 2004 11:36 am Subject: %additem etc. |
Why create all the trouble, why don't you just create a child window and capture the "talk" into the child window, when you want to see the history, you just have to click over the child window.
... |
Topic: Alias "goto" for zMud 5.5+ |
Hibio
Replies: 1
Views: 9113
|
Forum: Finished MUD Scripts Posted: Tue Mar 30, 2004 10:27 pm Subject: Alias "goto" for zMud 5.5+ |
Oh also, here is the alias to reset to the default location which is the Cathedral on Overdrive mud.
#alias gotoreset
{
#var location cath
#var locnew {}
#var locnewb {}
#var locold {}
#var l ... |
Topic: Alias "goto" for zMud 5.5+ |
Hibio
Replies: 1
Views: 9113
|
Forum: Finished MUD Scripts Posted: Tue Mar 30, 2004 10:21 pm Subject: Alias "goto" for zMud 5.5+ |
Created for Overdrive mud, but I am sure you can use it on another mud with some modifications if necessary.
Here is something cool. Enjoy and have fun.
Here is a formated version so you can read ... |
|