Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Strive: Conquest

A successor to first Strive For Power game, currently at alpha stage · By Strive4Power

I found the writ of exemption code. posting here in case anyone's curious.

A topic by Pallington created Apr 24, 2020 Views: 612 Replies: 1
Viewing posts 1 to 2
(1 edit)

The code is in  [your strive 2 folder]\src\custom_effects.gd.

func writ_of_exemption_use():
var character = person
var acceptance_req = 100
var acceptance_chance = 0
state.remove_item("writ_of_exemption", 1)
input_handler.get_spec_node(input_handler.NODE_INVENTORY, [{mode = 'character', person = person}]).hide()
input_handler.scene_characters = [person]
if character.loyalty == 100 && character.submission == 100:
     acceptance_chance = 100
else:
     acceptance_chance = (character.loyalty + character.submission) / 2
     acceptance_chance = acceptance_chance - acceptance_chance*variables.personality_conversion_rates[character.personality]
if acceptance_chance >= randf()*acceptance_req:
     input_handler.interactive_message("writ_of_exemption_success",'char_translate',character)
     character.set_slave_category('servant')
     character.loyalty += 25
else:
    input_handler.interactive_message("writ_of_exemption_failure",'char_translate',character)
    state.remove_slave(character)
input_handler.update_slave_panel()
input_handler.rebuild_slave_list()


What this means is: maxed out loyalty gives 50% chance for a freed slave to stay. maxed submission gives the other 50%. anything in between is linear. You can change these numbers to be less annoying, or whatevs.

maxed out loyalty gives 50% chance for a freed slave to stay. maxed submission gives the other 50%. anything in between is linear.

You forgot personality multiplier.