Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const int CRYSTAL_FLAME_COMBO= 2227;
- const int CLUE_FAIRY= 1;
- const int CLUE_LETTER=2;
- const int CLUE_GAME = 3;
- const int CLUE_BEAST =4;
- const int CLUE_FAIRY_MSG= 1370;
- const int CLUE_BEAST_MSG= 1380;
- const int CLUE_GAME_MSG = 1390;
- const int CLUE_LETTER_MSG=1400;
- const int POSTMAN_COMBO=31926;
- void Draw_Clues(){
- int buffer[50];
- int clue;
- int index;
- int color= 0x0F;
- if(DestinyVars[CURRENT_OVERWORLD]==LABRYNNA_OVERWORLD){
- if(DestinyVars[CLUE_SELECTED]==CLUE_FAIRY){
- clue= CLUE_FAIRY_MSG;
- if(Link->PressRight){
- DestinyVars[CLUE_SELECTED]= CLUE_LETTER;
- Game->PlaySound(SFX_MENU_SELECT);
- Link->PressRight= false;
- clue= CLUE_LETTER_MSG;
- DestinyVars[CLUE_DISPLAY]=1;
- }
- }
- else if(DestinyVars[CLUE_SELECTED]==CLUE_LETTER){
- clue= CLUE_LETTER_MSG;
- if(Link->PressLeft){
- DestinyVars[CLUE_SELECTED]= CLUE_FAIRY;
- Game->PlaySound(SFX_MENU_SELECT);
- clue= CLUE_FAIRY_MSG;
- Link->PressLeft= false;
- DestinyVars[CLUE_DISPLAY]=1;
- }
- }
- }
- else if(DestinyVars[CURRENT_OVERWORLD]==MIRROR_OVERWORLD){
- if(DestinyVars[CLUE_SELECTED]==CLUE_GAME){
- clue= CLUE_GAME_MSG;
- if(Link->PressRight){
- DestinyVars[CLUE_SELECTED]= CLUE_BEAST;
- Game->PlaySound(SFX_MENU_SELECT);
- Link->PressRight= false;
- clue= CLUE_BEAST_MSG;
- DestinyVars[CLUE_DISPLAY]=1;
- }
- }
- else if(DestinyVars[CLUE_SELECTED]==CLUE_BEAST){
- clue= CLUE_BEAST_MSG;
- if(Link->PressLeft){
- DestinyVars[CLUE_SELECTED]= CLUE_GAME;
- Game->PlaySound(SFX_MENU_SELECT);
- Link->PressLeft= false;
- clue= CLUE_GAME_MSG;
- DestinyVars[CLUE_DISPLAY]=1;
- }
- }
- }
- if(Link->PressDown){
- Game->PlaySound(SFX_MENU_SELECT);
- Link->PressDown= false;
- DestinyVars[CLUE_DISPLAY]= (DestinyVars[CLUE_DISPLAY]+1)%10;
- if(!DestinyVars[CLUE_DISPLAY])
- DestinyVars[CLUE_DISPLAY]=10;
- }
- if(Link->PressUp){
- Game->PlaySound(SFX_MENU_SELECT);
- Link->PressUp= false;
- DestinyVars[CLUE_DISPLAY]= (DestinyVars[CLUE_DISPLAY]-1)%10;
- if(!DestinyVars[CLUE_DISPLAY])
- DestinyVars[CLUE_DISPLAY]=10;
- }
- index= DestinyVars[CLUE_DISPLAY]-1;
- if(clue==CLUE_FAIRY_MSG){
- if(DestinyVars[FAIRY_FOUND+index])
- color= 0x06;
- }
- else if(clue==CLUE_LETTER_MSG){
- if(DestinyVars[DELIVERY_MADE+index])
- color= 0x06;
- }
- else if(clue==CLUE_GAME_MSG){
- if(DestinyVars[FARORE_COUNT]>=DestinyVars[CLUE_DISPLAY])
- color= 0x06;
- }
- else if(clue==CLUE_BEAST_MSG){
- if(DestinyVars[BEAST_DEFEATED+index])
- color= 0x06;
- }
- Screen->DrawInteger(1, 8, 80, FONT_Z1,0x0f, -1,16, 16, index+1, 0,128);
- Game->GetMessage(clue+index, buffer);
- Screen->DrawString(1,8,104,FONT_S,color,0x61,TF_NORMAL,buffer,128);
- Screen->FastTile(1,240,104,63255,0,OP_OPAQUE);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement