About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
jetyapz
Newbie


Joined: 05 Mar 2008
Posts: 1

PostPosted: Wed Mar 05, 2008 8:10 am   

Broken Variable??? Previous action/command
 
Hi All,

I'm trying to create the following script with no success.

1. Text sent to mud
cast 'hand of god' abc

2. Mud returns spell failure message
Your spell fizzles.....

I would like to automatically recast the spell. How can I do this? I tried using the %lastcom and %lastinput but it kept giving me rubbish. The output I get from %lastcom is "m" sent to the mud and for %lastinput "t" is sent to the mud.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Wed Mar 05, 2008 10:18 am   
 
#alias cast {#var Casting %-1;#send {cast %-1}}
#trig {Your spell fizzles} {cast @Casting}
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
wrym
Magician


Joined: 06 Jul 2007
Posts: 349
Location: The big palace, My own lil world

PostPosted: Wed Mar 05, 2008 10:31 am   
 
Try this:

#trigger {Your spell fizzles} {!cast}

Help file for #history explains the ! character and other ways to use it
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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