Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----LUA----
- Print("This is a list of items you can have on your adventure")
- textutils.slowPrint("Cross bow, Bolts, Fire Starter, Knife, Axe, Hammer, 10 rations, Water Skin, Leather Armor", 100)
- textutils.slowprint("You have enough space for four of these items")
- Function InventoryChecker1()
- print("First item selected please select next item")
- repeat
- local slot1 = read(*)
- if slot1 =~ "Cross bow" or "Bolts" or "Fire STarter" or "Knife" or "Axe" or "Hammer" or "10 rations" or "Water skin" or "Leather Armor" Then
- print("That item is not a choice please try again")
- until slot1 == "Cross bow" or "Bolts" or "Fire Starter" or "Knife" or "Axe" or "Hammer" or "10 rations" or "Water skin" or "Leather Armor"
- end
- end
- Function InventoryChecker2()
- print("First item selected please select next item")
- repeat
- local slot2 = read(*)
- if slot2 =~ "Cross bow" or "Bolts" or "Fire STarter" or "Knife" or "Axe" or "Hammer" or "10 rations" or "Water skin" or "Leather Armor" Then
- print("That item is not a choice please try again")
- until slot2 == "Cross bow" or "Bolts" or "Fire Starter" or "Knife" or "Axe" or "Hammer" or "10 rations" or "Water skin" or "Leather Armor"
- end
- end
- Function InventoryChecker3()
- print("First item selected please select next item")
- repeat
- local slot3 = read(*)
- if slot3 =~ "Cross bow" or "Bolts" or "Fire STarter" or "Knife" or "Axe" or "Hammer" or "10 rations" or "Water skin" or "Leather Armor" Then
- print("That item is not a choice please try again")
- until slot3 == "Cross bow" or "Bolts" or "Fire Starter" or "Knife" or "Axe" or "Hammer" or "10 rations" or "Water skin" or "Leather Armor"
- end
- end
- Function InventoryChecker4()
- print("First item selected please select next item")
- repeat
- local slot4 = read(*)
- if slot4 =~ "Cross bow" or "Bolts" or "Fire STarter" or "Knife" or "Axe" or "Hammer" or "10 rations" or "Water skin" or "Leather Armor" Then
- print("That item is not a choice please try again")
- until slot4 == "Cross bow" or "Bolts" or "Fire Starter" or "Knife" or "Axe" or "Hammer" or "10 rations" or "Water skin" or "Leather Armor"
- end
- end
- Function Inventorychecker()
- local Invchk = Inventory
- If read == "Inventory" then
- print (slot1 , slot2 , slot3 , slot 4)
Advertisement
Add Comment
Please, Sign In to add comment