Jump to content

Basic questions about Sexout scripting


Dielos

Recommended Posts

Posted

Hello, I'm trying to script something and learning on the way. I know the very very basics and had some experience a year or two ago. I have some very basic questions that maybe some kind soul wants to answer...

 

I basically want to catch all PC rape offenders and give them a token. So my questions are the following:

 

 

1) How do I catch the rape act (sometimes there are two offenders) and from where best? (player attached script or from within a sexout script)

 

2) I can use CBItem to give the token once I have the ID. But when I first tried to mod sexout one year ago, this command didn't exist and sometimes several tokens were given instead of one. I guess this doesn't happen with this command? (It could also have been my scripting idiocy...) [Forget, already answered...]

 

3) This is more FNV than sexout, but if I give a token to an unnamed random spawned NPC, and leave the cell, walk to the other side of the Mojave, and return 5 days later, does he still retain anything I gave him by script? This NPC's are deleted when you leave and respawned when you return, but I'm not sure that exactly the same NPC is respawned... I guess named NPC's do retain stuff?

 

 

I know these questions are probably already answered, but there are 333 pages as of now on the SexoutNG thread, and no search this thread button... The search button let's me search only the whole downloads thread, and spits too much unrelated info...

 

Thanks for any help!

Posted

Hello' date=' I'm trying to script something and learning on the way. I know the very very basics and had some experience a year or two ago. I have some very basic questions that maybe some kind soul wants to answer...

 

I basically want to catch all PC rape offenders and give them a token. So my questions are the following:

 

 

1) How do I catch the rape act (sometimes there are two offenders) and from where best? (player attached script or from within a sexout script)

 

2) I can use CBItem to give the token once I have the ID. But when I first tried to mod sexout one year ago, this command didn't exist and sometimes several tokens were given instead of one. I guess this doesn't happen with this command? (It could also have been my scripting idiocy...) [Forget, already answered...']

 

3) This is more FNV than sexout, but if I give a token to an unnamed random spawned NPC, and leave the cell, walk to the other side of the Mojave, and return 5 days later, does he still retain anything I gave him by script? This NPC's are deleted when you leave and respawned when you return, but I'm not sure that exactly the same NPC is respawned... I guess named NPC's do retain stuff?

 

 

I know these questions are probably already answered, but there are 333 pages as of now on the SexoutNG thread, and no search this thread button... The search button let's me search only the whole downloads thread, and spits too much unrelated info...

 

Thanks for any help!

To identify rape have alook at the SexHappening Script in SCR it uses the SexoutRaper/Rapee Tokens to pick who is who, it's based on the Sexout Notify script.

Posted

Thanks Halstrom,

 

I might be looking in the wrong place, because I can't find it. I couldn't find any reference to SexHappening inside SexoutCommonResources.esm. Sorry for my blindness...

 

Anyway, might this work at all?

set iAV to Player.GetAV Variable04
if (0 != (LogicalAnd iAV SexoutNG.FlagInUse))
if (0 != Player.GetItemCount 00SexoutRapee) set SexoutNG.CBItemM to TokenRaper
endif

 

Something like this inside a quest script loop would theoretically detect sex and rape, and hand out the token to the offender after the act. Am I way off? What worries me is that, as it would be inside a loop, it might be calling the callback every frame and probably giving a lot of tokens after the act...

 

 

[EDIT]: Got it to work... The code running is now the following:

scn 00SexoutVengeance

ref iAV

Begin GameMode

set iAV to Player.GetAV Variable04
if (0 != (LogicalAnd iAV SexoutNG.FlagInUse))
if (0 != Player.GetItemCount 00SexoutRapee)
	set SexoutNG.CBItemA to SexoutRaperTarget
	set SexoutNG.CBDialogA to SexoutVStart
endif
endif

End

 

The dialog starts most of the time and tokens are given, but I'm not too sure to whom or how many are given per act. Is there anyway to check who is actor A, B or C???

Posted

Thanks Halstrom' date='

 

I might be looking in the wrong place, because I can't find it. I couldn't find any reference to SexHappening inside SexoutCommonResources.esm. Sorry for my blindness...

 

Anyway, might this work at all?

set iAV to Player.GetAV Variable04
if (0 != (LogicalAnd iAV SexoutNG.FlagInUse))
if (0 != Player.GetItemCount 00SexoutRapee) set SexoutNG.CBItemM to TokenRaper
endif

 

Something like this inside a quest script loop would theoretically detect sex and rape, and hand out the token to the offender after the act. Am I way off? What worries me is that, as it would be inside a loop, it might be calling the callback every frame and probably giving a lot of tokens after the act...

 

 

[EDIT']: Got it to work... The code running is now the following:

scn 00SexoutVengeance

ref iAV

Begin GameMode

set iAV to Player.GetAV Variable04
if (0 != (LogicalAnd iAV SexoutNG.FlagInUse))
if (0 != Player.GetItemCount 00SexoutRapee)
	set SexoutNG.CBItemA to SexoutRaperTarget
	set SexoutNG.CBDialogA to SexoutVStart
endif
endif

End

 

The dialog starts most of the time and tokens are given, but I'm not too sure to whom or how many are given per act. Is there anyway to check who is actor A, B or C???

 

um sorry it might be called something else, that maybe the Pregnancy one that does the same thing, it's an effect spell script called when sex occurs, I think it has a 2 at the beginning I haven't got GECK reinstalled yet to open anything, maybe called SexoutS2SemenAdded?

Posted

Thanks Halstrom,

 

I found the script you mentioned, under the Pregnancy master. But it seems to work with the code I posted earlier. The problem I'm having there is that the dialogue I'm using for test, doesn't always show. My guess is because maybe actor A is not always the attacker, and I haven't found a way to check who is who...

 

In the new SexoutNG coding way, using the CBItem and CBDialogue commands works well, but who is A and who is B??? It says in the thread that A is always the giver, so in this case it would always be the raper, or not???

 

If anybody can shed me some light in this...

 

 

Also, I'm using the combat dialogue option "Death" to detect when a player kills a raper. It works well, but I haven't seen this way commented anywhere in the web and I fear it will have a reason... iskiller doesn't seem to work here, but strangely, until now the code only kicked in when the player made the killing (might be luck).

Posted

Yes A is always the raper. If C is present, then C is also a raper. I think there is a single 3way animation that is an exception to that rule, where A would be the raper and B and C are both victims, but I guess that depends entirely on your perspective.

Posted

Thanks prideslayer...

 

One more question... I see there is a FromList named SexoutSLActorDataRapedPlayer. Is it being filled right now? I didn't see any other mention to it by searching through the Geck search function to it, other than the FormList itself...

 

On the SexoutNG Beta thread, second post under "Later", I found this:

 

- Maintain formlists of all actors that have ever raped the player, been raped by the player, or had sex with the player.

 

It's not yet implemented, right, the FormList is just a placeholder?

Posted

Thanks!

 

But no hurry... Knowing that it is there, I can let it fill now myself. It will probably make it easier to detect player kills with a simple loop inside that FormList!

 

And thanks for the great work you're doing here!!!

Posted

No, don't fill it yourself. That falls in the category of "using internal sexout things that are not part of the published API" which is a terrible idea. As soon as I *do* start filling it, the two mods are going to be fighting over the contents.

 

If you want something *now*, make your own formlist in your mod, and fill that instead.

Posted

Ok, I will make my own FormList. Will be easy to change once you do fill yours, as it will be a simple name change.

 

Thanks again!

Posted

Sounds good.

 

When I do start filling it, you could makea 'one shot' update thing to copy any entries in yours to the one in sexout. Note that this isn't done in sexout because I might not end up using a formlist at all. If I can get array support in the extender sometime soon, I'll be using that instead, so that I can keep track of all the rapists and victims in the game rather than only for the player.

 

In that case, the extender will get some copy to/from formlist/array functions.

Posted

Ok. The FormList will start empty anyways and be filled during game time. Should still be easy to change, be it formlist or array.

 

Sexout is looking better everyday!

Archived

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

  • Recently Browsing   0 members

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