Advertisement
ywkls

Clue System

Jun 20th, 2020
30
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const int CRYSTAL_FLAME_COMBO= 2227;
  2. const int CLUE_FAIRY= 1;
  3. const int CLUE_LETTER=2;
  4. const int CLUE_GAME = 3;
  5. const int CLUE_BEAST =4;
  6. const int CLUE_FAIRY_MSG= 1370;
  7. const int CLUE_BEAST_MSG= 1380;
  8. const int CLUE_GAME_MSG = 1390;
  9. const int CLUE_LETTER_MSG=1400;
  10. const int POSTMAN_COMBO=31926;
  11.  
  12. void Draw_Clues(){
  13. int buffer[50];
  14. int clue;
  15. int index;
  16. int color= 0x0F;
  17. if(DestinyVars[CURRENT_OVERWORLD]==LABRYNNA_OVERWORLD){
  18. if(DestinyVars[CLUE_SELECTED]==CLUE_FAIRY){
  19. clue= CLUE_FAIRY_MSG;
  20. if(Link->PressRight){
  21. DestinyVars[CLUE_SELECTED]= CLUE_LETTER;
  22. Game->PlaySound(SFX_MENU_SELECT);
  23. Link->PressRight= false;
  24. clue= CLUE_LETTER_MSG;
  25. DestinyVars[CLUE_DISPLAY]=1;
  26. }
  27. }
  28. else if(DestinyVars[CLUE_SELECTED]==CLUE_LETTER){
  29. clue= CLUE_LETTER_MSG;
  30. if(Link->PressLeft){
  31. DestinyVars[CLUE_SELECTED]= CLUE_FAIRY;
  32. Game->PlaySound(SFX_MENU_SELECT);
  33. clue= CLUE_FAIRY_MSG;
  34. Link->PressLeft= false;
  35. DestinyVars[CLUE_DISPLAY]=1;
  36. }
  37. }
  38. }
  39. else if(DestinyVars[CURRENT_OVERWORLD]==MIRROR_OVERWORLD){
  40. if(DestinyVars[CLUE_SELECTED]==CLUE_GAME){
  41. clue= CLUE_GAME_MSG;
  42. if(Link->PressRight){
  43. DestinyVars[CLUE_SELECTED]= CLUE_BEAST;
  44. Game->PlaySound(SFX_MENU_SELECT);
  45. Link->PressRight= false;
  46. clue= CLUE_BEAST_MSG;
  47. DestinyVars[CLUE_DISPLAY]=1;
  48. }
  49. }
  50. else if(DestinyVars[CLUE_SELECTED]==CLUE_BEAST){
  51. clue= CLUE_BEAST_MSG;
  52. if(Link->PressLeft){
  53. DestinyVars[CLUE_SELECTED]= CLUE_GAME;
  54. Game->PlaySound(SFX_MENU_SELECT);
  55. Link->PressLeft= false;
  56. clue= CLUE_GAME_MSG;
  57. DestinyVars[CLUE_DISPLAY]=1;
  58. }
  59. }
  60. }
  61. if(Link->PressDown){
  62. Game->PlaySound(SFX_MENU_SELECT);
  63. Link->PressDown= false;
  64. DestinyVars[CLUE_DISPLAY]= (DestinyVars[CLUE_DISPLAY]+1)%10;
  65. if(!DestinyVars[CLUE_DISPLAY])
  66. DestinyVars[CLUE_DISPLAY]=10;
  67. }
  68. if(Link->PressUp){
  69. Game->PlaySound(SFX_MENU_SELECT);
  70. Link->PressUp= false;
  71. DestinyVars[CLUE_DISPLAY]= (DestinyVars[CLUE_DISPLAY]-1)%10;
  72. if(!DestinyVars[CLUE_DISPLAY])
  73. DestinyVars[CLUE_DISPLAY]=10;
  74. }
  75. index= DestinyVars[CLUE_DISPLAY]-1;
  76. if(clue==CLUE_FAIRY_MSG){
  77. if(DestinyVars[FAIRY_FOUND+index])
  78. color= 0x06;
  79. }
  80. else if(clue==CLUE_LETTER_MSG){
  81. if(DestinyVars[DELIVERY_MADE+index])
  82. color= 0x06;
  83. }
  84. else if(clue==CLUE_GAME_MSG){
  85. if(DestinyVars[FARORE_COUNT]>=DestinyVars[CLUE_DISPLAY])
  86. color= 0x06;
  87. }
  88. else if(clue==CLUE_BEAST_MSG){
  89. if(DestinyVars[BEAST_DEFEATED+index])
  90. color= 0x06;
  91. }
  92. Screen->DrawInteger(1, 8, 80, FONT_Z1,0x0f, -1,16, 16, index+1, 0,128);
  93. Game->GetMessage(clue+index, buffer);
  94. Screen->DrawString(1,8,104,FONT_S,color,0x61,TF_NORMAL,buffer,128);
  95. Screen->FastTile(1,240,104,63255,0,OP_OPAQUE);
  96. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement