I need a ffc script for some special cutscenes.
(or possibly a script that can cooperate with Hoffs_Message_Script)
ffc script Hoffs_Message_Script { void run(int string, int delay, int no_return, int string2, int toggle, int screen_var, int item_id) { //This variable is used to check if you have entered the screen before int screen_check = 1; //If you have chosen to use a delay(more then 0) if (delay > 0) { //Wait for "delay" amount of frames. 60 frames = 1 second Waitframes(delay); } //If you want to show a string depending on if you have a certain item or not if ((item_id > 0)) { //If you do not have a certain item if (!Link->Item[item_id]) { //Show the first string on the screen Screen->Message(string); } //If you do have that item else if(Link->Item[item_id]) { //Show the second string on the screen Screen->Message(string2); } } else { //This runs the first time you enter the screen if (Screen->D[screen_var] != screen_check) { //Show the first string on the screen Screen->Message(string); //If you have chosen to use a second string if (string2 > 0) { //Set Screen->D[screen_var] to be equal to screen_check(1) Screen->D[screen_var] = screen_check; } } //This runs if you have chosen to use a second string, //and you have already visited the screen once before else { //Show the second string on the screen Screen->Message(string2); //If you want to toggle between string1 and string2 every time you enter the screen if (toggle > 0) { //Now Zelda Classic will think that you have never visited the screen before :) //(Seriously, this just changes the Screen->D[screen_var] variable to the default value) Screen->D[screen_var] = 0; } } //This only runs if you have set D2(no_return) to 1 or more if (no_return > 0) { //Set Screen->D[screen_var] to be equal to screen_check(1) Screen->D[screen_var] = screen_check; } } } }
The script should play the message (or call hoffs script) and automaticly switch to the next string (set in the string editor), at the end of each message, after a variable delay (til it reaches a string, set to "Next: none")
...one more REALLY important function.
The script should disable the "messages freeze all screen action" rule.
Edited by Bagu, 08 October 2020 - 09:59 AM.