dunmermaiden Posted June 4, 2009 Share Posted June 4, 2009 I am making a companion out of Farwill Indarys I have scripted him to disable once the player has done the rescue and I duplicated him and made his id aadiaFarwillIndarys Now this is my Quest Script to check if the player meets the requirements or not, I've tried to save it but my cs just refuses, don't know why. It's being a &*%##* . Here's the script. Scriptname DianneFarwillQuest begin GameMode ;check if the player meets the requirements If ( GetStageDone MS13 100 == 1.0 ) elseif ( GetStageDone MS13 105 == 1.0 ) Enable aadiaFarwillIndarys elseif If FarwillIndarys IsDead Disable aadiaFarwillIndarysQuest Disable aadiaFarwillIndarys Disable aadiaFarwillHorse endif endif end Thanks for any help in advance. :) :thanks: Link to comment Share on other sites More sharing options...
AzirAphale001 Posted June 4, 2009 Share Posted June 4, 2009 I don't know much about scripting but I think you only need one EndIf. Link to comment Share on other sites More sharing options...
jefe323 Posted June 4, 2009 Share Posted June 4, 2009 I am making a companion out of Farwill Indarys I have scripted him to disable once the player has done the rescue and I duplicated him and made his id aadiaFarwillIndarys Now this is my Quest Script to check if the player meets the requirements or not, I've tried to save it but my cs just refuses, don't know why. It's being a &*%##* . Here's the script. Scriptname DianneFarwillQuest begin GameMode ;check if the player meets the requirements If ( GetStageDone MS13 100 == 1.0 ) elseif ( GetStageDone MS13 105 == 1.0 ) Enable aadiaFarwillIndarys elseif If FarwillIndarys IsDead Disable aadiaFarwillIndarysQuest Disable aadiaFarwillIndarys Disable aadiaFarwillHorse endif endif end Thanks for any help in advance. :) :thanks: You are using enable and disable wrong. It should look something like this: aadiaFarwillHorse.disable Also, like AzirAphale said, you only need one endif for a if-elseif block Link to comment Share on other sites More sharing options...
XJDHDR Posted June 5, 2009 Share Posted June 5, 2009 Let me rewrite your script into a CS-friendly text. Scriptname DianneFarwillQuest begin GameMode ;check if the player meets the requirements If GetStageDone MS13 100 == 1.0 aadiaFarwillIndarys.Enable elseif GetStageDone MS13 105 == 1.0 If FarwillIndarys.GetDead StopQuest aadiaFarwillIndarysQuest aadiaFarwillIndarys.Disable aadiaFarwillHorse.Disable EndIf endif end I also recommend you read this wiki and get to know how to use script commands. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.