betto212 Posted January 30, 2012 Share Posted January 30, 2012 (edited) ScN test int counterref rCurrentItemint iIndexint itemselectedfloat armorhpfloat equipedhealthfloat basehealth Begin GameMode if (Player.GetinCell MegatonPlayerHouse == 1) if itemselected == 0 label 10 set iIndex to player.GetNumItems - 1 Label 20 set rCurrentItem to player.GetInventoryObject iIndex endif if rCurrentItem ; Do stuff if rCurrentItem == ArmorCombat player.equipitem rCurrentItem 0 0 set equipedhealth to 0 set equipedhealth to player.GetEquippedCurrentHealth 2 set counter to counter + 1 if equipedhealth > 0 || counter > 1 set basehealth to GetHealth rCurrentItem showmessage worked , iIndex , basehealth set armorhp to equipedhealth / basehealth MEGATONcontainerREF.Additemhealthpercent rCurrentItem 1 armorhp player.removeitem rCurrentItem 1 set itemselected to 0 set counter to 0 goto 10 else set itemSelected to 1 endif endif else set iIndex to iIndex - 1 Goto 20 endif endif END Edited January 30, 2012 by betto212 Link to comment Share on other sites More sharing options...
Recommended Posts