Jump to content

Learning Modding - Script Help Please


Elerneron

Recommended Posts

Posted

Okay, I'm trying to learn modding by making a plugin that initiates sex with a target by pressing the V key while they are targeted. I cannot save the script in GECK. I have the most recent NVSE and am using the NVSE Loader with -editor to open GECK. But it wont let me save the script. Trying to save it as a Quest.

 

scn SexoutSexkey

ref partnr

Begin GameMode

if IsKeyPressed 47
	set partnr to GetCrosshairRef
	if partnr.GetIsCreature
		set Sexout.A to partnr
		set Sexout.B to player
	elseif player.GetIsSex Female && partnr.GetIsSex Male
		set Sexout.A to partnr
		set Sexout.B to player
	elseif player.GetIsSex Female && partnr.GetIsSex Female
		set Sexout.A to player
		set Sexout.B to partner
	else
		set Sexout.A to player
		set Sexout.B to partnr
	endif
	partnr.CIOS SexoutBegin
endif

End

Posted

I suggest getting the Geck PowerUp. It enables error messages that actually tell you what the problem is with your script(s)' date=' so in this case you'd actually know you had a variable wrong.

[/quote']

 

Seconded. I still haven't tried the latest standalone one, but the NVSE plugin version works great.

Posted

Have you ever done something so stupid it makes you contemplate abandoning your internet personality and reinventing yourself; but then you realize that would mean changing it everywhere you inhabit online, and it would be a lot less trouble to just crawl in a hole and live on worms and moles for the rest of your life? I feel like an utter moron.

 

In any case, thank you very much.

Posted
Have you ever done something so stupid it makes you contemplate abandoning your internet personality and reinventing yourself; but then you realize that would mean changing it everywhere you inhabit online' date=' and it would be a lot less trouble to just crawl in a hole and live on worms and moles for the rest of your life? I feel like an utter moron.

 

In any case, thank you very much.[/quote']

LOL, don't let it worry you, everyones a moron at some point on the internetz, just thinkevrytime you see a moron online that's time their not out there sharing shopping centres and the road with you in Reality :)

Posted

Should have seen my first 3 or 4 edits here. I started out by 'fixing' legion tryout. Two files in three I uploaded were broken worse than before I "fixed" them, but I was so confident in what I was doing that I didn't even test any of them before torturing loogie by breaking his wonderful mod.. :)

Posted

Okay GECK is horribly under documented . . . or I am just horrible at finding the appropriate documentation. How do I attach my quest script to my quest? There is nothing in the drop down and the [...] just opens the script editor.

Posted

And another idiot mistake . . . what was I thinking trying to use the v key?!?! I guess that's what I get for never using VATS.

Posted

And another idiot mistake . . . what was I thinking trying to use the v key?!?! I guess that's what I get for never using VATS.

 

Haha.. :)

 

Something more to the right is probably best, like "I" or "O" or "P". Or something even less used, like "\".

 

Once you have a little practice, you'll see it's not TOO hard to prompt the user to press a key and save that, to get around the issue.

Posted

Okay, you have to press OK on the quest, then bring it back up for the script to show up? That . . . makes no sense. I see that GECK and I are going to be rivals at least . . . perhaps even frenimies!

Posted

Okay' date=' you have to press OK on the quest, then bring it back up for the script to show up? That . . . makes no sense. I see that GECK and I are going to be rivals at least . . . perhaps even frenimies!

[/quote']

 

Yep.

 

I usually do the following:

1. Create empty script for quest.

2. Create quest, give it a name and ID, close it.

3. Open quest, set 'start game enabled', assign script, etc.

4. Close quest.

5. Open script and start coding.

 

It's terrible.. but you get used to your life of servitude after a while. ;)

Posted

I suggest getting the Geck PowerUp. It enables error messages that actually tell you what the problem is with your script(s)' date=' so in this case you'd actually know you had a variable wrong.

[/quote']

 

Seconded. I still haven't tried the latest standalone one, but the NVSE plugin version works great.

 

On second thought, you cannot use NVSE with the standalone version, so I don't think it would be very useful to you...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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