Guest Messenjah Posted February 24, 2013 Share Posted February 24, 2013 (edited) So, as many may know, I've been working on a lapdance script for mystrip club mod. Basically, I've combined some ideas into something a bitmore simple. How the script works is this: Basically,on the npc, they have a script that uses an integer called "Mode" that,when set to 1, overwrites their default AI packages. Then I haveanother integer called "StripStage" that defines what AI package isrunning during a stage. Here is an snippet of the script I will attachto the dancers: If Mode == 1 Set TimeVar to TimeVar + GetSecondsPassed If (DanceStage == 0) && (TimeVar <= 120) ;If npc is traveling and 120 seconds have not yet passed, check packages. EVP Elseif (DanceStage == 1) && (TimeVar <= 120) ;If npc is waiting and 120 seconds have not yet passed, check packages. EVP Elseif (DanceStage <= 1) && (TimeVar > 120) ;If 120 seconds have passed and npc is traveling or waiting, reset. Set Reset to 1 Elseif (DanceStage == 2) ;If npc is now dancing, check packages. EVP endif Endif Asyou can see, at stage 0, the npc will run an AI package that moves thenpc to a location inside the champaign room. Mode 1 and StripStage 0will be set during dialogue and this script will be attached to the npcas a GameMode script. When the npc reaches the location, they will entera triggerbox with this script attached: scn AWELapDanceTriggerSCRIPT Begin OnTriggerEnter AWEStripper01REF If (AWEStripper01REF.Mode == 0) && (AWEStripper01REF.DanceStage == 0) Set AWEStripper01REF.DanceStage to 1 Endif End Begin OnTriggerEnter Player If (AWEStripper01REF.Mode == 1) ShowMessage AWETakeSeat 10 Endif End Thisscript will then set their stage to 1 and when the player enters, itwill display a message instructing the player to take a seat. DanceStage1 is used for dialogue with the npc. The script attached to the npcwill time out if the player does not take a seat within the 120 secondsto begin the interaction, at which point, the npc will run a resetinteger that is used to reset the script to default parameters. When the player activates the couch, the couch will run this script: scn AWELapDanceCouch begin OnActivate If (IsActionRef Player == 1) && (Player.GetSitting <= 0) && (Stripper01REF.DanceStage == 1) ;If I am sitting and npc is waiting, start interaction. Set Stripper01REF.DanceStage to 2 ShowMessage AWELapDanceMessage 10 Activate Elseif (IsActionRef Player == 1) && (Player.GetSitting >=3) && (Stripper01REF.DanceStage == 2) ;If I am standing up and npc is dancing, reset. Set Stripper01REF.Reset to 1 Activate Else Activate Endif End Thissets the NPC's StripStage to 2 so that the npc will begin the dance, italso displays a message to instruct the player, that they can stand upto end the interaction. If the player chooses to stand, the script willreset the npc to their default parameters and thus, the interaction willend. My plan, is to also have this scriptenable/disable an invisible collision box that is between the npc andthe player that allows the player to "tip" the dancer. This is thecurrent script for that: scn AWETipActivator01SCRIPT Begin OnActivate If (Player.GetItemCount Caps001 >= 5) && (Stripper01REF.DanceStage == 2) Player.RemoveItem Caps001 5 AWEStripper01REF.AddItem Caps001 5 Else Return Endif If (AWEStripper01REF.GetItemCount Caps001 >= 25) AWEStripper01REF.RemoveItem AWEStripperSkirt01 1 Elseif (AWEStripper01REF.GetItemCount Caps001 >= 50) AWEStripper01REF.RemoveItem AWEStripperTop01 1 Elseif (AWEStripper01REF.GetItemCount Caps001 >=100) AWEStripper01REF.RemoveItem AWESTripperBottom01 1 Endif End End I need to write the dialogue today and then write a quick script to start the lapdance. Probably something along the lines of: set AWEStripper01REF.mode to 1 set AWEStripper01REF.StripStage to 0 ShowMessage AWEFollow 10 Andthen I need to write a reset function that defaults everything and thenresets itself to 0 so that it no longer fulfills the reset condition. Anyone see any flaws in my logic? Edit: Ewww sorry for the mess. Was editing. Edited February 24, 2013 by Messenjah Link to comment Share on other sites More sharing options...
Recommended Posts