decker666

Member
Sep 29, 2017
228
548
There is actually a dedicated function for that
If girl is set to $tmpGirl variable you can use <<include 'NPC info'>>
Cool, learning things everyday :D.
Maybe it would be nice to have a visual info card, that is less precise ?
As in my example I rounded the beauty score to 10 and furthermore I gave an age category :).
Having a precise age and beauty score feels strange to me until you can 'manage' the girl.

Keep it up :)
 

ttyrke

Well-Known Member
Game Developer
Jun 10, 2017
1,502
1,789
Cool, learning things everyday :D.
Maybe it would be nice to have a visual info card, that is less precise ?
As in my example I rounded the beauty score to 10 and furthermore I gave an age category :).
Having a precise age and beauty score feels strange to me until you can 'manage' the girl.

Keep it up :)
That also also is already in the game. Not sure if everything changes to approx but year 100%.
Just before NPC info include need to check that $charId, $slaveId and $guestId is empty. If not of them is set, game will think that you don't know that girl and will show approx age.
 

decker666

Member
Sep 29, 2017
228
548
Ah okay, I did not look into how the "(approx) age" works.
Was thinking giving an age category like 'early 20s' or 'late 30s' made more sense for me.
 

ttyrke

Well-Known Member
Game Developer
Jun 10, 2017
1,502
1,789
Ah okay, I did not look into how the "(approx) age" works.
Was thinking giving an age category like 'early 20s' or 'late 30s' made more sense for me.
That could work. In my function it adds +5/10 years in each side and takes a random number from that.
 
  • Like
Reactions: decker666

dmitriiviktorov

Well-Known Member
Mar 4, 2018
1,344
5,809
does anyone know how to change traits?
it used work with
(SugarCube.State.variables
.slaves[3].traits[0] = "woodcraft" )

but that command doesnt work anymore
SugarCube.State.variables.guests[0].traits[0] = "gardener"
SugarCube.State.variables.guests[0].traits[1] = "woodcraft"
SugarCube.State.variables.guests[0].traits[2] = "scavanger"
SugarCube.State.variables.guests[0].traits[3] = "shopkeeper"
SugarCube.State.variables.guests[0].traits[4] = "breeder"
SugarCube.State.variables.guests[0].traits[5] = "masochist"
SugarCube.State.variables.guests[0].traits[6] = "sadistic"

SugarCube.State.variables.slaves[0].traits[0] = "gardener"
SugarCube.State.variables.slaves[0].traits[1] = "woodcraft"
SugarCube.State.variables.slaves[0].traits[2] = "scavanger"
SugarCube.State.variables.slaves[0].traits[3] = "shopkeeper"
SugarCube.State.variables.slaves[0].traits[4] = "breeder"
SugarCube.State.variables.slaves[0].traits[5] = "masochist"
SugarCube.State.variables.slaves[0].traits[6] = "sadistic"
 

ttyrke

Well-Known Member
Game Developer
Jun 10, 2017
1,502
1,789
SugarCube.State.variables.guests[0].traits[0] = "gardener"
SugarCube.State.variables.guests[0].traits[1] = "woodcraft"
SugarCube.State.variables.guests[0].traits[2] = "scavanger"
SugarCube.State.variables.guests[0].traits[3] = "shopkeeper"
SugarCube.State.variables.guests[0].traits[4] = "breeder"
SugarCube.State.variables.guests[0].traits[5] = "masochist"
SugarCube.State.variables.guests[0].traits[6] = "sadistic"

SugarCube.State.variables.slaves[0].traits[0] = "gardener"
SugarCube.State.variables.slaves[0].traits[1] = "woodcraft"
SugarCube.State.variables.slaves[0].traits[2] = "scavanger"
SugarCube.State.variables.slaves[0].traits[3] = "shopkeeper"
SugarCube.State.variables.slaves[0].traits[4] = "breeder"
SugarCube.State.variables.slaves[0].traits[5] = "masochist"
SugarCube.State.variables.slaves[0].traits[6] = "sadistic"
This will work but you can also just write it as array
Code:
SugarCube.State.variables.guests[0].traits = ['scavenger', 'analslut','gardener']
 

Cabbytoday

Member
Nov 6, 2022
108
44
Why does it look like my Guests are losing Beauty score I had near 79 and now she down to 48, What going on
 

ttyrke

Well-Known Member
Game Developer
Jun 10, 2017
1,502
1,789
Why does it look like my Guests are losing Beauty score I had near 79 and now she down to 48, What going on
Check if you have latest patch. Latest patch should fix decrease and beauty slowly will increase till max instead (thats a bug and is fixed for 0.22 release)
 

ttyrke

Well-Known Member
Game Developer
Jun 10, 2017
1,502
1,789
okay add the path or do I have to restart
Check main thread. There is 0.21b patch. As for girls who already lost beauty - they will always stay ugly :< You can increase their beauty through console.
 

dmitriiviktorov

Well-Known Member
Mar 4, 2018
1,344
5,809
This will work but you can also just write it as array
Code:
SugarCube.State.variables.guests[0].traits = ['scavenger', 'analslut','gardener']
how to change the age of the characters on the console?
как менять консольно возраст персонажей?

SugarCube.State.variables.guests[0].traits = ['gardener','woodcraft','scavanger','shopkeeper','breeder','masochist','sadistic']
SugarCube.State.variables.slaves[0].traits = ['gardener','woodcraft','scavanger','shopkeeper','breeder','masochist','sadistic']
 

ttyrke

Well-Known Member
Game Developer
Jun 10, 2017
1,502
1,789
how to change the age of the characters on the console?
как менять консольно возраст персонажей?

SugarCube.State.variables.guests[0].traits = ['gardener','woodcraft','scavanger','shopkeeper','breeder','masochist','sadistic']
SugarCube.State.variables.slaves[0].traits = ['gardener','woodcraft','scavanger','shopkeeper','breeder','masochist','sadistic']

Code:
SugarCube.State.variables.guests[0].birthDate = setup.getBirthDate(18)
 
  • Thinking Face
Reactions: Tatsuya2022
3.70 star(s) 51 Votes