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
ennye
Novice


Joined: 17 Dec 2007
Posts: 49

PostPosted: Sat Jul 16, 2011 12:16 am   

[3.xx] Map faster than parser ? Room triggers problem.
 
Example situation.

Two locations:

Room1 O-O Room2

Roomscripts:
Room1
trigger : moving
value: #mo e;#echo FIRED room1!
priority 5

Room2
trigger : moving
value: #mo w;#echo FIRED room2!
priority 6

Lets test it:
Set on room 1.
#echo moving
should move to room2 but not, it stays in place! in script debugger we see both triggers fired with 1 keyword "moving". From both rooms at once! Effect: point moves fast e;w (so fast it cant be seen, but debugger dont lie).
I found that depending on trigger priority its possible to move one way, but opposite way fires twice and set point freezes.
Normally one roomscript folder should be enabled at a time. Here we have two separate rooms fired.



"#echo moving" on room1
Code:

c   Mymud |  [34] Mymud Comline : start :
a   Mymud |moving
f   Mymud |    Pattern: moving
c   Mymud |    exec : Pattern "moving" : #mo e #echo FIRED room1
a   Mymud |FIRED room1
f   Mymud |    Pattern: moving
c   Mymud |    exec : Pattern "moving" : #mo w #echo FIRED room2
a   Mymud |FIRED room2
d   Mymud |  [34] Mymud Comline : stopped


"#echo moving" on manualy set room2
Code:

[34] Mymud Comline : start :
a  Mymud |moving
f   Mymud |    Pattern: moving
c   Mymud |    exec : Pattern "moving" : #mo w #echo FIRED room2
a   Mymud |FIRED room2
d   Mymud |  [34] Mymud Comline : stopped

Its ok, we moved to room 1 but another echo and we cant move to room2
"#echo moving"
Code:

c   Mymud |  [34] Mymud Comline : start :
a   Mymud |moving
f   Mymud |    Pattern: moving
c   Mymud |    exec : Pattern "moving" : #mo e #echo FIRED room1
a   Mymud |FIRED room1
f   Mymud |    Pattern: moving
c   Mymud |    exec : Pattern "moving" : #mo w #echo FIRED room2
a   Mymud |FIRED room2
d   Mymud |  [34] Mymud Comline : stopped


Is it possible to avoid this behaviour? I use it to follow the map when teaming with leader. When we enter for example one-room places with the same moving echo in-out, map following losts.
Reply with quote
meddlesome
Wanderer


Joined: 24 Aug 2012
Posts: 70

PostPosted: Fri Oct 12, 2012 7:13 am   
 
Don't mean to be like a mother here, but debug listing isn't much without the code that it's debugging.

Did you use a #OK anywhere?
_________________
Intel Core 2 Quad Q9450 @2.66GHz
MDAC 2.8 SP1 ON WINDOWS XP SP3
Msjet40.dll ver 4.0.9511.0 + Security Bulletin MS08-028
CMUD v237
Order number: **7829
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