Jump to content

Photo

Scripts wanted for my Quest

Quest; Script

  • Please log in to reply
35 replies to this topic

#31 Sparkster

Sparkster

    The Sparking Spark of ZC

  • Members

Posted 22 April 2015 - 12:46 AM

I have a Excel Sheet with both decimal and hexadecimal numbers to check for the Screen->D register.

Edited by Sparkster, 22 April 2015 - 12:46 AM.


#32 justin

justin

    Adept

  • Members

Posted 22 April 2015 - 07:33 AM

So did either of the options work for you?

#33 Sparkster

Sparkster

    The Sparking Spark of ZC

  • Members

Posted 22 April 2015 - 01:20 PM

I will test tomorrow.



#34 Sparkster

Sparkster

    The Sparking Spark of ZC

  • Members

Posted 23 April 2015 - 04:22 AM

I tested justins code with an test quest. I edited the const ints and then this comes out after compiling:

 

Pass 1: Parsing
Pass 2: Preprocessing
Pass 3: Building symbol tables
Pass 4: Type-checking/Completing function symbol tables/Constant folding
tmp, line 12: Error T21: Could not match type signature GetScreenState(float, float, float).
 



#35 Avaro

Avaro

    o_o

  • Members
  • Real Name:Robin
  • Location:Germany

Posted 23 April 2015 - 06:59 AM

I tested justins code with an test quest. I edited the const ints and then this comes out after compiling:
 
Pass 1: Parsing
Pass 2: Preprocessing
Pass 3: Building symbol tables
Pass 4: Type-checking/Completing function symbol tables/Constant folding
tmp, line 12: Error T21: Could not match type signature GetScreenState(float, float, float).


Oh, sorry! Every line that has "GetScreenState" in it needs a "Game->" before it. Like this:

const int All4TriggersCheck_Map = 0; //the map where the triggers are
const int All4TriggersCheck_Screen1 = 0; //first screen
const int All4TriggersCheck_Screen2 = 0; //second screen
const int All4TriggersCheck_Screen3 = 0; //third screen
const int All4TriggersCheck_Screen4 = 0; //fourth screen
 
ffc script All4TriggersCheck{
    void run(){
        if(Screen->State[ST_SECRET]) Quit();
        while(!Game->GetScreenState(All4TriggersCheck_Map, All4TriggersCheck_Screen1, ST_SECRET)) Waitframe();
        while(!Game->GetScreenState(All4TriggersCheck_Map, All4TriggersCheck_Screen2, ST_SECRET)) Waitframe();
        while(!Game->GetScreenState(All4TriggersCheck_Map, All4TriggersCheck_Screen3, ST_SECRET)) Waitframe();
        while(!Game->GetScreenState(All4TriggersCheck_Map, All4TriggersCheck_Screen4, ST_SECRET)) Waitframe();
        Screen->TriggerSecrets();
        Screen->State[ST_SECRET] = true;
    }
}


#36 Sparkster

Sparkster

    The Sparking Spark of ZC

  • Members

Posted 23 April 2015 - 10:10 AM

Compiled successfully and running fine. I tried 4 different secret and they are running fine with this FFC.

 

SeChe06.png

 

Thanks avataro and justin.





Also tagged with one or more of these keywords: Quest;, Script

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users