Is there a different kind of script I should be using for the doors I'm creating, or is there something else going on that I don't know about?
Begin DoorscriptIf (OnActivate == 1 ) If ( Player->getitemcount "youritemkey" >= 1 ) activate Else Return EndIfEndIfEnd Doorscript
Begin shrineImperial;on Furn_imp_altar_cure_01short buttonshort donationshort QuestionStateif ( menumode == 1 ) returnendifif ( OnActivate == 0 ) if ( QuestionState == 0 ) Return endifendif;set donation amountif ( player->GetPCRank "Imperial Cult" >= 2 ) ;member of rank 2 or above Set donation to 0elseif ( player->GetPCRank "Imperial Cult" >= 0 ) ;member below rank 2 Set donation to 10else ;not a member Set donation to 25endifif ( Player->GetItemCount Gold_001 < donation ) MessageBox "You do not have enough gold to make a donation." "OK" Returnendifif ( QuestionState == 0 ) MessageBox "Would you like to make a donation of %.0f and receive a blessing?" donation "Yes" "No" set QuestionState to 10endif;Ask second question if ( QuestionState == 10 ) Set button to GetButtonPressed if ( button == 0 ) MessageBox "What blessing do you ask for?" "Cure Disease" "Cure Blight" "Cure Poison" "Restore Attributes" set QuestionState to 20 elseif ( button == 1 ) set QuestionState to 0 endif Returnendif;perform cure or give messageif ( QuestionState == 20 ) Set button to GetButtonPressed if ( button == 0 ) if ( Player->GetCommonDisease == 1 ) Cast "Cure Common Disease Other" Player if ( donation == 25 ) Player->RemoveItem Gold_001 25 elseif ( donation == 10 ) Player->RemoveItem Gold_001 10 endif else MessageBox "You are not afflicted with a common disease." "OK" endif Set QuestionState to 0 endif if ( button == 1 ) if ( Player->GetBlightDisease == 1 ) Cast "Cure Blight Disease" Player if ( donation == 25 ) Player->RemoveItem Gold_001 25 elseif ( donation == 10 ) Player->RemoveItem Gold_001 10 endif else MessageBox "You are not afflicted with a blight disease." "OK" endif Set QuestionState to 0 endif if ( button == 2 ) if ( Player->GetEffect sEffectPoison == 1 ) ;check for poison effect on player Cast "Cure Poison Touch" Player if ( donation == 25 ) Player->RemoveItem Gold_001 25 elseif ( donation == 10 ) Player->RemoveItem Gold_001 10 endif else MessageBox "You are not poisoned." "OK" endif Set QuestionState to 0 endif if ( button == 3 ) Cast "Restore Attributes" Player ;restore eight attributes Cast "Restore Fighter" Player ;restore eight fighter skills Cast "Restore Mage" Player ;restore eight mage skills Cast "Restore Stealth" Player ;restore eight stealth skills Cast "Restore Other" Player ;restore three other skills if ( donation == 25 ) Player->RemoveItem Gold_001 25 elseif ( donation == 10 ) Player->RemoveItem Gold_001 10 endif Set QuestionState to 0 endifendifend