|
ShadowsPirate Beginner
Joined: 15 Jun 2007 Posts: 17
|
Posted: Sun Jul 29, 2007 10:25 pm
Trigger and wildcard help |
Allright, I'm trying to trigger a line of text to put into variables, then show me what it is. I can get everything working except for the last number, which works for numbers smaller then 10, but not 10 itself.
This is the actual prompt from the mud.
Quote: |
A wooden pipe (pipe19203) Elecampane 10 |
Quote: |
#trig {^A wooden pipe(*)~(pipe(%d)~)(*)(Elecampane)(*)(%d)} {#var elepipe %2;#var elepuff %6} |
and then I have an alias to show the stats quick, instead of looking at all of the pipes.
Quote: |
#say Elecampane ---> @elepipe -----> @elepuff |
But, when I try to use it, instead of it coming out as 10, this shows.
Quote: |
Elecampane ---> 19203 -----> 0 |
And im not the best with this kind of thing, so...if anyone could provide help, it would be greatly appreciated.
Edit:I've tried this with numbers other then ten, and it works. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Jul 30, 2007 12:21 am |
It looks like you're trying to account for format-controlled spacing. Instead of using (*) use %s for that. If you need to preserve spacing, you can always surround it with () without having it interfere with your other wildcards.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
ShadowsPirate Beginner
Joined: 15 Jun 2007 Posts: 17
|
Posted: Mon Jul 30, 2007 12:43 am |
Works like a charm, 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
|
|