Echoing Experience as it Updates

Echoing Experience as it Updates

Postby *juggleblood* » Thu Feb 25, 2016 10:53 pm

This is something that I knew some people were doing, but didn't appreciate how nice it is until I tried it. Every time the MSDP Experience variable updates, I simply echo the amount of the increase. So then I can have a better feel for which of my special abilities are doing the best damage.

So step 1 is to get MSDP experience updating.

Then, find your update exp function which should look something like:
function updateExperience()
xp=atcp.MSDPEXPERIENCE+0
end

and change it to:
function updateExperience()
if atcp.MSDPEXPERIENCE+0~=xp then
lastXp=xp
xp=atcp.MSDPEXPERIENCE+0
xpDelta=xp-lastXp
cecho("<cyan>"..xpDelta.."<reset>") end
end

*don't forget to put xp, lastXp, and xpDelta in definitions, i.e. xp=xp or 0, etc...

Now you are seeing your exp increases and can use xpDelta in triggers to track various statistics and such.

Cheers.
Talk to the clown.
User avatar
*juggleblood*
Hall of Fame Avatar Poster
 
Posts: 1304
Joined: Sun Jan 22, 2006 6:36 am
Location: Beyond Yonder
Status: Offline

Re: Echoing Experience as it Updates

Postby Madigan » Fri Feb 26, 2016 3:34 am

I've been foaming at the bits to get up and running on mudlet ever since you mentioned being able to do this. Can't wait to give it a shot. GREAT feature.

THx for sharing.
Madigan
 
Posts: 30
Joined: Fri Sep 17, 2010 1:22 am
Status: Offline

Re: Echoing Experience as it Updates

Postby Teron » Fri Feb 26, 2016 6:38 am

You also need to take into account that the exp delta you see is pretty much randomized and you can only average it between 10 increases for the same skill to estimate your damage more or less accurately.

Also, exp depends on mob level, so you have to take it into account, which further complicates things.

If you find a way to accurately do math with the variable mob level, do let me know. Thanks.
User avatar
Teron
Avatar Poster
 
Posts: 707
Joined: Wed Mar 03, 2004 1:59 pm
Status: Offline


Return to Mudlet - unlimited possibilities

Who is online

Users browsing this forum: No registered users and 1 guest

cron