|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sun Jan 10, 2010 12:51 am
[3.12] Multistate trigger type idea |
A "loop until blank line" trigger type which will just keep the trigger state active until a blank line is received and the trigger state moves forward. As an added bonus this would make multi-line chat captures a lot more easier and user friendly for some muds.
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Jan 10, 2010 2:06 am |
Have you checked out the Manual state? * happens to also match a blank line, so all you would need to do is a simple #IF.
#IF (%1 = "") {
//multiline thingamajigger's done
#state triggerid 0
} {
stuff to handle %1 until multiline's done
} |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sun Jan 10, 2010 3:19 am |
That is an option but not the way I want to handle it because I don't want to match everything. so right now my only choice is to create a temporary trigger that changes the state.
|
|
|
|
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Sun Jan 10, 2010 8:20 am |
Wouldn't ^$ and a manual state do it?
|
|
|
|
|
|