I'm using this script to check if player has the required wood logs for a quest and I know it is way too long. I'm not sure about the syntax, guess I should use && but am not sure about how. It needs condensing. Can anybody do this for me please.
Script -
Actor property PlayerRef autoMiscObject Property Aspens autoMiscObject Property Pines autoMiscObject Property RWoods autoQuest property MyQuest autoEvent OnUpdate() if (PlayerRef.GetItemCount(Aspens) == 2) if (PlayerRef.GetItemCount(Pines) == 2) if (PlayerRef.GetItemCount(RWoods) == 2) MyQuest.SetStage(100) elseif (PlayerRef.GetItemCount(Aspens) != 2) elseif (PlayerRef.GetItemCount(Pines) != 2) elseif (PlayerRef.GetItemCount(RWoods) != 2) RegisterForSingleUpdate(3.0) Endif Endif EndifEndEvent
Thanks.
Edit: Even better would that the player gets a message every time a log is collected or dropped like in some quests that I don't remember their names.
Edit, edit: I realised it should be "RegisterForUpdate" not "RegisterForSingleUpdate".