 |
haesus Newbie
Joined: 07 Aug 2008 Posts: 5
|
Posted: 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 |
|
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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. |
|
|
|
 |
|
|
|
|
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
|
|