|
cachew Novice
Joined: 10 May 2001 Posts: 39 Location: USA
|
Posted: Fri May 03, 2002 11:13 pm
Text Capturing |
I am rather confused regarding the usage of the different string input commands (the help files didnt really help).
What I am looking to do is the following.
Fire the trigger on the first line (the wizard looks...)
Open a file.
Then capture all the lines starting with "the wizard telepaths you, ".
Then close the file.
the text I am using is as follows:
The wizard looks at a magic orb placed here by Vryce....
The wizard telepaths you, 'Let's see here... I see an entrance at...'.
The wizard telepaths you, 'A Sandy Beach'.
The wizard telepaths you, 'in the general vicinity of'.
The wizard telepaths you, 'Dispassionate Necromancers of Annihilation Clan Town'.
The wizard telepaths you, 'The entrance has just been uncovered.'.
Firing trigger and opening and closing the file no problem.
I can capture the first line but I cant seem to figure out how to capture multiple lines.
Christopher Chew |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Sat May 04, 2002 12:06 am |
How about something like:
#TRIGGER {^The wizard looks at a magic orb placed here by Vryce....} {#FILE 2 wizardlooks.txt}
#TRIGGER {^The wizard telepaths you} {#WRITE 2 {%trigger}}
All you need is something to decide that it is all captured so you can:
#CLOSE 2
If you really have nothing to achor the close upon, and you don't get that telepath message often (twice in 1 minute) you could use something like:
#TRIGGER {^The wizard looks at a magic orb placed here by Vryce....} {#FILE 2 wizardlooks.txt;#ALARM +60 {#CLOSE 2}}
TonDiening
Beta Upgrading to 6.26 |
|
|
|
|
|
|
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
|
|