Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Thu May 13, 2010 2:52 pm   

[3.17 Pro] Speedwalking issue
 
I have it set to slow speedwalking with a 350ms pause between steps, but since installing the 3.17 version it is if it ignores the specified pause between steps because it now walks without any pause between steps.

My system hasn't changed in a while, so either the mud is sending something different low level or version 3.17 is somehow different.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4672
Location: Pensacola, FL, USA

PostPosted: Thu May 13, 2010 7:51 pm   
 
On the topic of custom pauses... is there a way to make it wait until you receive specific text from the game (other than the room description), or until a variable reaches a certain amount before continuing?
_________________
Discord: Shalimarwildcat
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu May 13, 2010 7:55 pm   
 
1)triggers

2)expression triggers
_________________
EDIT: I didn't like my old signature
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Fri May 14, 2010 2:37 pm   
 
ATCP Code:
Code:

<class name="ATCP" id="3335">
  <class name="RoomNameEvent" id="3336">
    <var name="RoomName" usedef="true" id="3337">A road through the hills</var>
    <trigger name="RoomBriefTrigger" type="Telnet" param="200" priority="2" case="true" stop="true" regex="true" id="3338">
      <pattern>^Room\.Brief\s+(?:Flying above |In the trees above )?(.+?)(?: \(road\))?$</pattern>
      <value>// Comment this out Normally
#var atcp %additem( %concat( "ATCP-Room.Brief: ", %1), @atcp)
#if (@Moving) {
  #var RoomName %1
  #tag name %1
  }</value>
    </trigger>
    <trigger priority="10" case="true" ansi="true" stop="true" regex="true" enabled="false" id="3339">
      <pattern>^(?:(?:\e\[37m)?(?:Flying above|In the trees above))?\e\[1;33m</pattern>
      <value>// Comment this out Normally
#var atcp %additem( "Non-ATCP RoomName", @atcp)</value>
    </trigger>
  </class>
  <class name="RoomExitsEvent" id="3343">
    <var name="RoomExits" usedef="true" id="3344">e|w</var>
    <trigger name="RoomExitsTrigger" type="Telnet" param="200" priority="3" case="true" stop="true" regex="true" id="3345">
      <pattern>^Room\.Exits\s*(.*)$</pattern>
      <value>// Comment this out Normally
#var atcp %additem( %concat( "ATCP-Room.Exits: ", %1), @atcp)
#if (@Moving) {
  #var RoomExits %subchar( %1, ",", "|")
  #tag exit @RoomExits
  #T+ Prompt_ATCP_Process event
  }</value>
    </trigger>
    <event event="Prompt" priority="60650" name="Prompt_ATCP_Process" enabled="false" id="6065">
      <value>// ATCP
#var atcp %additem( "ATCP-Prompt.  OK Sent", @atcp)
$moving = %if( @flag( moving) or %walkactive, 1, 0)
#if ($moving and !@flag( find)) {
  //
  #if (@flag( movement) == "gallop") {#tele @roomEnd( @flag( moving) )} {#ok}
  } {
  //
  #if (%maplocked and not @blind( )) {find_current}
  }
#RAISEEVENT RoomName $moving
#var Moving 0
#T- Prompt_ATCP_Process event</value>
    </event>
  </class>
  <class name="RoomNumEvent" id="6060">
    <trigger name="RoomNumTrigger" type="Telnet" param="200" priority="1" case="true" stop="true" regex="true" id="6061">
      <pattern>^Room\.Num\s*(\d*)$</pattern>
      <value>// Comment this out Normally
#var atcp %additem( %concat( "ATCP-Room.Num: ", %1), @atcp)
#if (@RoomNum <> %1) {
  #var Moving 1
  #var RoomNum %1
  }</value>
    </trigger>
    <var name="RoomNum" id="6062">9156</var>
    <var name="Moving" usedef="true" id="6064">
      <value>0</value>
      <default>0</default>
    </var>
  </class>
</class>


MXP Prompt Code:
Code:

  <var name="blackout" id="3365">0</var>
  <trigger name="mxp_prompt" type="MXP" priority="10" stop="true" id="6068">
    <pattern>Prompt</pattern>
    <value>// Comment this out Normally
#var atcp %additem( "ATCP-Prompt", @atcp)

#tag prompt
#if (%0 != "-") {
  #call %regex( %mxp.data, "^\d+h, \d+m, \d+e, \d+w ([cexkdb]*)\-", pflags)
  #if (@blackout) {
    #RAISEEVENT BlackoutCured
    #var blackout 0
    }
  #RAISEEVENT Prompt
  #if (%regex( @pflags, "ex")) {#RAISEEVENT PromptBalanced}
  } {
  #if (!@blackout) {
    #RAISEEVENT Blackout
    #var blackout 1
    }
  #RAISEEVENT Prompt
  #if (@baleq( )) {#RAISEEVENT PromptBalanced}
  }</value>
  </trigger>


What I see from my ATCP and MXP Recording variables based on the above code:
ATCP-Room.Brief: A road through the hills
ATCP-Room.Num: 9156
ATCP-Room.Exits: e,w
ATCP-Room.Brief: A road through the hills
ATCP-Prompt
ATCP-Prompt. OK Sent

This should be working for all I can see.
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Fri May 14, 2010 2:43 pm   
 
Apparently this was not working on 3.16 as I had thought. I just checked the earlier version and it operates without a delay as well.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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