07-02-2008, 05:42 PM
Sonire Wrote:Code:If GetPlayerCurWeight(Index) > GetPlayerMaxWeight(Index) Then Call PlayerMsg(Index, "You are over encumbered!", White)
Thats a key line of code for this system. If you want being over encumbered to carry penalties, that's pretty much how you would do it. I would probably take the above line of code and use it to determine whether a player can walk or not. Putting this in the appropriate sub would work:
Code:If GetPlayerCurWeight(Index) > GetPlayerMaxWeight(Index) Then CanMove = False
Ty this is nice, works good...
my players can't walk if over encumbered... funny :twisted: I now need another litle help. :roll:
I make a label(lblWeight) and a shape(shpWeight) to the inventory. I use this code:
Private Sub Label24_Click()
'Weight
lblWeight.Caption = GetPlayerMaxWeight & " / " & GetPlayerCurWeight
shpWeight.Width = (((GetPlayerMaxWeight / lblWeight.Width) / GetPlayerCurWeight / lblWeight.Width) * lblWeight.Width)
End Sub
But if i want to make my project, is says:
Argument not optional!
lblWeight.Caption = GetPlayerMaxWeight & " / " & GetPlayerCurWeight
Any tip :?: :roll:
