Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function AddItem(obj: String) {
- if(items.Contains(obj) && !inv.Contains(obj))
- {
- items.Remove(obj);
- inv.Add(obj);
- log = "\n\nYou Pick Up the " + input;
- messageTimer = true;
- } else if (!items.Contains(obj) && inv.Contains(obj)) {
- log = "\n\nYou already have that!";
- messageTimer = true;
- } else if (!items.Contains(obj) && !inv.Contains(obj)) {
- log = "\n\nYou try but it is impossible, it's not there anymore.";
- }
- }
Add Comment
Please, Sign In to add comment