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
mgialit
Newbie


Joined: 04 Oct 2012
Posts: 5

PostPosted: Thu Oct 04, 2012 8:28 am   

buffs displayed
 
hello guys,
i just can make simple things on cmud and i need some help

lets say that i get a message when a strength spell casted on me "you feel stronger"
and a message when spell ends "you feel stronger no more"

i want always somehow track a list of specific spells if they are active on me or not(status window?)
for example if strength, Blur and barkskin spells are active on me or not.

strength ON
blur ON
barkskin OFF

if you need any more information tell me plz
Reply with quote
shalimar
GURU


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

PostPosted: Thu Oct 04, 2012 3:37 pm   
 
Gemstone.. good call on game.

You could always use a variable

#ADDITEM CurSpells Strength
#DELITEM CurSpells Blurs

and then you coulf have you @curSpells variable displayed in a #STWIN object
_________________
Discord: Shalimarwildcat
Reply with quote
meddlesome
Wanderer


Joined: 24 Aug 2012
Posts: 70

PostPosted: Thu Oct 04, 2012 8:51 pm   
 
Is there a way to get a list from the Mud what you have cast as active spells?
_________________
Intel Core 2 Quad Q9450 @2.66GHz
MDAC 2.8 SP1 ON WINDOWS XP SP3
Msjet40.dll ver 4.0.9511.0 + Security Bulletin MS08-028
CMUD v237
Order number: **7829
Reply with quote
mgialit
Newbie


Joined: 04 Oct 2012
Posts: 5

PostPosted: Thu Oct 04, 2012 11:27 pm   
 
ok i used triggers to additems and remove from a string list named curspells

then used #stwin @curspells

but status didn't renewed it self when a spell wore :(

i want to have a status window with a list off spells

Strength OFF
Blur OFF
Barkskin OFF

then i want to have a trigger on pattern "you feel stronger" will set on my list Strength ON

Strength ON
Blur OFF
Barkskin OFF

after some game time strength will wore, on pattern "you feel stronger no more" will set Strength OFF again
those are msgs for casting Blur
You watch your body become blurry and unfocused. - spell ends on You suddenly notice that your body is in focus once again.

can any1 help me script this?
Reply with quote
shalimar
GURU


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

PostPosted: Fri Oct 05, 2012 1:15 am   
 
Thats right, i forgot about that issue using lists... enter the following at the command line:

#EVENT onSpellChange {#STWIN { %expandlist(@curSpell, " %cr ") } {SpellUp} {spellStaus} }

You can always edit the it with a better %format later
This is so the #STWIN gets overwritten each time instead of making multiple copies

alright, whenever a spelled gets toggled off via the #ADDI #DELI commands add the next command to the trigger as well

#RAISE onSpellChange
_________________
Discord: Shalimarwildcat
Reply with quote
meddlesome
Wanderer


Joined: 24 Aug 2012
Posts: 70

PostPosted: Wed Oct 10, 2012 6:04 pm   
 
I just used a #CLR before I published to my status window. Of course this means that any time you send to the status window, you would have to send everything.
_________________
Intel Core 2 Quad Q9450 @2.66GHz
MDAC 2.8 SP1 ON WINDOWS XP SP3
Msjet40.dll ver 4.0.9511.0 + Security Bulletin MS08-028
CMUD v237
Order number: **7829
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