The Dink Network

Reply to Re: Experience and Level Up stuff

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
December 29th 2005, 02:14 PM
knightg.gif
cypry
Peasant He/Him Romania
Chop your own wood, and it will warm you twice. 
Well, I have a solution to this, but that's a bit complicated. Let's say you want 100 exp for level 1, 200 exp for level 2, 300 exp for level 3, you should use the following seq, in every die procedure, at every monster script:

if(&exp >= &levexp)
{
&level += 1;
&exp -= &levexp;
external("lraise", "main");
}

also, in the lraise script, you should enter
&levexp = &level;
&levexp *= 100;

This works only if &levexp is lower than it should be. If it's higher, the lraise script should be emty:
void main(void)
{
kill_this_task();
}
and you should replace "lraise" with some other name.
You also need to find a way to remove the exp box from the status bar(maybe redink1 can tell us how he did in reconstruction).
I don't know if this will work, but you can try it.