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
prestojosh
Beginner


Joined: 21 Feb 2006
Posts: 19

PostPosted: Tue Nov 20, 2007 1:19 am   

Storing Variables From an Alias and #ALARM problem.
 
I need to know if there is anyway to store variables from executing a variable?

Example:
cast fly person

I would want fly to be stored as lastspell and person as lasttarget.

Also, I am having a problem with #ALARM, I'm running ver 7.20 and it won't execute this alarm:

#ALARM -05:00 {#CON}


Kthx
_________________
-Presto
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Tue Nov 20, 2007 1:38 am   
 
Update to 7.21. #CON is working fine for me from within an alarm - try removing the 0 from the start. You're aware that that'll force you to reconnect every 5 minutes, right?

And for your other question:

#aliast cast {lastspell=%1;lasttarget=%2;~cast %-1}
or
#oninput {^cast (%w) (%w)} {lastspell=%1;lasttarget=%2}
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Tue Nov 20, 2007 1:40 am   
 
Edit: whoops, Fang got there first

I guess for the first bit you mean storing variables from executing an alias (not variable)
#ALIAS cast {lastSpell = %1; lastTarget = %-2; ~cast @lastSpell @lastTarget}
should work
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
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