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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
mrkelley1
Newbie


Joined: 02 May 2008
Posts: 2

PostPosted: Fri May 02, 2008 7:21 pm   

#PSUB in Cmud problem
 
when using this exact trigger in zmud, it works flawlessly. yet in cmud, anytime text is received from the mud when i don't press enter (a fight round for example) it pushes the things i'm PSUB'ing in off to the right.

help, please? I've rewritten it 15 times to the same effect.

Code:
#TRIGGER {(%w): HP:~[(%d)/(%d)~] Mana:~[(%d)/(%d)~]MV:~[(*)~]~$:~[(%d)~]w/a:~[ (%d) ~]~[(%w)~]} {
  #VAR Prompt.hpc {%eval( %2-@Prompt.hp)}
  #VAR Prompt.hp %2
  #VAR Prompt.maxhp %3
  #VAR Prompt.mac {%eval( %4-@Prompt.ma)}
  #VAR Prompt.ma %4
  #VAR Prompt.maxma %5
  #PSUB {%3/%ansi( red)@Prompt.hpc%ansi( default)} %x3
  #PSUB {%5/%ansi( red)@Prompt.mac%ansi( default)} %x5
  #VAR Prompt.name %1
  #VAR Prompt.mv %6
  #VAR Prompt.money %7
  #VAR Prompt.agg %8
  #VAR Prompt.position %9
  } "" {nocr|prompt}


The problems are obviously in the PSUB lines. here they are again without the ansi codes for clarity:

Code:
#PSUB {%3/@Prompt.hpc} %x3
#PSUB {%5/@Prompt.mac} %x5
Reply with quote
mrkelley1
Newbie


Joined: 02 May 2008
Posts: 2

PostPosted: Sat May 03, 2008 4:51 pm   
 
43 hits and 0 replies? :(
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Sat May 03, 2008 5:04 pm   
 
It is probably a bug in CMUD. I believe the latest beta fixed a problem with PSUB, I'll check the version history now. No sorry that was with PCOL and local variables.

Anybody who uses PSUB care to comment?
_________________
Taz :)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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