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
NiteTrip
Novice


Joined: 21 May 2002
Posts: 40
Location: Canada

PostPosted: Tue May 21, 2002 8:28 pm   

Triggers
 
I am somewhat advanced in zmud triggers, however I have not used zmud since 4.62 and this problem somewhat boggles me.

I am writing a script to input eq items into a db. I got all the input except the output is like this:

Modifies the following statistics:
DEX By 3
ARMOR By -5

Then its my prompt when this is all over.

I want to trigger it on "Modifies the following statistics:"

and grab all the text till my prompt, then store that into a database field I call Additional Modifiers.

Any ideas on how to do this?

I do not want to have to trigger it by

DEX By * I just want to grab it all, then put it into my text field in this format:

dex by 3, armor by -5, any other modifyers

Can anyone help ?
Reply with quote
Gandorf
Novice


Joined: 28 Oct 2000
Posts: 38
Location: Sweden

PostPosted: Tue May 21, 2002 8:35 pm   
 
This might help a bit even if it doesn't work

#tr {^Modifies the following statistics:$} {#var AddModifiers %null;#tr {(%*)} {#ADDITEM AddModifiers {%1}};#TEMP {You prompt here} {#UNTRIGGER {(%*)}}}

I have never done anything like this so I don't know if it works or not. Also it might be better ways of doing this

Gandorf
-------------------------
Out in the night they laugh about me and my knowledge
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