ID:161464
![]() May 4 2008, 11:56 am
|
|
I know how to make a party system but how do i make it so that if someone in party kills a monster u get half the normal exp.
|
Kaioken wrote:
SoloKid wrote: There seems to be a bit more to it. Do you want people to gain exp when anyone in their party kills something? Do they have to be nearby? We don't know how your party system works either, so I don't know how much we can help. |
Well like my party system is simple it just has leave invite and join but i want to do is like if someone kills a monster i want to know how to give everyone in the party that exp.
|
You'd divide the exp the monster gives by the amount of players in your party and give that exp to each of the party members.
|
SoloKid wrote:
someone kills a monster i want to know how to give everyone in the party that exp. If you want to add a result (adding exp) to something (killing a monster), then you're going to need to change the code where 'something' happens, of course. So, in your code when a monster dies (ie DeathCheck()), check if the killer of it is in a party. If he is, than give all the members of that party X exp. |
Ah, that's good. But I expect if you knew that you'd also know how to change the exp giving part to only give exp / 2? Seriously.
Then, what it is you're having trouble with here?