Advertisement
Guest User

Unitale Help

a guest
Oct 31st, 2021
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. 20. function EncounterStarting()
  2. 21. Inventory.AddCustomItems{{"MnstrCandy", "SpdrCider", "SpdrDonut"}, {0,0,0}}
  3. 22. Inventory.SetInventory{{"MnstrCandy", "SpdrCider", "SpdrDonut"}}
  4. 48. function HandleItem(ItemID)
  5. 50. if ItemID == "MNSTRCANDY" then
  6. 51. Player.Heal {10}
  7. 52. BattleDialog({"You ate the Mnstr Candy"})
  8. 53. elseif ItemID == "SPDRCIDER" then
  9. 54. Player.Heal {24}
  10. 55. BattleDialog({"You ate the Spdr Cider"})
  11. 56. elseif ItemID == "SPDRDONUT" then
  12. 57. Player.Heal {12}
  13. 58. BattleDialog({"You ate the Spdr Donut"})
  14. 59. end
  15. 60. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement