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


Joined: 22 May 2012
Posts: 3

PostPosted: Fri Jan 15, 2016 6:09 pm   

Some emote trigger help
 
Hi all,

So, I have been tinkering with throwing out some emotes to kinda deepen my roleplay on a specific character. He happens to be a water mage, and as such can summon a water shield sort of force field thing.. What I want is while the spell is active I want to have an emote trigger once in a while that the shield is flaring to deflect some of the damage.. how is this done..

As well as I want to set up a trigger for a different type of "say"... so instead of it saying Adalmus says, "Blah." it could say Adalmus says softly, "Blah." and this would apply to all future say commands.. is this a possible feature on the client end?
Reply with quote
shalimar
GURU


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

PostPosted: Fri Jan 15, 2016 6:54 pm   
 
That could quite easily be done actually, its all about using variable placeholders.
and overriding the standard commands

inflection=softly
#ALIAS say {emote says @inflection, ~"%params~"}

as for the deflection thing

#TR "deflecting" {some message when a deflection would occur} {emote some deflecty bit;#T- deflecting;#ALARM "keepDeflecting -60 {#T+ deflecting}}

That will only fire once a minute.
_________________
Discord: Shalimarwildcat

Last edited by shalimar on Fri Jan 15, 2016 6:58 pm; edited 1 time in total
Reply with quote
shalimar
GURU


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

PostPosted: Fri Jan 15, 2016 6:56 pm   
 
You might also wanna through in an error checker to ensure it never gets stuck in the off position.

#EVENT onConnect {#T+ deflecting}
_________________
Discord: Shalimarwildcat
Reply with quote
Adalmus
Newbie


Joined: 22 May 2012
Posts: 3

PostPosted: Fri Jan 15, 2016 7:41 pm   
 
The say alias is just making me literally say %params~
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