|
mrkelley1 Newbie
Joined: 02 May 2008 Posts: 2
|
Posted: 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 |
|
|
|
|
mrkelley1 Newbie
Joined: 02 May 2008 Posts: 2
|
Posted: Sat May 03, 2008 4:51 pm |
43 hits and 0 replies? :(
|
|
|
|
Taz GURU
Joined: 28 Sep 2000 Posts: 1395 Location: United Kingdom
|
Posted: 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 :) |
|
|
|
|
|