Justin Knight Posted February 18, 2016 Author Share Posted February 18, 2016 I need to know if they player has room for an item that they will only have the chance to get once from an event. So far I have **this** but I need it to just out of the event process after doing the check and finding that there isn't room for anymore items.Public Sub CustomScript(index As Long, caseID As Long) Select Case caseID **Case 1** **If FindOpenInvSlot(index, GetPlayerEquipment(index, EqSlot)) < 1 Then** ** PlayerMsg index, "You do not have enough room in your inventory.", BrightRed **** End If** Case Else PlayerMsg index, "You just activated custom script " & caseID & ". This script is not yet programmed.", BrightRed End SelectEnd SubThanks for any help you can provide. Link to comment Share on other sites More sharing options...
Growlith1223 Posted February 18, 2016 Share Posted February 18, 2016 you mean Exit out of the sub?if you mean that, Exit Sub is what you would use. Link to comment Share on other sites More sharing options...
Justin Knight Posted February 19, 2016 Author Share Posted February 19, 2016 I mean like exit out of the event in the game. However I ended up with another solution. I just make any items that wont fit in a players inventory, drop on the ground below them. Link to comment Share on other sites More sharing options...
jcsnider Posted February 19, 2016 Share Posted February 19, 2016 In your script set a player switch to true or false and then run a conditional on the event on that switch. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now