(When the quest is advanced, it will remove all of the bug jars from your inventory and then enable a collection of disabled bugjars on the altar, but thats neither here nor there).
So I'm making this script, and it won't compile at all. Here is the script:
Scriptname AltarActivator extends ObjectReference Quest Property TBJ01 Auto MiscObject Property Butterfly Auto MiscObject Property Bee Auto MiscObject Property DragonFly Auto MiscObject Property Torchbug Auto MiscObject Property Moth Auto event OnActivate() if (Game.Getplayer().getItemCount(Bee)==1 AND Game.Getplayer().getItemCount(Butterfly)==1 AND Game.Getplayer().getItemCount(Dragonfly)==1 ANDGame.Getplayer().getItemCount(Moth)==1 AND Game.Getplayer().getItemCount(Torchbug)==1) TBJ01.SetStage(60) endifendEvent
and here is my error code.
ompiling "AltarActivator"...
c:\program files\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\AltarActivator.psc(16,45): missing RPAREN at 'AND'
c:\program files\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\AltarActivator.psc(16,53): required (...)+ loop did not match anything at input '.'
c:\program files\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\AltarActivator.psc(16,93): required (...)+ loop did not match anything at input 'AND'
c:\program files\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\AltarActivator.psc(16,101): required (...)+ loop did not match anything at input '.'
c:\program files\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\AltarActivator.psc(16,93): function variable Game already defined in the same scope
c:\program files\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\AltarActivator.psc(16,141): required (...)+ loop did not match anything at input 'AND'
c:\program files\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\AltarActivator.psc(17,39): required (...)+ loop did not match anything at input 'AND'
c:\program files\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\AltarActivator.psc(17,47): required (...)+ loop did not match anything at input '.'
c:\program files\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\AltarActivator.psc(17,39): function variable Game already defined in the same scope
c:\program files\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\AltarActivator.psc(17,85): required (...)+ loop did not match anything at input ')'
No output generated for AltarActivator, compilation failed.
I can't decipher my error messages, can someone help me?
