|
struesdell Beginner
Joined: 30 Nov 2006 Posts: 11 Location: Seattle, WA, USA
|
Posted: Sat Dec 23, 2006 6:14 pm
[1.24] #sub to MXP problem again. |
Back in 1.17, I asked on the forum for help regarding a problem with MXP, and found some excellent advice that seemed to fix all my problems.
http://forums.zuggsoft.com/phpbb/viewtopic.php?t=25631
It's not working again. Now, for some reason, the substitute is completely ignoring any formatting I put into it, and it's giving me garbage.
I'm using the script exactly as seen in the above thread,
#TRIGGER {($obj:%w)($objnum:%d)} {$obj=%proper($obj);#SUBSTITUTE {<send ~"#var target $objnum|p $objnum|buy $objnum|wp $objnum|wield $objnum|unwield $objnum|get $objnum~" ~"Target $obj|Probe $obj|Buy $obj|Weaponprobe $obj|Wield $obj|Unwield $obj|Get $obj~">$obj$objnum</send>}}
And my rightclick menu is showing up with just "trigger" in it, which is running the "#var" command.
Also, I'm seeing noticable slowdown when the trigger activates. I'm usually looking at lists of (%w)(%d)s up to like 80 lines long, but it doesn't seem like it should cause that much processing.
I'm not sure where it's messing up. It LOOKS right, and it worked back in 1.7 and 1.8, for sure. I had a corrupted settings problem later, and I'm just now rebuilding my system.
Any thoughts? |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Dec 23, 2006 6:40 pm |
you most likely have a conflict with quotes going on, but from this side of things it looks like the errant quotes are in the variables.
Maybe try using %literal() or %quote() on all your variables, but I don't think that will work as ~" or ~' don't work for me. |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4715 Location: Pensacola, FL, USA
|
Posted: Sat Dec 23, 2006 6:41 pm |
you can use single quotes (') instead of quouting out your quotes (~")
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
struesdell Beginner
Joined: 30 Nov 2006 Posts: 11 Location: Seattle, WA, USA
|
Posted: Sat Dec 23, 2006 6:45 pm |
Using single quotes fixed it. Thanks!
|
|
|
|
|
|
|
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
|
|