So I'm stuck, again. Got two problems this time, same as before did searches on here and looked all over the wiki still not sure what to do. If anyone can take a look and tell me what I'm doing wrong this time, I'd be much obliged.
First problem: SOLVED
Scriptname aaSerStudyDifBoxScript extends QuestMessage Property aaSerStudyDifficultyCheck AutoQuest Property aaSerDenethsStudy01 AutoBook Property aaSerStudySpellTomeTeleport AutoInt Property Version Autoint InitEVENT OnInit() RegisterForUpdate(5)EndEVENTEVENT OnUpdate() if ( Init == 0 ) RegisterForUpdate(1) Init += 1 elseif ( Init == 1 ) Version = aaSerStudyDifficultyCheck.Show() if ( Version == 0 ) Debug.Notification("--Picked Free--") aaSerDenethsStudy01.SetStage(40) Game.GetPlayer().AddItem(aaSerStudySpellTomeTeleport, 1) Init += 1 elseif ( Version == 1 ) Debug.Notification("--Picked Purchase--") Init += 1 elseif ( Version == 2 ) Debug.Notification("--Picked Quest--") Init += 1 endifendifEndEVENTI'm guessing its the Book Property aaSerStudySpellTomeTeleport Auto bit thats wrong. I set it up like all my other Propertys, but I'm not actually sure if Book was the right option. The item I'm trying to give is a book so its what I went with.
Second problem: SOLVED
Scriptname aaSerStudyRecallScript extends activemagiceffect{Recalls the caster to Deneth's Study}ObjectReference Property aaSerStudyRecallMarker AutoObjectReference Property aaSerStudyMarkMarker AutoLocationRefType Property aaSerDenethExt AutoEvent OnEffectStart(Actor akTarget, Actor akCaster) if akCaster.IsInLocation(aaSerDenethExt) return else aaSerStudyMarkMarker.MoveTo(akCaster) akCaster.MoveTo(aaSerStudyRecallMarker) endifendEventThe example on the wiki is
; Is the box in the house location?if Box.IsInLocation(House) Debug.Trace("Box is in the house!")endIfThe goal of that the script will teleport someone to the marker in a special cell. And then theres a door with a script to teleport them back to the casting location. That all works but if they cast the spell in the cell they get stuck in there. That IsInLocation was my attempt to fix that.
Thanks for taking the time to look this over
-Mike
