Register to post in forums, or Log in to your existing account
 
:
Search found 14 matches for:
Page 1 of 1
Author Message
  Topic: Parenthesis in %ismember
inimical

Replies: 3
Views: 2244

PostForum: zMUD General Discussion   Posted: Wed Nov 23, 2005 2:08 am   Subject: Parenthesis in %ismember
It seems that %ismember doesn't notice parenthesis in lists it checks. For example:

#ADDI animals cow
#ADDI animals horse
#ADDI animals (pig)
#SHOW @animals --> cow|horse|(pig)
#IF %ismembe ...
  Topic: Using MXP with #SUBSTITUTE to add images
inimical

Replies: 14
Views: 6035

PostForum: zMUD General Discussion   Posted: Fri Aug 06, 2004 7:39 am   Subject: Using MXP with #SUBSTITUTE to add images
That works just fine, it actually occured to me a minute after I posted
#MXP ~<send "sayto dealer first">~<image cards/%1%2.gif>~</send> ~<send "sayto dealer sec ...
  Topic: Using MXP with #SUBSTITUTE to add images
inimical

Replies: 14
Views: 6035

PostForum: zMUD General Discussion   Posted: Thu Aug 05, 2004 6:58 am   Subject: Using MXP with #SUBSTITUTE to add images
Is it possible to use variables within mxp? If I set it up using something like

#TRIG {~[ &FirstRank of &FirstSuit ~] ~[ &SecondRank of &SecondSuit ~] ~[ & ...
  Topic: Using MXP with #SUBSTITUTE to add images
inimical

Replies: 14
Views: 6035

PostForum: zMUD General Discussion   Posted: Thu Aug 05, 2004 1:29 am   Subject: Using MXP with #SUBSTITUTE to add images
The mud I play has several poker halls, where players can get together and play 5 card draw. What I'm trying to do is replace the text format of the cards:


#TRIG {~[ (*) ~]& ...
  Topic: Mud Variable
inimical

Replies: 2
Views: 1826

PostForum: zMUD General Discussion   Posted: Fri Feb 27, 2004 11:41 pm   Subject: Mud Variable
Come on, somebody must have an extra 5 seconds to answer this simple question.
  Topic: Mud Variable
inimical

Replies: 2
Views: 1826

PostForum: zMUD General Discussion   Posted: Thu Feb 26, 2004 12:03 am   Subject: Mud Variable
The mud I play on has several server defined mxp entities, such as hitpoints, spellpower, etc. How can I access these and use them in my own scripts?
  Topic: comparing data records
inimical

Replies: 11
Views: 4968

PostForum: zMUD General Discussion   Posted: Thu Aug 14, 2003 1:15 pm   Subject: comparing data records
This is the script that refuses to work, for every problem solved a new one arises. Now I've noticed an issue with this piece
(%db( @SprigCount, %key)
within the #loopdb command. It returns nothin ...
  Topic: comparing data records
inimical

Replies: 11
Views: 4968

PostForum: zMUD General Discussion   Posted: Thu Aug 14, 2003 6:06 am   Subject: comparing data records
And I spoke too soon about the whole "it works" thing

#VAR remainder {@MixMax.@mixtype} isnt working properly, because mixmax expands first and sets remainder to be a data record with the same val ...
  Topic: comparing data records
inimical

Replies: 11
Views: 4968

PostForum: zMUD General Discussion   Posted: Thu Aug 14, 2003 4:42 am   Subject: comparing data records
You're right of course, I don't know what the cause of it is but maybe reinstalling will clear it up. Thanks for all the help Lightbulb, you're a zmud jedi in my bookWink
  Topic: comparing data records
inimical

Replies: 11
Views: 4968

PostForum: zMUD General Discussion   Posted: Thu Aug 14, 2003 1:31 am   Subject: comparing data records
[code]
#AL herb {
mixnum=%1
mixtype=%2
#IF %iskey( @MixMax, @mixtype) {#VAR remainder @MixMax.@mixtype}
#LOOPDB @SprigCount {
#VAR SprigCount.%key {0}
}
look in @herbbag
#VAR mixpower 0
# ...
  Topic: Array Bugs?
inimical

Replies: 1
Views: 1350

PostForum: zMUD General Discussion   Posted: Wed Aug 13, 2003 1:33 pm   Subject: Array Bugs?
Every now and then, for seemingly no reason at all, all of my array variables will bug out. Instead of containing the information in the array, they instead only show their value to be [code]<arra ...
  Topic: comparing data records
inimical

Replies: 11
Views: 4968

PostForum: zMUD General Discussion   Posted: Wed Aug 13, 2003 8:30 am   Subject: comparing data records
Thanks, thats much better, but there's a glitch. In the first conditional the %key of SprigCount is the name of the herb, not the number of herbs, which is the value. Calling %val there would return ...
  Topic: comparing data records
inimical

Replies: 11
Views: 4968

PostForum: zMUD General Discussion   Posted: Tue Aug 12, 2003 5:51 am   Subject: comparing data records
I was running the first loop in debug and noticed that its looping each individual record 17 times in both variables. 2 vars, 18 values in each, 17 loops on each one, thats 612 loops! I cannot expla ...
  Topic: comparing data records
inimical

Replies: 11
Views: 4968

PostForum: zMUD General Discussion   Posted: Tue Aug 12, 2003 3:41 am   Subject: comparing data records
I have a few questions regarding data record variables. First is concerning this bit of code
[code]
#trig {~((*)~) a sprig of (*)} {
#loopdb @SprigCheck {
#if (%key=%2) {
#var SprigCheck.%re ...
 
Page 1 of 1
All times are GMT
© 2009 Zugg Software. Hosted on Wolfpaw.net