SHARE
TWEET

Untitled

a guest Nov 11th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /// CREATE ///
  2.  
  3. enum item {
  4.     none,
  5.     mintJelly,
  6.     clayLump,
  7.     freshLens,
  8.     webbedWing,
  9.     slimySap,
  10.     clayHeart,
  11.    
  12.     length
  13. }
  14.  
  15. enum itemProperty{
  16.     sprite,
  17.     name,
  18.     amount,
  19.     value,
  20.     type,   //ingredient, potion, tome, hat, shirt, pant
  21.     indexNum,
  22.     useScript,
  23.    
  24.     length
  25. }
  26.  
  27.  
  28. item_index = ds_grid_create(item.length, itemProperty.length);
  29.  
  30.  
  31. item_index[item.mintJelly, itemProperty.sprite] = 1;
  32. item_index[item.mintJelly, itemProperty.name] = "Mint Jelly";
  33. item_index[item.mintJelly, itemProperty.amount] = 5;
  34. item_index[item.mintJelly, itemProperty.value] = 10;
  35. item_index[item.mintJelly, itemProperty.indexNum] = 1;
  36.  
  37. item_index[item.clayLump, itemProperty.sprite] = 2;
  38. item_index[item.clayLump, itemProperty.name] = "Clay Lump";
  39. item_index[item.clayLump, itemProperty.amount] = 0;
  40. item_index[item.clayLump, itemProperty.value] = 15;
  41. item_index[item.clayLump, itemProperty.indexNum] = 2;
  42.  
  43. item_index[item.freshLens, itemProperty.sprite] = 3;
  44. item_index[item.freshLens, itemProperty.name] = "Fresh Lens";
  45. item_index[item.freshLens, itemProperty.amount] = 0;
  46. item_index[item.freshLens, itemProperty.value] = 20;
  47. item_index[item.freshLens, itemProperty.indexNum] = 3;
  48.  
  49. item_index[item.webbedWing, itemProperty.sprite] = 4;
  50. item_index[item.webbedWing, itemProperty.name] = "Webbed Wing";
  51. item_index[item.webbedWing, itemProperty.amount] = 8;
  52. item_index[item.webbedWing, itemProperty.value] = 25;
  53. item_index[item.webbedWing, itemProperty.indexNum] = 4;
  54.  
  55. item_index[item.slimySap, itemProperty.sprite] = 5;
  56. item_index[item.slimySap, itemProperty.name] = "Slimy Sap";
  57. item_index[item.slimySap, itemProperty.amount] = 0;
  58. item_index[item.slimySap, itemProperty.value] = 30;
  59. item_index[item.slimySap, itemProperty.indexNum] = 5;
  60.  
  61. item_index[item.clayHeart, itemProperty.sprite] = 6;
  62. item_index[item.clayHeart, itemProperty.name] = "Clay Heart";
  63. item_index[item.clayHeart, itemProperty.amount] = 0;
  64. item_index[item.clayHeart, itemProperty.value] = 50;
  65. item_index[item.clayHeart, itemProperty.indexNum] = 6;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top