Jump to content

Autonomous Sex Framework (ASF) Integration


Recommended Posts

Posted

ASF - 

 

 

Among other things, when ASF determines the player, in particular, should be accosted, a popup will open, with 'Accept', 'Refuse', 'Cancel' as options by default with 'Acquiesce' and 'Decline' as optional choices you can enable in the MCM. Aside from having the choice of 'Accept' or 'Acquiesce' lead to a scene involving the requestor, by itself ASF doesn't do anything else. But what it does do is send a mod event out containing which choice the player made, whether they consented to have sex or not, and the requesting Actor.

 

So I added a new trigger, along with a new SLTriggers Redux MCM tab, Adult General, and in it have added the new 'ASF (Autonomous Sex Framework)' event option. You then have the filters you would expect and the option to run a trigger. Here's the MCM:

image.thumb.png.18ebc3d90a5827b7a55dd663499ec8a9.png

 

And here is the ASFHandleRefusal.sltscript, which will move player gold to the requestor, with the amount determined by the requestor level:

 

msg_console "ASFHandleRefusal start"

set $rname resultfrom actor_name $request.adult.asf.requestor
set $rlvl resultfrom actor_state $request.adult.asf.requestor "GetLevel"
set $steal resultfrom item_getcount $system.player $system.forms.gold
set $rlvl resultfrom rnd_int 1 $rlvl
set $steal $steal * $rlvl
set $steal $steal / 100
msg_notify $"{rname} takes {steal} gold since you refused them."
item_remove $system.player $system.forms.gold $steal false $request.adult.asf.requestor

msg_console "ASFHandleRefusal done"

 

Get it while it's hot. :)

  • Recently Browsing   0 members

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