ZombieUK Posted December 2, 2010 Share Posted December 2, 2010 (edited) Im trying to do a Companion mod as I want to But My GECK won let me Save any new Scripts, I have no Idea literally why not either know where to look for the Cause. This is my Script, Perhaps in there lies the cause. scn Luther001Script short Followshort Stayshort Activatedshort Buttonshort IsSneakref self Begin OnLoad set self to GetSelfthis on. SetIgnoreFriendlyHits 1 yes End Begin OnActivate If self.GetDead == 0 If IsActionRef Player == 1'talking' to it is player, proceed ShowMessage Luther01 Set Activated to 1not repeat EndIf elseif self.GetUnconscious == 1Unconcious ( Essentials ) ShowMessage LutherUnconscious elseif self.GetDead == 1 Activate EndifEnd Begin OnHit Player If Follow == 1 || Stay == 1 ShowMessage LutherHit Endif End Begin GameMode if GetPlayerTeammate == 0 SetPlayerTeammate 1 endif If Activated == 1 set Button to GetButtonPressed if Button > -1 set Activated to 0 if Button == 0 Set Follow to 1 Set Stay to 0 set Activated to 0 if Button == 0 Set Follow to 1 Set Stay to 0If IsInInterior == 0 LutherMapMarker.disable Endif evp set Activated to 0 elseif Button == 1 Set Stay to 1 Set Follow to 0 If IsInInterior == 0 LutherMapMarker.MoveTo player LutherMapMarker.enable Endif evp set Activated to 0 elseif Button == 2 If Follow == 1 OpenTeammateContainer else ShowMessage LutherNoFollow evp set Activated to 0 endif endif endif endif If Follow == 1 && self.GetUnconscious == 0 && self.GetDead == 0 If Player.IsSneaking == 1 && IsSneak == 0 Set IsSneak to 1 evp elseif Player.IsSneaking == 0 && IsSneak == 1 Set IsSneak to 0 evp endif If Self.GetDistance Player >= 5000 Self.MoveTo Player Endif Endif End Edited December 2, 2010 by ZombieUK Link to comment Share on other sites More sharing options...
phoneyLogic Posted December 2, 2010 Share Posted December 2, 2010 (edited) Begin OnLoad set self to GetSelf this on. SetIgnoreFriendlyHits 1 yes EndWhat's "this on" and "yes"? ^^ AlsoBegin OnActivate If self.GetDead == 0 If IsActionRef Player == 1 'talking' to it is player, proceed <<<<< this ShowMessage Luther01 Set Activated to 1 not repeat <<<<<<<<< this EndIf elseif self.GetUnconscious == 1 Unconcious ( Essentials ) <<<<<<<<<<<<<< this ShowMessage LutherUnconscious elseif self.GetDead == 1 Activate Endif Endis somehow strange. Are this remarks? You should set an ; before. Then it will be ignored. Edited December 3, 2010 by tortured Tomato Link to comment Share on other sites More sharing options...
Recommended Posts