|
fattony Apprentice
Joined: 27 Dec 2001 Posts: 105 Location: USA
|
Posted: Tue Jun 25, 2002 3:41 am
Status Window |
I have a set of variables to track which prot(ection) spells I have on me. I would like to display these in my Status Window, but the problem arises that there are 40+ possible spells which can be up or down at any time. This takes up 40+ lines of my status window. My window runs vertically, so this is doable, but messy, and I have other things I'd rather display there.
This is how I have it now:
Active Prots
%if( @prots_stoneskin = "ON", Stoneskin)
%if( @prots_barkskin = "ON", Barkskin)
%if( @prots_invuln = "ON", Invuln)
%if( @prots_ac = "ON", AC)
%if( @prots_iw = "ON", Iron Will)
But if, say, Barkskin, Iron Will and Stoneskin are ON, then it displays like this in the window:
Active Prots
Stoneskin
Barkskin
Iron Will
Is there any way to avoid spaces like these, so it would display like:
Active Prots
Stoneskin
Barkskin
Iron Will
I thought of a carriage return function but I couldn't pull it off. Any ideas?
Fat Tony |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Tue Jun 25, 2002 5:53 am |
By virtue of using %if you will get a value returned and a cariage return.
You could format it all into one line that wraps conviniently your
status window width (%format)
You could come up with a show scheme that uses @Variables and %cr.
You could show non active prots with the scheme you figure out if that
displays less things.
Ton Diening
Providing untested answers that tend to be
more complicated than others. |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue Jun 25, 2002 11:11 am |
Simple change will get rid of those blank lines.
Active Prots
%if( @prots_stoneskin = "ON", Stoneskin%cr)%if( @prots_barkskin = "ON", Barkskin%cr)%if( @prots_invuln = "ON", Invuln%cr)%if( @prots_ac = "ON", AC%cr)%if( @prots_iw = "ON", Iron Will%cr)
Just follow that pattern and you should be happy. |
|
|
|
fattony Apprentice
Joined: 27 Dec 2001 Posts: 105 Location: USA
|
Posted: Wed Jun 26, 2002 2:17 am |
Works perfectly, thank you very much. :)
Fat Tony |
|
|
|
|
|
|
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
|
|