Weevils/Ratting

by Tenebrae

Back to Mechanic's Corner.

Tenebrae2005-07-05 10:14:32
How does a counter for weevils or rats look like under mushclient?
Nyanco2005-07-05 15:52:53
For some time I used a very simple counter for rats with total and room counts.
It worked in this way:

- Two variables for the total number of rat killed and the number of rat killed in the current room.

- A trigger on "You will now notice the movement of rats and weevils" enables the counting trigger and sets the variables to 0.

- The counting trigger on "You have slain * rat." increments the 2 variables and shows them with Note().

- I reset the room count when I move with a message taken from the room description like "(^You see a single exit|^You see exits)" but this isn't certainly the best solution since it's also triggered when you look the room. While for the total count I used the answer given by the man you sell the rats to; in Celest: "Neran thanks you as you hand over".

- Finally the message "You will no longer take notice of the movement of rats and weevils" disables the counting trigger.

If the description isn't clear enough I can send you the code of the triggers.
Tenebrae2005-07-05 16:24:07
Does anyone know of any that counts the amount you have slain, the amount it is worth, and if possible the xp gained?
Unknown2005-07-09 12:21:22
Amounts you have slain is counted by the abstract example above, gold worth can be kept track of easily if you take the name of the rat slain out of the "you have slain" message and add the corresponding worth to a third variable.

As for the xp generated, it'd be rather hard to keep track of that in any accurate manner... Though of course, you could ask your Patron about how much essence He gains when you offer different types of rats, and then do something similar like for keeping track of your rats' worth in gold. That should at least give you a rough estimate.
silimaur2005-07-13 09:01:15
wait so the amount of essence the divine gain is equal to our xp gain ?!?!?