OmegaGamingHunters

CheckItemDetail Script

Oct 4th, 2019
509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.40 KB | None | 0 0
  1. if (ds_list_find_value(global.Inventory, global.selected_item) == ds_map_find_value(global.ItemDatabase, Items.MonsterCandy))
  2. {
  3.     ItemDialog_USE[0] = "* You used the Monster Candy."; //Dialog String
  4.     ItemDialog_INFO[0] = "* Monster Candy Info";
  5.     ItemDialog_DROP[0] = "* You Droped the Monster Candy.";
  6.     exit;
  7. }
  8. else if (ds_list_find_value(global.Inventory, global.selected_item) == ds_map_find_value(global.ItemDatabase, Items.Bandage))
  9. {
  10.     ItemDialog_USE[0] = "* You used the Bandage."; //Dialog String
  11.     ItemDialog_INFO[0] = "* Bandage Info";
  12.     ItemDialog_DROP[0] = "* You Droped the Bandage.";
  13.     exit;
  14. }
  15. else if (ds_list_find_value(global.Inventory, global.selected_item) == ds_map_find_value(global.ItemDatabase, Items.Stick))
  16. {
  17.     ItemDialog_USE[0] = "* You used the Stick."; //Dialog String
  18.     ItemDialog_INFO[0] = "* Stick Info";
  19.     ItemDialog_DROP[0] = "* You Droped the Stick.";
  20.     exit;
  21. }
  22. else if (ds_list_find_value(global.Inventory, global.selected_item) == ds_map_find_value(global.ItemDatabase, Items.SpiderDonut))
  23. {
  24.     ItemDialog_USE[0] = "* You used the Spider Donut."; //Dialog String
  25.     ItemDialog_INFO[0] = "* Spider Donut Info";
  26.     ItemDialog_DROP[0] = "* You Droped the Spider Donut.";
  27.     exit;
  28. }
  29. else if (ds_list_find_value(global.Inventory, global.selected_item) == ds_map_find_value(global.ItemDatabase, Items.SpiderCider))
  30. {
  31.     ItemDialog_USE[0] = "* You used the Spider Cider."; //Dialog String
  32.     ItemDialog_INFO[0] = "* Spider Cider Info";
  33.     ItemDialog_DROP[0] = "* You Droped the Spider Cider.";
  34.     exit;
  35. }
  36. else if (ds_list_find_value(global.Inventory, global.selected_item) == ds_map_find_value(global.ItemDatabase, Items.ButterPie))
  37. {
  38.     ItemDialog_USE[0] = "* You used the Butter Pie."; //Dialog String
  39.     ItemDialog_INFO[0] = "* Butter Pie Info";
  40.     ItemDialog_DROP[0] = "* You Droped the Butter Pie.";
  41.     exit;
  42. }
  43. else if (ds_list_find_value(global.Inventory, global.selected_item) == ds_map_find_value(global.ItemDatabase, Items.ToyKnife))
  44. {
  45.     ItemDialog_USE[0] = "* You used the Toy Knife."; //Dialog String
  46.     ItemDialog_INFO[0] = "* Toy Knife Info";
  47.     ItemDialog_DROP[0] = "* You Droped the Toy Knife.";
  48.     exit;
  49. }
  50. else if (ds_list_find_value(global.Inventory, global.selected_item) == ds_map_find_value(global.ItemDatabase, Items.RedRibbon))
  51. {
  52.     ItemDialog_USE[0] = "* You used the Ribbon."; //Dialog String
  53.     ItemDialog_INFO[0] = "* Ribbon Info";
  54.     ItemDialog_DROP[0] = "* You Droped the Ribbon.";
  55.     exit;
  56. }
Advertisement
Add Comment
Please, Sign In to add comment