|
ccogdill Beginner
Joined: 16 Jul 2002 Posts: 27
|
Posted: Tue May 06, 2003 8:37 am
Skip first blank line but trigger on next |
I want to put mobiles in a database, with a few of their stats. I created a alias for the consider command which gives the following:
You see fido dog (level 0)
Race: fido Sex: female Class: mobile Size: small
Str: 10(10) AC Pierce : 100 Hit Points: 6/6
Int: 11(11) AC Bash : 100 Mana : 100/100
Wis: 11(11) AC Slash : 100 Move : 100/100
Dex: 11(11) AC Magic : 100 Hit Roll : 0
Con: 11(11) Dam Roll : 0
Chr: 11(11) Saves : 0 Alignment : -200
Damage : 1d4 Message : bite
Count : 16 Killed : 11
Act: npc aggressive stay_area wimpy noalign
Offense: dodge assist_race
Vulnerable: magic
Form: edible poison animal mammal
Parts: head legs heart brains guts feet ear eye tail fangs
Master: (none) Leader: (none) Pet: (none)
Mobile has special procedure spec_fido.
You can kill the beastly fido naked and weaponless.
the beastly fido is in excellent condition.
The problem that I have having is there is a blank line in the center of all the text that is sent from the mud. How can I get my alias/triggers to skip the first blank line but do all it's work on the second blank line.
I have a trigger on a blank line that puts all the data that I want into the database.
#TRIGGER {$} {#T- PopulateMobiles;#SHOWDB @Mobile} "consider|PopulateMobiles"
(I took out most of the script, this is just to give you an idea of what the trigger that populates the database currently looks like) |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Tue May 06, 2003 2:05 pm |
#VAR blanklines 0
#TRIGGER {$} {#IF (@blanklines = 1) {#VAR blanklines 0;#T- PopulateMobiles;#SHOWDB @Mobile} {#ADD blanklines 1}} "consider|PopulateMobiles"
Kjata |
|
|
|
|
|