[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Mobs exp issues

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Mobs exp issues

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Treysss   (2 posts)  [Biography] bio
Date Sat 18 Aug 2007 12:02 PM (UTC)  quote  ]
Message
Okay...I know this is something I should have figured out by now, but I've gone through 24 pages of the forums here and several other forums...

On mob creation (using both ORB and AreaEditor for different reasons), I'm having problems with the experience points awarded. Players gain experience for increasing skills, but on mob death, receive from 0-2 exp for my created creatures. I've tried giving the mobs (lvl 1-2) 20+ hps, 150+ hps...setting experience in the builder...no good.

I've tried importing mobs from different areas, and they seem to work fine...comparing their stats to my mobs, I can't seem to find what's causing the difference; I'm sure it's something simple.

Any help before I put my own head through a wall for being so stupid?
[Go to top] top

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sat 18 Aug 2007 10:45 PM (UTC)  quote  ]
Message
Look at xp_compute in fight.c, and see the various things it takes into account in calculating the experience gain. Stuff like:


  • Mob level compared to killer level
  • Alignment bonus / penalty
  • Penalty for repeatedly killing the same mob
  • Penalty for being an experienced player
  • Maximum possible for the level


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Treysss   (2 posts)  [Biography] bio
Date Reply #2 on Tue 21 Aug 2007 01:06 AM (UTC)  quote  ]
Message
I was right: I am an idiot.

I hadn't set any melee damage dice to my mobs...had just been relying on their weapons for damage, so it figured they couldn't hurt a character when it came time to figure experience.
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


1,033 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]