Jump to content

This script compiles but won't save?


Recommended Posts

 

Actor Property PlayerREF Auto
Message Property ThisMsg Auto
Sound Property MySound Auto
ObjectReference Property MyRef Auto

auto state waiting
Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == PlayerRef

ThisMsg.show()
MySound.Play(MyRef)

GoToState("Done")
else
; Do nothing
endif

EndEvent

As said in title. I am modifying an existing script that I made - is that the problem?

Link to comment
Share on other sites

And this one I just made new.

EDIT: Fixed this one, properties error.

 

 

Misc Property FWood Auto
Misc Property Oiljug Auto
Misc Property RagAcc Auto
Message Property FireLit Auto
Message Property MoreWood Auto
Message Property Ragoil Auto
Message Property MoreItem Auto
Message Property NoItem Auto
Message Property Greet Auto

Event OnActivate(ObjectReference akActionRef)
Greet.show()

Int ItemA = Game.GetPlayer().GetItemCount(FWood)
Int ItemB = Game.GetPlayer().GetItemCount(Oiljug)
Int ItemC = Game.GetPlayer().GetItemCount(RagAcc)

If ItemA >= 3 && ItemB >= 1 || ItemA >= 3 && ItemC >= 1
FireLit.show()

ElseIf ItemA < 3
MoreWood.show()

ElseIf ItemA >= 3 && ItemB < 1 || ItemA >= 3 && ItemC < 1
Ragoil.show()

ElseIf ItemA < 3 && ItemB < 1 || ItemA < 3 && ItemC < 1
MoreItem.show()

ElseIf ItemA == 0 && ItemB == 0 && ItemC == 0
NoItem.show()

EndIf

EndEvent

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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