Jump to content

PLEASE help, Simple GetEquipped Script Wont Compile


vanlore

Recommended Posts

This is my first script, I just want this effect script to get what item I'm wearing in slot 2 and Un Equip the item. But it won't compile.

 

For example, if you had a Monk class in fallout, they can't wear armor that has a high DR, so this script would be the part that removes what you are wearing.

 

I figured I'd leave the condition out and let people pick the condititon to apply this script in Actor Effects ?

ScriptName AA

ref rClothes

begin ScriptEffectStart

set rClothes to PlayerREF.GetEquippedObject  2

Player.UnEquipItem rClothes 0 0

End

Below is the messages I get when I try to save the script.

Warning Script 'AA', line 7:
Unkown variable or function 'GetEquippedObject'.

Warning Script 'AA', line 7:
Syntax Error. Missing expression in set command.

I'm using GECK
Fallout 3 GOTY Edition with Unoffical Patch
Fallout Script Extender version: v1.2 b2
FOSE Lanucher, console says GetFOSEversion is 1

 

I'd be grateful if someone could help me with this.

 

Link to comment
Share on other sites

vanlore - Hello!

Are you running GECK in FOSE mode?

Normal GECK can't compile FOSE scripts as it does not recognise the new commands, you have to run GECK via FOSE.

Easiest way is to make an FOSE/GECK shortcut.

Go to your Fallout 3 folder were there should be a file called:

fose_loader.exe

Right click, drag it & drop, selecting the option "Create Shortcut Here".

Rename that to something like FOSE GECK so you always know what it's for.

Now right click on it & select Properties & then the "Shortcut" tab.

Where it says "Target" there will be an address, the location of your Fallout folder FOSE files like:

"C:\Program Files (x86)\Bethesda Softworks\Fallout 3\fose_loader.exe"

With the quotation marks.

You only want to add a bit to the very end of the address, this:

-editor"

Including the quotation mark.

So at the end of the address it reads:

fose_loader.exe" -editor"

& the whole line is like this (depending on your folder location obviously):

"C:\Program Files (x86)\Bethesda Softworks\Fallout 3\fose_loader.exe" -editor"

Including the quotation marks.

Once that's done, double clicking on it will launch FOSE compatible GECK where your script will now compile. :)

Hope this helps!

Prensa

Link to comment
Share on other sites

vanlore - Hello!

 

Once that's done, double clicking on it will launch FOSE compatible GECK where your script will now compile. :smile:

 

Hope this helps!

 

Prensa

Prensa, thank you so much, that is exactly what I needed. :laugh:

 

I had watched 2 tutorials on FOSE and none of them mentionted that part. I assume it's in the small print on the fose site.

 

Again, thank you.

Edited by vanlore
Link to comment
Share on other sites

vanlore - Hello!

 

"Prensa, thank you so much, that is exactly what I needed."

 

Happy to have helped!

 

"I had watched 2 tutorials on FOSE and none of them mentionted that part. I assume it's in the small print on the fose site."

 

Way back when I worked on my first script in Fallout 3 it had FOSE commands in it & I had the exact same problem before figuring out the FOSE/GECK thing. :)

 

Best of luck with your mod!

 

Prensa

Link to comment
Share on other sites

  • Recently Browsing   0 members

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