|
Strakc Apprentice
Joined: 31 Jan 2006 Posts: 106 Location: Virginia Beach, Virginia
|
Posted: Mon Feb 13, 2006 11:02 am
Trigger assistance |
Code: |
#if (@RoomNaming) {
#if (%line =~ "It is now the" or %line =~ "Empire" or %line =~ "You possess" or %line =~ "You have %d credit") {#nomap} {
#var RoomName {%concat( %stripansi( "%1"), ".")}
#tag Name {@RoomName}
#if (%line =~ " ~(road~)") {#var MapRoad 1}
#var RoomExits ""
#var RoomNaming 0
#temp {%dh, %dm} {
#var RoomNaming 1
#tag Prompt
} "" {nocr|prompt}
}
} |
having trouble with this, well mostly, it works fine till the #temp it will create a temporary with the #var and #tag but it doesn't trigger, at all. so when i manually change the var to 1 from 0 it creates a second temp with the same settings and all, any ideas on how i might get it to catch? |
|
|
|
Strakc Apprentice
Joined: 31 Jan 2006 Posts: 106 Location: Virginia Beach, Virginia
|
Posted: Mon Feb 13, 2006 9:11 pm |
well I was toying around arond removed the "" (nocr|prompt) and it catchs now. Not really even sure what that bit does, or what a prompt is and how it differs from a newline
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Feb 13, 2006 9:30 pm |
"" = class name that the trigger is contained in (also for creation purposes)
nocr = the trigger on newline option is unchecked, trigger will not fire until a newline (ie, the return key) is found
prompt = the trigger on prompt option is checked, trigger will fire immediately |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|