I don't know whether this has been brought here before or not but. I have no clue on scripting but I am wanting to write a script that when I level it will report my level up stats and another script that every hour reoprts kills/exp/gold. I know one is based off of a trigger where as the other is based on a timer. If I could get help with this that would be appreciated.
Aardwolf - Xzanderius
There would be various examples of this around. If you want more detailed help you would need to show the actual messages you get from the MUD, and perhaps someone can give you some more guidance.
You raise a level!!
You gain 28 hit points, 21 mana, 19 moves, 7 practices and 4 trains.
The hitpoints, mana, moves, pracs, trains are all variables they never remain constant depending on current stats. The channel it would be outputted to is 'ftalk'
For the level up report, simply make a trigger off of the level up line. E.g.,
^You gain ([0-9]+) hit points, ([0-9]+) mana, ([0-9]+) moves, ([0-9]+) practices and ([0-9]+) trains\.$
Then, in the output, simply use something similar to this:
ftalk I leveled! I went up by %1 hp, %2 mp, %3 mv, and gained %4 pracs and %5 trains!
As for the timer, you need to add a timer that fires every hour, and does something similar to what I showed above, except I would use a script to both send to output (Note or print) and clear the various counting variables. (@gold, @kills, etc).
Then add triggers to increment those variables whenever the relevant events happens.
Hope that helps.
Thank you much for the help Flelm. I had a majority of the code done and that should finish it up. Thank You Kindly