Ok,player x has a obj/ house
Player x has a var to owner of the house
Player x has a var houses (meaning how many he owns)
If player x is not around his house
And player y comes and destroys his house how does player y's attack script interfere with players x house var
ID:162165
![]() Feb 19 2008, 8:36 pm
|
|
![]() Feb 19 2008, 9:29 pm
|
|
Any variable that is based on the state of the world, rather than the state of the saved mob, should not be saved. Make it tmp, and calculate its value when the player is loaded (in Read()).
|
Ok, sorry for not being more clear if the player is away from his house ie another z lvl and how many houses he owns effects what he can do how do I make it when another player comes along and destroys his house it minus the other players.house variable?
Can I use write() and read() when this var is effected by the players key? |
Is this possible any way I'm trying to figure out with read and write but still cannot get to work
Problem is owner var So if player x has 2 houses his house var is 2 player x's houses have a var owner=playerx When player y comes along and blows up 1 of his houses player x house var needs to change to minus 1 Please help |