Vesar2005-01-20 18:59:02
Does anyone know how to display current afflictions in the status window or another type of display?
Unknown2005-01-20 20:51:38
It depends entirely on how your script tracks your afflictions. If you use a string list, you can easily use %replace to change all list separator characters into spaces or commas. If you use a database record variable, you can make a funky combination of %subregex and %expanddb to display it. If you use separate variables for everything, good luck finding an easy way, especially if you want to fit it into a smallish-sized space.
Vesar2005-01-20 20:55:38
sorry, should have included that. It's a data record.
Unknown2005-01-21 08:10:43
Heh, I tried to do that for ACP XL, but the fact that some afflictions in @Afflictions were equal to 0 sort of screwed it. But anyway, you can go like this if all afflictions are equal to 1 if they're in the data record variable:
But if you make it so some afflictions in the variable are equal to 0, that wont work.
You could do something which does %exec( "#FORALL...") or %exec( "LOOP.."), but that probably would make your status window flicker .
What would be really nice if you could refer to index values using %i in %repeat( ), then it would be possible to do a lot more things.
CODE
Afflictions: %if( %numkeys( @Afflictions), %replace( %expanddb( @Afflictions, ", "), "=1", ""), "none").
But if you make it so some afflictions in the variable are equal to 0, that wont work.
You could do something which does %exec( "#FORALL...") or %exec( "LOOP.."), but that probably would make your status window flicker .
What would be really nice if you could refer to index values using %i in %repeat( ), then it would be possible to do a lot more things.
Nevyn2005-02-10 13:41:10
Rather than a status window, I have an alias for setting and clearing each affliction. the aliases invoke a common alias and pass the affliction name into it.
The central alias, updates the correct affliction variable, sets the colour of a button with the affliction name on it, and adds the affliction to my queue system. (It of course first checks if the affliction is already on the queue, so it if is, the alias just skips all the things I just mentioned)
In this way I see all my afflictions in a side panel instead of a status window, and I can click the button to cure the affliction.
I use a similar system to show all my balances, and supply levels.
The central alias, updates the correct affliction variable, sets the colour of a button with the affliction name on it, and adds the affliction to my queue system. (It of course first checks if the affliction is already on the queue, so it if is, the alias just skips all the things I just mentioned)
In this way I see all my afflictions in a side panel instead of a status window, and I can click the button to cure the affliction.
I use a similar system to show all my balances, and supply levels.
Unknown2005-02-10 13:57:29
QUOTE(Zaltan @ Jan 21 2005, 03:10 AM)
Heh, I tried to do that for ACP XL, but the fact that some afflictions in @Afflictions were equal to 0 sort of screwed it.
I know that a much older version of the ACP would set the variables to zero when they were cured, but it was changed a while ago to actually delete the key when the affliction was removed from the queue. Defenses, however, are set to 0, so that you know which ones you had up and just lost somewhere along the way.
There was a post on the ACP clan and I think it was also on the SourceForge site that showed how to expand the data record variable into a human-readable list of afflictions. It's incredibly slow, though, so I wouldn't recommend putting it in your status window unless you've got a dual Xeon 3.4GHz (or something close to it). Heh.
Unknown2005-02-10 18:30:21
Ohhh, I only have 600MHz.
Ixion2005-02-10 21:32:56
Forget fancy systems and spending so much time working on a system and coding etc. etc; Be a manual healer like me!! Whee!!!
Daganev2005-02-10 21:38:50
go to www.noctusari.org download Harker's script for curing afflictions.
It puts everything in a status window, you can look through it and learn how.
It puts everything in a status window, you can look through it and learn how.
Unknown2005-02-11 03:24:19
EDIT: mispost.