Guest User

Untitled

a guest
Jun 23rd, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function AddItem(obj: String) {
  2.  
  3.     if(items.Contains(obj) && !inv.Contains(obj))
  4.         {
  5.              items.Remove(obj);
  6.              inv.Add(obj);
  7.              log = "\n\nYou Pick Up the " + input;
  8.              messageTimer = true;
  9.         } else if (!items.Contains(obj) && inv.Contains(obj)) {
  10.             log = "\n\nYou already have that!";
  11.             messageTimer = true;
  12.         } else if (!items.Contains(obj) && !inv.Contains(obj)) {
  13.             log = "\n\nYou try but it is impossible, it's not there anymore.";
  14.         }
  15. }
Add Comment
Please, Sign In to add comment