Bowzark715 Posted January 5, 2014 Share Posted January 5, 2014 (edited) Can anyone tell me what is wrong with this script I'm trying to make a mod which let's you buy a house in nearly all the cities in Morrowind Seyda Neen House Door Script (This is a script for the door btw) Begin AAASEYDANEENHOUSEDOORSCRIPT short state ;if you have the key from Socucius Ergalla If ( OnActivate == 1 ) If ( key_SeydaNeen_House == 1 ) endif set state to 1 endif ;if you don't have the key from Socucius Ergalla If ( key_SeydaNeen_House == 0 ) return MessageBox "You've have to talk to Socucius Ergalla if you want to enter the house" "Ok" endif ;if you've got the key from Socucius Ergalla but left it or sold it to someone if ( OnActivate == 1 ) If ( GetJournalIndex AAASEYDANEENHOUSEDOORSCRIPT == 10 ) endif if ( key_SeydaNeen_House == 0 ) return MessageBox "You don't have the key with you. Get it back then try to enter the house" "Ok" endif ;Open's the door if ( state == 1 ) activate set state to 2 endif endif end ------------------------------------------- My suggestion is it is probably due to that the GetJournalIndex has 2 == signs and not just 1 = sign. Edited January 5, 2014 by Bowzark715 Link to comment Share on other sites More sharing options...
Spirithawke Posted January 15, 2014 Share Posted January 15, 2014 Try this: Begin AAASEYDANEENHOUSEDOORSCRIPT If ( OnActivate == 1 ) If ( player->GetItemCount "key_SeydaNeen_House" == 1 ) Activate Return Else If ( GetJournalIndex "AAASEYDANEENHOUSEDOORSCRIPT" == 10 ) MessageBox "You don't have the key with you. Get it back then try to enter the house" "Ok" Return EndIf MessageBox "You have to talk to Socucius Ergalla if you want to enter the house" "Ok" EndIf EndIf End I also recommend changing the name of your journal entry to NOT be the same as your script name, perhaps just name it AAASEYDANEENHOUSEDOORJ Link to comment Share on other sites More sharing options...
Recommended Posts