Jump to content

Script not working as intended


Razakel

Recommended Posts

Can anyone tell me what's wrong with this script?

 

scn 1aDarkLairSapphireScript

Begin OnAdd Player

SetStage 1aDarkLairQuest4 30
DarkLairDeadDropBottle3REF.enable

If getstage TG11Heist > 140 && < 199
DarkLairDeadDropBottle3REF.disable
DarkLairDeadDropBottle3aREF.enable
endif
end

 

If the condition for the TG quest isn't met then the script works fine, the quest stage advances and the first REF is enabled. If the condition for the TG quest is met, then nothing happens.

Link to comment
Share on other sites

It is just a minor syntax thing; you can't write two conditions together like that.

 

Rather than: If getstage TG11Heist > 140 && < 199

 

It should be: If getstage TG11Heist > 140 && TG11Heist < 199

Link to comment
Share on other sites

  • Recently Browsing   0 members

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