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
Strakc
Apprentice


Joined: 31 Jan 2006
Posts: 106
Location: Virginia Beach, Virginia

PostPosted: 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?
Reply with quote
Strakc
Apprentice


Joined: 31 Jan 2006
Posts: 106
Location: Virginia Beach, Virginia

PostPosted: 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
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
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