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
Josiah.Bruns
Apprentice


Joined: 04 Mar 2007
Posts: 103

PostPosted: Fri Aug 21, 2009 9:26 pm   

2 quick questions
 
1. i have a bunch of triggers that cast various spells depending on the situation. if any spell fails i get the same message. "nothing happens."
what i want to do it resend the last command my last trigger sent to the mud. i tried %lastinput but that doesn't seem to do anything. maybe i have the usage of it wrong.

2. my other question is ... since i am playing 2 chars i have i guess what you call two windows and each window has its own variables and what not... can i access my figters Hp variable from my priests window?

thanks for any help.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4772
Location: Pensacola, FL, USA

PostPosted: Sat Aug 22, 2009 12:04 am   
 
use a variable to store the spell name

currentSpell="some spell name here"
#EVENT onCast {lastSpell=%if(@currentSpell, %pop(currentSpell))}
#TR {{@castingSpells}} {#RAISE onCast}
#TR {^Nothing happens.$} {cast @lastSpell}

and i forget the proper syntax for referancing variables across sessions and modules...
your best bet is to make a new shared package used by both sessions
_________________
Discord: Shalimarwildcat
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Aug 24, 2009 7:42 pm   
 
On question 2, it depends on exactly how you are handling the variables associated with each session. If the variables are kept in each session package, I believe the answer is no.
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