Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Shujinko07
Beginner


Joined: 31 Mar 2008
Posts: 10

PostPosted: Sat Jul 14, 2012 6:49 pm   

Variable catc
 
This may be a simple fix.. but I was wondering how can I get my variable to automatically catch the number of an entity if assigned as:


The following creatures are in your entourage:
Shujinko#52153.
The following players are in your entourage:

#Var Shujinko {0}

I need it to catch the number 52153 whenever I simply just type the command "ent"
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Sat Jul 14, 2012 7:54 pm   
 
Try this:
Code:
#trigger {^Shujinko#(%d).$} {#var Shujinko {%1}}
Reply with quote
Shujinko07
Beginner


Joined: 31 Mar 2008
Posts: 10

PostPosted: Sat Jul 14, 2012 8:35 pm   
 
Thanks, works perfectly! Smile
Now, my other question is like this:

With tarot cards, there's like two ways you can fling on top of whether or not if I have Shujinko#12345 out or not.
normally it can be done like, outd healer,charge healer, fling healer at target, or @aim in my case.
OR
outd blank as healer;fling healer @aim.
How can I get the alias to check two things: Whether or not the Shujinko#12345 is out or not, and whether or not to outd blank said card IF I don't have any card of that type in the deck already, so that, I can send just give -card type- to Shujinko#12345, providing I have the card using the outd as blank method, or outd -card-.

This is the message if there's not a card in the deck:
None of your decks contain a card with the image of the Sun.

Sorry, just thought I'd get this other much more complexed one out the way.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net