Jump to content

Tourettes Perk Mod.


hsparkes

Recommended Posts

Not sure if this would be possible with what the mods allow, but the idea is a mod allowing certain twitch advantages (quicker fire time for instance), but at a random cost of choosing the most damaging of available conversational options.

 

Just throwing it out here as something that could be picked up and perhaps nicely balanced for use in-game.

Link to comment
Share on other sites

I'm not good with Dialog, but this would be hilarious to have as a mod. Here is the basics of what you ask of, basically the Perk (also comes as a trait if desired) with the proper twitch advantages: Tourettes

 

For the Dialog, here are some details that may help you and others to accomplish your idea:

 

To have the damaging dialog be random, you'll have to use quest script that will add another perk (hidden, nothing more than a place holder) at random times to the player to be used as a check to allow access to the damaging dialog.

 

For reference the condition will look like this for the Dialog INFO to run: If Player HasPerk TourettesFake == 1 -> This allows the Dialog option(s) to come up. Additional conditions can be used to vary when they appear according to sex or race of the target speaker.

 

All of the Dialog and the script to run the randomness can be attached to a single quest to run all of the time, keeping resource use down.

 

The script reference (NOTE: I've never done random numbers or timers before so my experience with them is very limited and what I'll say may be off entirely)

 

scn TourettesQuestScript

 

float ftimer

float frandnum

int iHasPerk

 

 

Begin GameMode (It may be better to have this run in the MenuMode for Dialog, but I can't remember the code for it ex. MenuMode 1107)

 

if iHasPerk == 0

set frandnum to GetRandonPercent

if frandnum < 51 && frandnum > 0 ;50% chance ;If the number doesn't meet the requirements then nothing will happen and the Block will run again.

Player.AddPerk TourettesFake ;Now you can say awkward things.

set iHasPerk to 1 ;Keeps from resetting the block

set ftimer to 120 ;Two minute timer

endif

endif

 

if iHasPerk == 1 && ftimer > 0 ;counts down the timer

set ftimer to ftimer - GetSecondsPassed

else if iHasPerk == 1 && ftimer =< 0

Player.RemovePerk TourettesFake ;Remove the perk

set iHasPerk to 0 ;Kill this Block and validate the other one

endif

 

End

Link to comment
Share on other sites

Thanks for this reply. I'm not a modder myself, just happened upon all this as a consequence of getting into mods for playing.

 

I wonder, would it be possible for - when Tourettes strikes - all speech options to appear ghosted and unselectable, with just the Tourettes option available to choose? There's something in the physical action of having to go through with it I find appealing (as opposed to the Tourettes option appearing at random as one of several selectables, I mean).

Link to comment
Share on other sites

  • Recently Browsing   0 members

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