Begin BB_Grimoire_GlobalIf ( BB_Grimoire_Timer == 0 ) Set BB_Grimoire_Timer to GameHourEndifIf ( GameHour < ( BB_Grimoire_Timer + 1.0 ) ) ;something is wrong with my scripting in this block If ( GameHour > ( BB_Grimoire_Timer - 23.0 ) ) ;checks if the hour changes from midnight to 1 am? Return EndifEndif;this part below is not executing, so the script must be returning no matter what time it isIf ( Player->GetSpell "grim_alteration" == 1 ) Player->RemoveSpell "grim_alteration"Elseif ( Player->GetSpell "grim_conjuration" == 1 ) Player->RemoveSpell "grim_conjuration"Elseif ( Player->GetSpell "grim_destruction" == 1 ) Player->RemoveSpell "grim_destruction"Elseif ( Player->GetSpell "grim_enchant" == 1 ) Player->RemoveSpell "grim_enchant"Elseif ( Player->GetSpell "grim_illusion" == 1 ) Player->RemoveSpell "grim_illusion"Elseif ( Player->GetSpell "grim_mysticism" == 1 ) Player->RemoveSpell "grim_mysticism"Elseif ( Player->GetSpell "grim_restoration" == 1 ) Player->RemoveSpell "grim_restoration"EndifMessageBox "You feel the effects of the grimoire wash away."Set BB_Grimoire_Timer to 0StopScript BB_Grimoire_GlobalEnd
Does anyone know what I did wrong with my timings here?