 |
Josiah.Bruns Apprentice
Joined: 04 Mar 2007 Posts: 103
|
Posted: 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. |
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4772 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
 |
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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.
|
|
|
 |
|
|