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


Joined: 05 Apr 2008
Posts: 19

PostPosted: Tue Jul 08, 2008 5:07 pm   

[2.29] #sub and prompt
 
Im trying to set up my in game prompt to display some numbers rather then text.

my current trigger is
Pattern: SP:Strong
#sub {SP: ???-146}


Yet for some reason it only shows up on half the SP:Strong sometimes it replaces the text, sometimes it doesn't. Anyone got an idea here? Im kinda stumped :(


* HP:Healthy SP:Strong MV:Full > tell kazalyn where are you
You tell Kazalyn 'where are you'

* HP:Healthy SP: ???-146 MV:test >
Kazalyn tells you 'black lizards'

* HP:Healthy SP:Strong MV:Full > reply send me another tell
You reply to Kazalyn 'send me another tell'

* HP:Healthy SP: ???-146 MV:Fresh >
Kazalyn tells you 'hi'

* HP:Healthy SP: ???-146 MV:Fresh >
A man has arrived from the west.

* HP:Healthy SP:Strong MV:Fresh >
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Tue Jul 08, 2008 7:05 pm   
 
You'll notice that the difference is that prompts you've typed something at aren't changed, but ones you haven't are. This is because your trigger isn't set as a prompt trigger - in the package editor, create a copy of the trigger and in the copy, uncheck Trigger on Newline and check Trigger on Prompt. Hopefully these two triggers will now cover both kinds of prompt. You could try and see if a single Trigger on Prompt trigger will do both, but it probably won't. You could also try using one trigger with both boxes checked, but I haven't tried that in a while and can't testify to how well it'll work.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
guganslof
Beginner


Joined: 05 Apr 2008
Posts: 19

PostPosted: Tue Jul 08, 2008 11:12 pm   
 
thanks, that did the trick :)

fyi, one trigger with both boxes checked worked just fine for me
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