Advertisement
Guest User

Untitled

a guest
Sep 15th, 2017
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. On acorn use
  2. If [acorn stack] more than or equal to 10
  3. For each 10 in [acorn stack]
  4. [acorn stack] -= 10
  5. Give bento box
  6. End for loop
  7. Else
  8. Display message "You need a stack of 10 or more acorns to make a Bento Box"
  9. End if
  10. End function
  11.  
  12. If you're unable to reference a specific stack of items, do something like this.
  13.  
  14. On acorn use
  15. Create int variable [acorns]
  16. for each item in inventory
  17. If [item] equals item:Acorn
  18. Add 1 to [acorns]
  19. End if
  20. End for loop
  21.  
  22. If [acorns] more than or equal to 10
  23. For each 10 in [acorns]
  24. [acorns] -= 10
  25. Give bento box
  26. End for loop
  27. Else
  28. Display message "You need 10 acorns to make a Bento Box"
  29. End if
  30. End function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement