Jump to content

Scripting Woes ( Possible Spoiler )


Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...