Sylphas2005-12-11 08:09:21
I'm working on having my system autoupdate when you login, synchronizing your health/maxhealth/level/ego/race/title/time/etc between my system and Lusternia, before I get into a fight or something and realize one of my variables never updated. Currently, it pulls from STAT, SC, DATE, TIME, and IR.
Grabbing the value is easy to do. Gagging them is a bit harder. I'd like to do it without hardcoding the gags into each update call, because then I'd have to rewrite them all to not gag if stat or something is called manually, and I'd basically wind up with twice as much code as I really need.
I tried a simple omnigag for a bit, that I turned on, grabbed all the data, and turned back off, but that was a massive failure. Gagging things like that relies on trigger fire order, which is a bitch to keep up with when you add things, and can't be automated. Another factor is the gag timing. Gagging off of prompts and such is inaccurate, unless you call up STAT, wait, call up SC, wait, etc.
Is there any elegant way to do it, or should I just put in #IF {@updategag} {#GA} to every line of my data grabbing triggers?
Grabbing the value is easy to do. Gagging them is a bit harder. I'd like to do it without hardcoding the gags into each update call, because then I'd have to rewrite them all to not gag if stat or something is called manually, and I'd basically wind up with twice as much code as I really need.
I tried a simple omnigag for a bit, that I turned on, grabbed all the data, and turned back off, but that was a massive failure. Gagging things like that relies on trigger fire order, which is a bitch to keep up with when you add things, and can't be automated. Another factor is the gag timing. Gagging off of prompts and such is inaccurate, unless you call up STAT, wait, call up SC, wait, etc.
Is there any elegant way to do it, or should I just put in #IF {@updategag} {#GA} to every line of my data grabbing triggers?
Gregori2005-12-11 09:12:38
Do it as two folders, on holding the alias you want to update with, the other holding everything you want gagged, so when the alias calls, you turn on the folder, do everything, and turn off the folder with the last trigger.
#class updatespammystuff
#alias updatespammystuff {#t+spammystuffgag;stat;sc;date;time}
#class 0
#class updatespammystuffgag|spammystuffgag
#trigger {spammy trigger 1} {#gag}
...
...
...
#trigger {spammy trigger last} {#gag;#temp {%dh, %dm,} {#t- spammystuffgag}
#class 0
That's just off the top of my head, but you code enough to know what I mean with it all.
#class updatespammystuff
#alias updatespammystuff {#t+spammystuffgag;stat;sc;date;time}
#class 0
#class updatespammystuffgag|spammystuffgag
#trigger {spammy trigger 1} {#gag}
...
...
...
#trigger {spammy trigger last} {#gag;#temp {%dh, %dm,} {#t- spammystuffgag}
#class 0
That's just off the top of my head, but you code enough to know what I mean with it all.
Daganev2005-12-11 09:20:25
For wounds, Thorgal just did a mass gag... so the alias that you do for stat, would do ~stat;#gag 17
Sylphas2005-12-11 09:26:32
I can't really gag each line seperately, because then it won't be portable to other characters, and will need to be updated everytime a get a new stat/sc line.
A mass gag would probably work better, but has the same limitation.
A mass gag would probably work better, but has the same limitation.
Daganev2005-12-11 09:33:26
Create a variable for the number of lines that your score/stat is.. and just tell people to set it to a new number if lines of the score keep popping up.
like #gag @statlength
and #alias setstatlength {#var statlength %1}
like #gag @statlength
and #alias setstatlength {#var statlength %1}
Sylphas2005-12-11 10:27:37
Ooo, actually, Score and Stat always end in "You were born..." and "You will logout in...", so I can gag everything until that, gag that line, and then turn off the gag.