The mechanics of /players x
#1
This has come up in a discussion on another forum and I realised I didn't know the answer beyond my in-game experience. Would like to get a more robust answer, but that involves more reading of the code than I know how to do.

Basically the question is, exactly what changes if you change /players setting (or if other people join the game) between when a monster spawns and when it is killed?
I assume this comes down to, what is stored in the data structure that is created when a monster spawns?

If the current number of players is stored, then when the monster is killed it would presumably reward (drops and exp) as it "should", relative to how hard it was to kill.
If the current number of players is not stored, then any information that is needed at kill-time would need to be stored, or else the monster will reward based on the setting at the end.
I can imagine the exp value of the monster might get stored at spawn time, but storing a no-drop value seems a bit far-fetched.

I read through the description of the ptUnit structure at Phrozen Keep, but there is too much to take in at once - I may have missed it. I saw that the current number of players is stored in ptGame (obviously) but did not see it in any ptUnit structure.

For the layman, I'm essentially asking if it is possible to spawn eg Baal in a one player game with one-player hit points, sliver him, and then switch to players 8 (or have several people suddenly join you) for the kill, and get 8 player exp and/or drops.
"Thank you. We always have a shortage of unfounded opinions, so this will really help us. " - adeyke
Reply


Messages In This Thread
The mechanics of /players x - by Thrugg - 03-31-2004, 10:55 PM
The mechanics of /players x - by ShadowHM - 03-31-2004, 11:06 PM
The mechanics of /players x - by Obi2Kenobi - 03-31-2004, 11:27 PM
The mechanics of /players x - by Ruvanal - 04-01-2004, 02:10 AM
The mechanics of /players x - by Thrugg - 04-01-2004, 08:12 PM
The mechanics of /players x - by bigeyedbug - 04-01-2004, 08:26 PM
The mechanics of /players x - by Ruvanal - 04-01-2004, 09:15 PM
The mechanics of /players x - by WarriorWalrus - 04-02-2004, 10:42 PM
The mechanics of /players x - by Professor Frink - 04-03-2004, 08:01 AM
The mechanics of /players x - by Jarulf - 04-03-2004, 12:28 PM
The mechanics of /players x - by AssA - 04-03-2004, 04:28 PM
The mechanics of /players x - by Grayloch - 04-03-2004, 04:37 PM
The mechanics of /players x - by WarriorWalrus - 04-03-2004, 06:20 PM
The mechanics of /players x - by Ruvanal - 04-04-2004, 03:02 AM
The mechanics of /players x - by adeyke - 04-04-2004, 06:49 AM
The mechanics of /players x - by Professor Frink - 04-04-2004, 08:49 AM
The mechanics of /players x - by Jarulf - 04-08-2004, 08:30 AM

Forum Jump:


Users browsing this thread: 4 Guest(s)