Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
haesus
Newbie


Joined: 07 Aug 2008
Posts: 5

PostPosted: Mon Nov 03, 2008 4:59 pm   

First letters of words
 
Hi
I ve got a problem with writing a trigger opening certain gate. I got no clue how to begin.
Procedure Example:

Read runes
>Big Yellow Funny Cat
[To open gate you have to say first letters of these words]
say: byfc
>You can feel ground shaking and after short while stone gate opens.

And then you can walk trough the gate.

Its like from LOTR movie where Gandlaf is walking into Morria.

I ll appreciate all ideas

Thanks
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Mon Nov 03, 2008 8:32 pm   
 
#oninput {read runes} {}
#cond {^>(*)} {string="";words=%replace(%1," ","|");#forall @words {string=%concat(@string,%left(%i,1))};say~: @string)}

Or something. The basic idea, anyway, is to use %left to return the first letters.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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