|
paegn Newbie
Joined: 11 Jul 2003 Posts: 6
|
Posted: Fri Jul 11, 2003 11:15 pm
Help with a script |
Ok, i'm working on a script for a btech MUX that will show the damage I inflicted, but i'm having a problem expanding variables that are made during the combat in the showing of damage.. Probably a really easy fix, but I can't seem to find the problem.
Here it is.
think ~[space(8)~]FRONT~[space(19)~]REAR~[space(18)~]INTERNAL~%r%t(%ch%cg$dih%cn)%t%t%t(**)%t%t%t(%b%ch%cg3%cn)%r%b%b%b%b%b/%ch%cg10%cn|%ch%cg14%cn|%ch%cg10%cn%%t%t~[space(5)~]/%b%ch%cg3%cn|%b%ch%cg4%cn|%b%ch%cg3%cn%%t%t~[space(5)~]/%b%ch%cg8%cn|%ch%cg11%cn|%b%ch%cg8%cn%%r%b%b%b%b(%ch%cg10%cn/%b||%b%%ch%cg10%cn)%t~[space(4)~](%b%b%b|%b%b|%b%b%b)%t~[space(4)~](%b%ch%cg6%cn/%b||%b%%b%ch%cg6%cn)%r%b%b%b%b%b%b/%b%b/%%b%b%%t%t%t/%b%b%%t%t%b%b%b%b%b%b/%b%b/%%b%b%%r~[space(5)~](%ch%cg13%cn/%b%b%b%%ch%cg13%cn)%t~[space(7)~]/%b%b%b%b%%t%t~[space(5)~](%b%ch%cg8%cn/%b%b%%b%ch%cg8%cn)
Ok, that's a lot of stuff there, but for those of you unfamiliar with MUX, anything following the % signs is formatting, either color, spaces, tabs, etc. I Bolded the variable i'm trying to get expanded. Once I get that one expanded, there will be many more in this scrip. Note also, my variable character is $ instead of the standard @ |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Sat Jul 12, 2003 6:26 am |
How about a %concat?
think %concat("~[space(8)~]FRONT~[space(19)~]REAR~[space(18)~]INTERNAL~%r%t(%ch%cg",$dih,"%cn)%t%t%t(**)%t%t%t(%b%ch%cg3%cn)%r%b%b%b%b%b/%ch%cg10%cn|%ch%cg14%cn|%ch%cg10%cn%%t%t~[space(5)~]/%b%ch%cg3%cn|%b%ch%cg4%cn|%b%ch%cg3%cn%%t%t~[space(5)~]/%b%ch%cg8%cn|%ch%cg11%cn|%b%ch%cg8%cn%%r%b%b%b%b(%ch%cg10%cn/%b||%b%%ch%cg10%cn)%t~[space(4)~](%b%b%b|%b%b|%b%b%b)%t~[space(4)~](%b%ch%cg6%cn/%b||%b%%b%ch%cg6%cn)%r%b%b%b%b%b%b/%b%b/%%b%b%%t%t%t/%b%b%%t%t%b%b%b%b%b%b/%b%b/%%b%b%%r~[space(5)~](%ch%cg13%cn/%b%b%b%%ch%cg13%cn)%t~[space(7)~]/%b%b%b%b%%t%t~[space(5)~](%b%ch%cg8%cn/%b%b%%b%ch%cg8%cn)")
Something like that - untested. |
|
|
|
paegn Newbie
Joined: 11 Jul 2003 Posts: 6
|
Posted: Mon Jul 14, 2003 3:19 am |
Thanks, that looks like it'll work
|
|
|
|
|
|
|
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
|
|