Author Topic: Event_CheckSlots  (Read 786 times)

I say no more with buying items only to have them dissapear because your inventory is full!
input:
player > checkSlots [int 1-5] [bool]
output:
onSlotsAvailable > Self/Player/Client/Mini/NAMED_BRICK
onSlotsFull > Self/Player/Client/Mini/NAMED_BRICK

checkSlots [how many slots to check] [check all slots]
Checks if you have the number of inventory slots available/any inventory slots available (if checkmark checked) and outputs the according output event.

Example use case:
Code: [Select]
OnActivate - Player - checkSlots 3
onSlotsFull - Client - MessageBoxOk You do not have enough inventory slots for these items! Come back with 3+ free slots.
onSlotsAvailable - Self - checkScore 5
onScoreLack - Client - You need 5 points for these items!
onScoreHave - Client - promptClient Yes/No Buy these items?
onPromptAccept - Player - addItem - Gun
onPromptAccept - Player - addItem - Sword
onPromptAccept - Player - addItem - Rocket L.
« Last Edit: April 28, 2020, 09:32:35 PM by maxymax13 »