Jump to content

Why does the GECK refuse to save my script


Alehazar

Recommended Posts

Whenever I write a new script in the GECK I can click the save button, but it doesn't do anything.

When I want to close the script editor, I'm asked whether I want to save my script.

Yes ,results in nothing; when I want to close the script editor, it repeats its question whether or not I wish to save my script -it becomes a loop.

No, the editor closes and my script is gone.

 

I downloaded the latest version of the GECK and my game is autopatched by Steam.

 

What is wrong?

Link to comment
Share on other sites

The script has an error. Download the GECK 1.4 PowerUp and when you save it will give an error message when you try to save.

Post that error message here, or even better, could you post the script you're trying to write? I might be able to help.

 

PowerUp does what it is required; telling me something about the script is not right.

I'm trying to add Waterbreathing to the Spacesuit you can acquire at the REPCONN Testsite.

But only if the Spacesuit if equipped with the Spacehelmet that can be foudn at the same location.

Of course the effect has to be removed as soon as you take off the helmet -or the suit for that matter.

This is what I've come with:

 

SCN WetSuitScript

 

int iEquip

 

Begin OnEquip

if Player.GetEquipped ArmorNVSpaceSuit == 1 && Player.GetEquipped HelmetNVSpaceSuit == 0

showmessage WetSuitMsg1

elseif Player.GetEquipped ArmorNVSpaceSuit == 1 && Player.GetEquipped HelmetNVSpaceSuit == 1

Player.Addspell VMS15WaterBreathingActual

set iEquip to 1

endif

endif

end

; Begin OnUnequip

; Player.Removespell VMS15WaterBreathingActual

Begin GameMode

 

if iEquip == 1 && Player.GetEquipped HelmetNVSpaceSuit == 0

Player.Removespell VMS15WaterBreathingActual

endif

end

 

WetSuitMsg1, is not a messagebox, but should briefly be displayed at the upper left corner of the screen, stating that for the waterbreathing effect you need to also equip the space helmet.

 

The script was indeed saved, but whether it will work.....

 

Kind regards,

 

Alehazar

Link to comment
Share on other sites

Wouldn't it just be a lot easier to add the water breathing to the helmet as an effect?

 

Simply open up the HelmetNVSpaceSuit in the GECK, and select VMS15WaterBreathing in the "Object Effect" selector.

 

Thats it, you're done without running another script every few seconds.

 

 

EDIT: I missed the part about requiring both parts, teaches me to pay more attention before responding.

 

I assume you are attaching that script to the spacesuit itself or the helmet (my first choice)?

Edited by Sunnie
Link to comment
Share on other sites

Wouldn't it just be a lot easier to add the water breathing to the helmet as an effect?

 

Simply open up the HelmetNVSpaceSuit in the GECK, and select VMS15WaterBreathing in the "Object Effect" selector.

 

Thats it, you're done without running another script every few seconds.

 

 

EDIT: I missed the part about requiring both parts, teaches me to pay more attention before responding.

 

I assume you are attaching that script to the spacesuit itself or the helmet (my first choice)?

 

I want to attach the script to the suit; without the helmet it is simply a nice outfit that adds some solid rad resistance. With the helmet it becomes the equivalent of a rad-resistant wetsuit.

The one thing that sparked the idea, was the set of airtanks on the back of the Spacesuit.

If I knew more about scripting I could've tried to add somekind of time limit, as with regular airtanks -they run out of oxygen.

Though I'd be happy just to add the waterbreathing when one wears the two pieces of the suit -without creating any strange side effects that could compromise the game integrity, i.e. CTD.

Link to comment
Share on other sites

I have a script for this downloaded mod by jdfansince95. Which is a great mod but it seems to be an error in a script that I am unable to fix. Here is the script...

The error is pointing to line 108 basically stating that label script command not found. Im sure this is very simple but it escapes me. Thanks in advance.

 

scn BoKnifeSupplyQuestScript

 

short buttonpressed

short awaitinginput

short usingsupplies

short campfiresupplies

short tripwires

float survivalskill

float weaponhealth

float modhealthvalue

ref equippedweapon

int campfireskill

int fishingstringskill

int randomdrawnumber

ref fishingitem

int fishitemnumber

short count

short fishingstringgone

 

begin menumode

 

if usingsupplies == 1

showmessage BoSupplyMenu

set awaitinginput to 1

set usingsupplies to 0

set campfireskill to 75

set fishingstringskill to 30

endif

 

if awaitinginput == 1

set buttonpressed to getbuttonpressed

if buttonpressed > -1

set awaitingInput to 0

if buttonpressed == 0

if fishingstringgone == 0

set count to 1

else

set count to 0

endif

showmessage BoKnifeSupplyCount tripwires campfiresupplies count

elseif buttonpressed == 1

if player.getItemCount BoKnifeTripwire == 0

if tripwires > 0

set tripwires to tripwires - 1

player.addItem BoKnifeTripwire 1 1

player.equipitem BoKnifeTripwire 0 1

else

showmessage BoKnifeTripwireSupplyEmpty

endif

else

showMessage BoKnifeTripwireExists

endif

elseif buttonpressed == 2

if player.getItemCount WeapBoKnifeCampfire == 0

if player.getactorvalue survival >= 75

if campfiresupplies > 0

set campfiresupplies to campfiresupplies - 1

player.addItem WeapBoKnifeCampfire 1 1

player.equipitem WeapBoKnifeCampfire 0 1

else

showmessage BoKnifeCampfireSupplyEmpty

endif

else

showMessage LowSurvivalSkill campfireskill

endif

else

showMessage BoKnifeCampfireSupplyExists

endif

elseif buttonpressed == 3

if player.getequipped BoTacticalKnife == 1

set survivalskill to player.getactorvalue survival

set weaponhealth to player.getWeaponHealthPerc

if survivalskill >= 100 && weaponhealth < 98

player.SetWeaponHealthPerc 98

showmessage SurvivalKnifeRepaired

elseif survivalskill >= 90 && weaponhealth < 90

player.SetWeaponHealthPerc 90

showmessage SurvivalKnifeRepaired

elseif survivalskill >= 80 && weaponhealth < 80

player.SetWeaponHealthPerc 80

showmessage SurvivalKnifeRepaired

elseif weaponhealth < 50

player.SetWeaponHealthPerc 50

showmessage SurvivalKnifeRepaired

else

showMessage SurvivalKnifeRepairNotNeeded

endif

else

showmessage SurvialKnifeNotEquipped

endif

elseif buttonpressed == 4

if fishingstringgone == 0

if isPlayerInRegion FishingArea == 1

set survivalskill to player.getactorvalue survival

if survivalskill > 90

set count to 0

elseif survivalskill > 50

set count to 1

else

set count to 2

endif

label 0

if count < 3

set randomdrawnumber to getRandomPercent

if randomdrawnumber < 20

set randomdrawnumber to getRandomPercent

set fishitemnumber to randomdrawnumber % 65

set fishingitem to listGetNthForm FishingItems fishitemnumber

player.additem fishingitem 1

else

player.additem fish 1

endif

set count to count + 1

goto 0

endif

set randomdrawnumber to getRandomPercent

if survivalskill > 90

if randomdrawnumber < 20

set fishingstringgone to 1

showMessage FishingStringBroke

endif

elseif survivalskill > 50

if randomdrawnumber < 30

set fishingstringgone to 1

showMessage FishingStringBroke

endif

else

if randomdrawnumber < 40

set fishingstringgone to 1

showMessage FishingStringBroke

endif

endif

else

showMessage CannotFishHere

endif

else

showMessage FishingStringBroken

endif

elseif buttonpressed == 5

if player.getItemCount SurgicalTubing >= 2

if player.getItemCount SpareParts >= 1

set tripwires to 4

player.removeItem SurgicalTubing 2

player.removeItem SpareParts 1

showMessage TripwireResupplied

else

showMessage LowScrapMetal

endif

else

showMessage LowSurgicalTubing

endif

elseif buttonpressed == 6

if player.getactorvalue survival >= 75

if player.getItemCount SurgicalTubing >= 1

set campfiresupplies to 4

player.removeItem CigarettePack 1

showMessage CampfireSuppliesResupplied

else

showMessage LowCigarettePack

endif

else

showMessage LowSurvivalSkill campfireskill

endif

elseif buttonpressed == 7

if player.getactorvalue survival >= 30

if player.getItemCount Fork01 >= 1

if player.getItemCount SurgicalTubing >= 1

set fishingstringgone to 0

player.removeItem SurgicalTubing 1

player.removeItem Fork01 1

showMessage FishingStringCreated

else

showMessage LowSurgicalTubing

endif

else

showMessage LowForks

endif

else

showMessage LowSurvivalSkill fishingstringskill

endif

endif

stopquest BoKnifeSupplyQuest

endif

endif

Link to comment
Share on other sites

  • Recently Browsing   0 members

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