Jump to content

Can't save scripts made in the GECK?!


RetroNutcase

Recommended Posts

  • Replies 82
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...

so what's wrong with this one. I can hardly find any errors. But it doesn't save either.

 

 

_______________________________________________________________________________________________________________________

 

scn GhostNightvision

 

short DoOnce

short buttonToggle

short buttonPressed

 

begin onEquip

set DoOnce to 1

end

 

begin onUnEquip

player.RemoveSpell CatNightVision

set buttonPressed to 0

set DoOnce to 0

end

 

Begin GameMode

if DoOnce == 1

if IsKeyPressed 48 != buttonToggle

set buttonToggle to IsKeyPressed 48

if buttonToggle && buttonPressed == 0 ; Button pressed

player.AddSpellNS CatNightVision

set buttonPressed to 1

elseif buttonToggle && buttonPressed == 1 ; Button released

player.RemoveSpell CatNightVision

set buttonPressed to 0

endif

endif

endif

End

 

________________________________________________________________________________________________________

 

can anyone help me? thanks very much!

Link to comment
Share on other sites

  • 4 weeks later...

I really hope that Bethesda releases an updated GECK. Like several others, I wanted to modify a Dead Money script, but GECK would fail to do anything. Literally, all I did was to delete a couple of lines. I ran the GECK power-up, and it was complaining about lines that weren't touched by me.

 

It will be nice if we get a tool that will work with the baseline data files. /sigh

 

Thanks, all, for the tips.

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

I've a problem with this script. IF YOU WANT TO USE THIS SCRIPT IN A MOD YOU WILL HAVE TO GIVE ME CREDIT FOR THE WORK :excl:

If anyone can help me, please. This is the script:

 

 

ScriptName SteyrAUGA3ModificationScript

;----------------------------Variables section----------------------------------- -----------------

short WpnBefore
short WpnAfter
short button
short Silencer
short Eotech
short Laser
short Scope
short Shotgun
short GrenadeLauncher
short Bayonet
short used
short clear
short AUGA3Equipped
short AUGA3CurrentCondition

;----------------------------Guide section-------------------------------------- --------------

;AUG-A3 -> 1
;AUG-A3Eo -> 2
;AUG-A3EoT -> 3
;AUG-A3Si ->4
;AUG-A3SiEo -> 5
;AUG-A3SiEoT -> 6
;AUG-A3Sc -> 7
;AUG-A3ScSi ->8
;AUG-A3 -> 9
;AUG-A3 -> 10
;AUG-A3 -> 11
;AUG-A3 -> 12


;----------------------------Starting section------------------------------------- ---------------


Begin OnEquip
ShowMessage 0AUGA3ModificationMenu
set used to 1
player.unequipitem 0SteyrAUgA3CustomizationTool
End

Begin GameMode
if used == 1

	;----------------------------Button section-------------------------------------- --------------

	set button to GetButtonPressed
	if button == -1
		Return
	elseif button == 0
		set Silencer to 1
		set Eotech to 0
		set Laser to 0
		set Scope to 0
		set Shotgun to 0
		set GrenadeLauncher to 0
		set Bayonet to 0
		set clear to 0
	elseif button == 1
		set Silencer to 0
		set Eotech to 1
		set Laser to 0
		set Scope to 0
		set Shotgun to 0
		set GrenadeLauncher to 0
		set Bayonet to 0
		set clear to 0
	elseif button == 2
		set Silencer to 0
		set Eotech to 0
		set Laser to 1
		set Scope to 0
		set Shotgun to 0
		set GrenadeLauncher to 0
		set Bayonet to 0
		set clear to 0
	elseif button == 3
		set Silencer to 0
		set Eotech to 0
		set Laser to 0
		set Scope to 1
		set Shotgun to 0
		set GrenadeLauncher to 0
		set Bayonet to 0
		set clear to 0
	elseif button == 4
		set Silencer to 0
		set Eotech to 0
		set Laser to 0
		set Scope to 0
		set Shotgun to 0
		set GrenadeLauncher to 0
		set Bayonet to 0
		set clear to 1
	endif

	;----------------------------Weapon before section------------------------------- ---------------------

	if player.GetEquipped 0AUGA3 == 1
		set WpnBefore to 1
		set AUGA3Equipped to 1
	elseif player.GetEquipped 0AUGA3EO == 1
		set WpnBefore to 2
		set AUGA3Equipped to 1
	elseif player.GetEquipped 0AUGA3EoT == 1
		set WpnBefore to 3
		set AUGA3Equipped to 1
	elseif player.GetEquipped 0AUGA3Si == 1
		set WpnBefore to 4
		set AUGA3Equipped to 1
	elseif player.GetEquipped 0AUGA3SiEo == 1
		set WpnBefore to 5
		set AUGA3Equipped to 1
	elseif player.GetEquipped 0AUGA3SiEoT == 1
		set WpnBefore to 6
		set AUGA3Equipped to 1
	elseif player.GetEquipped 0AUGA3Sc == 1
		set WpnBefore to 7
		set AUGA3Equipped to 1
	elseif player.GetEquipped 0AUGA3ScSi == 1
		set WpnBefore to 8
		set AUGA3Equipped to 1
	endif
	;----------------------------Condition section----------------------------------- -----------------

	set AUGA3CurrentCondition to player.GetWeaponHealthPerc

	;----------------------------Weapon after section-------------------------------- --------------------

	if WpnBefore == 1
		if Silencer == 1 && Eotech == 0 && Laser == 0 && Scope == 0 && Shotgun == 0 &&  GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 4
		elseif Silencer == 0 && Eotech == 1 && Laser == 0 && Scope == 0 && Shotgun == 0  && GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 2
		elseif Silencer == 0 && Eotech == 0 && Laser == 1 && Scope == 0 && Shotgun == 0  && GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 3
		elseif Silencer == 0 && Eotech == 0 && Laser == 0 && Scope == 1 && Shotgun == 0  && GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 7
		endif

	elseif WpnBefore == 2
		if Silencer == 1 && Eotech == 0 && Laser == 0 && Scope == 0 && Shotgun == 0 &&  GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 5
		elseif Silencer == 0 && Eotech == 1 && Laser == 0 && Scope == 0 && Shotgun == 0  && GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 1
		elseif Silencer == 0 && Eotech == 0 && Laser == 1 && Scope == 0 && Shotgun == 0  && GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 3
		elseif Silencer == 0 && Eotech == 0 && Laser == 0 && Scope == 1 && Shotgun == 0  && GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 7
		endif

	elseif WpnBefore == 3
		if Silencer == 1 && Eotech == 0 && Laser == 0 && Scope == 0 && Shotgun == 0 &&  GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 6
		elseif Silencer == 0 && Eotech == 1 && Laser == 0 && Scope == 0 && Shotgun == 0  && GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 1
		elseif Silencer == 0 && Eotech == 0 && Laser == 1 && Scope == 0 && Shotgun == 0  && GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 2
		elseif Silencer == 0 && Eotech == 0 && Laser == 0 && Scope == 1 && Shotgun == 0  && GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 7
		endif

	elseif WpnBefore == 4
		if Silencer == 1 && Eotech == 0 && Laser == 0 && Scope == 0 && Shotgun == 0 &&  GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 1
		elseif Silencer == 0 && Eotech == 1 && Laser == 0 && Scope == 0 && Shotgun == 0  && GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 5
		elseif Silencer == 0 && Eotech == 0 && Laser == 1 && Scope == 0 && Shotgun == 0  && GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 6
		elseif Silencer == 0 && Eotech == 0 && Laser == 0 && Scope == 1 && Shotgun == 0  && GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 8
		endif

	elseif WpnBefore == 5
		if Silencer == 1 && Eotech == 0 && Laser == 0 && Scope == 0 && Shotgun == 0 &&  GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 2
		elseif Silencer == 0 && Eotech == 1 && Laser == 0 && Scope == 0 && Shotgun == 0  && GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 4
		elseif Silencer == 0 && Eotech == 0 && Laser == 1 && Scope == 0 && Shotgun == 0  && GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 6
		elseif Silencer == 0 && Eotech == 0 && Laser == 0 && Scope == 1 && Shotgun == 0  && GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 8
		endif

	elseif WpnBefore == 6
		if Silencer == 1 && Eotech == 0 && Laser == 0 && Scope == 0 && Shotgun == 0 &&  GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 3
		elseif Silencer == 0 && Eotech == 1 && Laser == 0 && Scope == 0 && Shotgun == 0  && GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 4
		elseif Silencer == 0 && Eotech == 0 && Laser == 1 && Scope == 0 && Shotgun == 0  && GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 5
		elseif Silencer == 0 && Eotech == 0 && Laser == 0 && Scope == 1 && Shotgun == 0  && GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 8
		endif

	elseif WpnBefore == 7
		if Silencer == 1 && Eotech == 0 && Laser == 0 && Scope == 0 && Shotgun == 0 &&  GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 8
		elseif Silencer == 0 && Eote1 &&ch ==  Laser == 0 && Scope == 0 && Shotgun == 0  && GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 2
		elseif Silencer == 0 && Eotech == 0 && Laser == 1 && Scope == 0 && Shotgun == 0  && GrenadeLauncher == 0 && Bayonet == 0 && AUGA3Equipped == 1
			set WpnAfter to 3
		endif

	endif

	if clear == 1
		set WpnAfter to 1
	endif

	;----------------------------Uneqipp section------------------------------------ ----------------

	if WpnBefore == 1
		player.UnEquipItem 0AUGA3
		player.RemoveItem 0AUGA3 1 1
	elseif WpnBefore == 2
		player.UnEquipItem 0AUGA3EO
		player.RemoveItem 0AUGA3EO 1 1
	elseif WpnBefore == 3
		player.UnEquipItem 0AUGA3EoT
		player.RemoveItem 0AUGA3EoT 1 1
	elseif WpnBefore == 4
		player.UnEquipItem 0AUGA3Si
		player.RemoveItem 0AUGA3Si 1 1
	elseif WpnBefore == 5
		player.UnEquipItem 0AUGA3SiEo
		player.RemoveItem 0AUGA3SiEo 1 1
	elseif WpnBefore == 6
		player.UnEquipItem 0AUGA3SiEoT
		player.RemoveItem 0AUGA3SiEoT 1 1
	elseif WpnBefore == 7
		player.UnEquipItem 0AUGA3Sc
		player.RemoveItem 0AUGA3Sc 1 1
	elseif WpnBefore == 8
		player.UnEquipItem 0AUGA3ScSi
		player.RemoveItem 0AUGA3ScSi 1 1
	endif

	;----------------------------Add weapon section--------------------------------- -------------------

	if WpnAfter == 1
		player.AddItem 0AUGA3 1 1
		player.equipitem 0AUGA3
	elseif WpnAfter == 2
		player.AddItem 0AUGA3EO 1 1
		player.equipitem 0AUGA3EO
	elseif WpnAfter == 3
		player.AddItem 0AUGA3EoT 1 1
		player.equipitem 0AUGA3EoT
	elseif WpnAfter == 4
		player.AddItem 0AUGA3Si 1 1
		player.equipitem 0AUGA3Si
	elseif WpnAfter == 5
		player.AddItem 0AUGA3SiEo 1 1
		player.equipitem 0AUGA3SiEo
	elseif WpnAfter == 6
		player.AddItem 0AUGA3SiEoT 1 1
		player.equipitem 0AUGA3SiEoT
	elseif WpnAfter == 7
		player.AddItem 0AUGA3Sc 1 1
		player.equipitem 0AUGA3Sc
	elseif WpnAfter == 8
		player.AddItem 0AUGA3ScSi 1 1
		player.equipitem 0AUGA3ScSi
	endif

	;----------------------------Set condition section-------------------------------- --------------------

	player.SetWeaponHealthPerc AUGA3CurrentCondition
endif
end

 

Sorry for the long post.

>> I've used the cipscis validator, and it sais its good, but GECK dont let me save it. Help please.

Edited by FrankFamily
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...