Jump to content

[HELP] Simple scripting help to make Sex Slaves NPCs hate me (relationshiprank decrease)


Recommended Posts

Posted

So I used/edited/CK-SE-ported the old LE mod Sex Slaves for Vanilla Bandit Camps [originally in LE I needed to edit SSVBC because it was still dirty-edited from the original SS More Bandit Camps]. Anyway, I also edited/recompiled the relatively simple script included to match my animations tag list.

 

But I think I'd like to add a simple addition to make the sex slaves that are raped hate me afterwards (decrease relationshiprank to player to -4 Archnemesis). This is the script that plays when the rape option happens:

 

Spoiler

;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 1
Scriptname SexSlavesVanilla3 Extends TopicInfo Hidden

 

;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE

 

actor[] sexActors = new actor[2]
sexActors[0] = akSpeaker
sexActors[1] = Game.GetPlayer()

 

sslBaseAnimation[] anims = SexLab.GetAnimationsByTags(2, "Aggressive", "LeadIn", TRUE)

 

SexLab.StartSex(sexActors, anims, victim=akSpeaker, allowBed=false)


;END CODE
EndFunction
;END FRAGMENT

 

;END FRAGMENT CODE - Do not edit anything between this and the begin comment

 

SexLabFramework Property SexLab  Auto  
 

 

Any help is much appreciated.

Posted

i assume there is some sort of faction involved. it seems like this should be just a matter of setting the player's ranking in that faction to "we don't like this guy." although, of course, that would mean all slaves would view you that way, not just the one who was raped. but that seems realistic - they probably hate you already, anyway.

Posted

Although SSVBC does have 2 SexSlaves factions (slaves and freed), certainly a faction rank consequence isn't what I'd want. And I don't need for the relationship rank to persist (although it's OK too if it does) as the NPC is set to respawn and non-unique.

Posted
13 hours ago, belegost said:

Defeat does this with NPCs after rape. You might want to take a look.

 

Yeah, I already use SL Defeat. But the hate-after-rape option of SL Defeat I believe is tied into a much more complex system, while the SSVBC script for the rape is just pure SL animation script tied to a dialogue topic.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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