|
Rolly Wanderer
Joined: 16 Oct 2006 Posts: 62
|
Posted: Wed Dec 27, 2006 12:28 pm
% disappears |
I have no doubt my problem has a simple solution but I have looked everywhere and can't find it. I trigger something like: Goat says, "Text text (%d) text (%d) text text."
and want to do math like
#var FirstNumber %1
#var SecondNumber %2
Total = @FirstNumber + @SecondNumber
say @Total
My problem is thet the % disappears from the variables. when I try to enter them in the script. This happens whenever I try to use the % characrer. I have the % enabled in preferances special characters. I have another player character with the same preferances which I have no problems at all accepting the % character. I can import script with this problem character but as soon as I go into it to make a change the % disappers. Please help |
|
|
|
Rolly Wanderer
Joined: 16 Oct 2006 Posts: 62
|
Posted: Wed Dec 27, 2006 5:02 pm |
This is wierd here is another example I can use %btncol( Kola, red, white) but if I try to use #noop %btncol( Kola, red, white) the % disappears.
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Wed Dec 27, 2006 8:40 pm |
How do you mean, the % character disappears? That the % character in the script body simply vanishes as you type?
Incidentally, this might be slightly faster than that variable maths:
say %eval(%1+%2) |
|
|
|
Rolly Wanderer
Joined: 16 Oct 2006 Posts: 62
|
Posted: Wed Dec 27, 2006 9:56 pm |
Yes I can type it in and one second later it disappears and my curser is after the number as in I type: #var %1 and it becomes: #var ^1 with the curser before the 1 (where the carrot is shown) so it lets me type %1 and then backs up to before the 1 and eraces the %. I can put %anything on a line by itself and it stays but if I have any expression before the % or even a word it won't take the %. Is this possibly some form of autocorrect gone awry? Also if I go to an imported trigger using % as soon as I make a change to anything the % disappears unless it beginds a line.
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Wed Dec 27, 2006 10:48 pm |
I've never heard of that. Try turning off pretty printing and see if that helps, it sounds like it's a problem with that.
|
|
|
|
|
|