Jump to content

NV GECK not sving Scripts I make


ZombieUK

Recommended Posts

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 Follow

short Stay

short Activated

short Button

short IsSneak

ref self

 

Begin OnLoad

 

set self to GetSelf

this 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 1

not repeat

EndIf

 

elseif self.GetUnconscious == 1

Unconcious ( Essentials )

ShowMessage LutherUnconscious

 

elseif self.GetDead == 1

 

Activate

 

 

Endif

End

 

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 0

If 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 by ZombieUK
Link to comment
Share on other sites

Begin OnLoad

set self to GetSelf
this on.
SetIgnoreFriendlyHits 1

yes

End

What's "this on" and "yes"? ^^

 

Also

Begin 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
End

is somehow strange. Are this remarks? You should set an ; before. Then it will be ignored.

Edited by tortured Tomato
Link to comment
Share on other sites

  • Recently Browsing   0 members

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