i want it something like, if you did more than 1/10 of the monsters total life in dammage, you get looting rights, if more than one person gets looting rights split loot between those people.
i havent gotten as far as making any items in game yet so just gold split would matter right now, im just trying to figure out the logistics of it at all (even though its only one-player right now split still matters because there will be "good" npc's that fight "evil" and i dont want the main character to just be able to walk around and loot any corpse whether they hit it or not, and i want to translate it to online multiplayer eventually anyway.)
i have my game set up so that any damage done has an id attached to it of the character that did the damage, so whenever a hit is scored i could have the monster inherit those variables, and then uppon death pass them to the "corpse" object, but how would i pass id and relative dammage variables of everything hitting a monster without them overwriting eachother?
i was thinking about having the monster bounce its own id and the dammage done to it back to the character doing the dammage but then if that character hits something else it would overwrite those variables..... ug... braintwister.
Edit: sry, almost forgot... gm8.1 lite user ...mostly a drag and drop user but im picking up on the code thing a little at a time.
Edited by Piwaket, 06 May 2012 - 07:52 AM.











