ongaku2008-03-30 20:58:44
Ok, all the powerlog triggers I have are working except the one for the cultural power added. The line is this:
2008/03/18 03:03:38 - The cultural strength of the Mighty Dominion of Magnagora
has generated 1234 power
I don't know how to make a good trigger for this that would show the amount of power generated in my report, because it's two lines rather than one. Can anyone make one for me please? My normal triggers are like this:
#tr {%d/%d/%d %d:%d:%d - (%w) channeled (%n) power of wild energy} {#add citposlog.%1 %2;#add citlog.%1 %2}
This is Anisu's power ministry script for reference. I didn't make it on my own.
2008/03/18 03:03:38 - The cultural strength of the Mighty Dominion of Magnagora
has generated 1234 power
I don't know how to make a good trigger for this that would show the amount of power generated in my report, because it's two lines rather than one. Can anyone make one for me please? My normal triggers are like this:
#tr {%d/%d/%d %d:%d:%d - (%w) channeled (%n) power of wild energy} {#add citposlog.%1 %2;#add citlog.%1 %2}
This is Anisu's power ministry script for reference. I didn't make it on my own.
Acrune2008-03-30 21:06:14
I think if you put "{%d/%d/%d %d:%d:%d - The cultural strength of the Mighty Dominion of Magnagora" for the trigger line, and "has generated (%d) power" as a state, and have the responce to that state add the right power to the right variables, that should do the trick. Don't have zmud anymore, or I'd try to be a little more specific, or try it myself
ongaku2008-03-30 21:08:28
Okay, that would help if I knew how to do a state. But that gives me a good idea at least! Thanks
Acrune2008-03-30 23:12:58
There's like... a states tab or something when you're making the trigger, when you click it, it shows a chart with the initial trigger line on the first line, and a list of states after that. Also, on the main trigger-making screen thing, I think there is a drop-down box that lists the state, and if there are no states, then the choices would be 0 and... 'new' I think. Select new and put the "has generated (%d) power" line as the pattern, and whatever you want for what its supposed to do. Sorry I don't know the exact terms for this stuff, always been bad at terms. I code well, I explain poorly. Which makes things interesting at work
Vathael2008-03-31 03:17:39
I made a script that adds all the numbers together and has them all in categories and such total losses, total gains, etc. It could use a little work for the totals like if nothing occured in one of the categories say.. power stolen due to killing demons then it should be 0 but I didn't put that into the script but would be easy to do if you take the time to do it. I could send it to you if you want, just PM me.
EDIT: I also have one for people drawing/adding power through essence, spikes, bards, etc. It's not very pretty though (just something I threw together real quick) but could also give you that if you would like it as well.
EDIT: I also have one for people drawing/adding power through essence, spikes, bards, etc. It's not very pretty though (just something I threw together real quick) but could also give you that if you would like it as well.
Anisu2008-03-31 15:27:44
QUOTE(Ongaku Nil @ Mar 30 2008, 10:58 PM) 497915
Ok, all the powerlog triggers I have are working except the one for the cultural power added. The line is this:
2008/03/18 03:03:38 - The cultural strength of the Mighty Dominion of Magnagora
has generated 1234 power
I don't know how to make a good trigger for this that would show the amount of power generated in my report, because it's two lines rather than one. Can anyone make one for me please? My normal triggers are like this:
#tr {%d/%d/%d %d:%d:%d - (%w) channeled (%n) power of wild energy} {#add citposlog.%1 %2;#add citlog.%1 %2}
This is Anisu's power ministry script for reference. I didn't make it on my own.
2008/03/18 03:03:38 - The cultural strength of the Mighty Dominion of Magnagora
has generated 1234 power
I don't know how to make a good trigger for this that would show the amount of power generated in my report, because it's two lines rather than one. Can anyone make one for me please? My normal triggers are like this:
#tr {%d/%d/%d %d:%d:%d - (%w) channeled (%n) power of wild energy} {#add citposlog.%1 %2;#add citlog.%1 %2}
This is Anisu's power ministry script for reference. I didn't make it on my own.
just set your wrapwidth to 0 before doing a log :shrug:
I actually made a new one for cmud but it is not completely done yet
Unknown2008-03-31 20:56:00
QUOTE(Anisu @ Mar 31 2008, 08:27 AM) 498103
just set your wrapwidth to 0 before doing a log :shrug:
Right, as a general rule when making a system you should turn off wrapping on the server and turn it on in your client (if your client can not support this, you should use a different client). This makes it so you can process lines of text as they were sent out from the server, and leave the display clean up until after you have finished processing them.
A multi-state trigger could work, but it is ugly and it is not going to be portable (i.e. the script would break on another orgs log where the exact line break happened in a different place, or on a different setup with a different wrap set).
Acrune2008-03-31 22:06:40
Well who cares about other orgs?
I didn't mention wrapwidth because that might throw off some of his more important triggers.
I didn't mention wrapwidth because that might throw off some of his more important triggers.
ongaku2008-04-01 17:22:48
QUOTE(Enthralled @ Mar 31 2008, 03:56 PM) 498210
A multi-state trigger could work, but it is ugly and it is not going to be portable (i.e. the script would break on another orgs log where the exact line break happened in a different place, or on a different setup with a different wrap set).
The example you pointed out was what happened. The trigger was there, it just had "has" as the last word in the first line, whereas in the Magnagora logs, "has" is the first word on the second line. It was an easy fix though. No worries.
And thank you guys for the assistance, especially to Acrune who taught me about states.