Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Nagidal

Pages: 1 ... 27 28 [29]
421
DF Suggestions / Re: Can we have homosexual dwarves?
« on: September 23, 2010, 06:52:29 am »
... I don't see why you'd want homosexuality as part of the gameplay. Lets be fair, it's just pointless and adds nothing to the game, ...

Well I use to name some of my dwarves after certain characters they match. One of the characters is a lesbian and so I thought that dwarf would be an even better match if she would be lesbian in DF as well. So that's how this whole idea evolved.

I am aware that there are more serious things which need to be done in DF than this, but I really like to read about my dwarves personalities and like to see some strange things happening by chance. Sexually queer behaviour would be one of such things.

I have tried to find out how probable it would be to have some sexually queer dwarves in a population of 100. If we assume the probability of sexual queerness is 0.04 (4% of the dwarves), there is ...

Chance to have exactly 0 queer dwarves in 100: 2%
Chance to have exactly 1 queer dwarves in 100: 7%
Chance to have exactly 2 queer dwarves in 100: 15%
Chance to have exactly 3 queer dwarves in 100: 20%
Chance to have exactly 4 queer dwarves in 100: 20%
Chance to have exactly 5 queer dwarves in 100: 16%
Chance to have exactly 6 queer dwarves in 100: 10%
Chance to have exactly 7 queer dwarves in 100: 6%
Chance to have exactly 8 queer dwarves in 100: 3%
Chance to have exactly 9 queer dwarves in 100: 1%

If somebody is interested in modelling this, here is the Python 3 script I used for that result :
Code: [Select]
#!/usr/bin/python
# -*- coding: UTF_8 -*-

# This Python 3 script models the dwarf populations with sexually queer dwarves.
# It finds out what probability is there to have a certain amount of
# dwarves who are sexually queer.

import random

# Let's have a population of dwarves
# set the number of them here
numberOfDwarvesInPopulation = 100

# How many populations do you want to test?
numberOfTests = 10000

# Now some general behavioral variables:
# The probability of being sexually queer:
queerprobability = 0.04
# From all the queers, this fraction will be homosexual
homoprobability = 0.5
# Those queers who are not homosexual will be bisexual

# Let's model a dwarf's sexual behaviour:
class Dwarf():
def __init__(self):
# Normally, a dwarf is not queer in any way:
self.isqueer = False
self.ishomosexual = False
self.isbisexual = False
# but there is  a chance to be queer:
if random.random() <= queerprobability:
self.isqueer = True
# This dwarf is somehow queer, he may be a homosexual ...
if random.random() <= homoprobability:
self.ishomosexual = True
# ... or a bisexual
else:
self.isbisexual = True

# Prepare a histograms of queer dwarves
queerDwarves = list(map(lambda x: 0, range(numberOfDwarvesInPopulation)))
homosexualDwarves = list(map(lambda x: 0, range(numberOfDwarvesInPopulation)))
bisexualDwarves = list(map(lambda x: 0, range(numberOfDwarvesInPopulation)))

# Go through the population and count the queer ones:
def countTheQueers(population):
numberOfQueers = 0
numberOfHomosexuals = 0
numberOfBisexuals = 0
for dwarf in population:
if dwarf.isqueer:
numberOfQueers = numberOfQueers + 1
if dwarf.ishomosexual:
numberOfHomosexuals = numberOfHomosexuals + 1
if dwarf.isbisexual:
numberOfBisexuals = numberOfBisexuals + 1
return numberOfQueers, numberOfHomosexuals, numberOfBisexuals

# Do this several times:
for i in range(numberOfTests):
# have a population of dwarves
dwarfPopulation = set(map(lambda x: Dwarf(), range(numberOfDwarvesInPopulation)))
# count how many queers there are
numberOfQueers, numberOfHomosexuals, numberOfBisexuals = countTheQueers(dwarfPopulation)
# write it into the histograms
queerDwarves[numberOfQueers] = queerDwarves[numberOfQueers] + 1
homosexualDwarves[numberOfHomosexuals] = homosexualDwarves[numberOfHomosexuals] + 1
bisexualDwarves[numberOfBisexuals] = bisexualDwarves[numberOfBisexuals] + 1

# print the histograms:
for text, histogram in [("queer", queerDwarves), ("homosexual", homosexualDwarves), ("bisexual", bisexualDwarves)]:
print(text, "Dwarves:")
for numberOfDwarves in range(len(histogram)):
if histogram[numberOfDwarves] != 0:
print("Chance to have exactly", str(numberOfDwarves), str(text), "dwarves in", str(numberOfDwarvesInPopulation)+":", str(round((histogram[numberOfDwarves]/numberOfTests) * 100))+"%")
print()

422
DF Suggestions / Can we have homosexual dwarves?
« on: September 23, 2010, 05:03:26 am »
I think something which would add flavour and realism to DF would be homosexuality. Could it be that certain small percentage of dwarves would look for a homosexual partner? Let's say the probability would be similar like with humans, i.e. about 4-6% of the Dwarves would be either homosexual (exclusively prefer same-sex partner) or bisexual (do not care about sex and choose either a hetero opposite-sex or a homo same-sex partner).

I'd like it.

423
DF Suggestions / One way passable door/hatch
« on: September 19, 2010, 02:28:43 am »
At doors and floor hatches you can forbid passage. I would like another possibility that you select the directions in which they are passable, but forbid the other. For example in an ambush or siege I have certain areas which I would like to evacuate (let my dwarves in a safe burrow) but don't let anybody out to the danger.

Pages: 1 ... 27 28 [29]