Pink Petal Games
Game Editing And Additions => User Mods => Topic started by: snackattack on February 02, 2017, 03:03:42 AM
-
I have some programming experience but I'm not having any luck. I'm using the script editor basically I have it set so that if a girl has a certain trait there is a 50% chance she will gain another trait. I have the variable set up to pick a number between 1 and 10 and if it's greater than 5 then it assigns another trait. The script doesn't seem to be firing though. My trigger looks like this
<Trigger
Type = "Stat"
Flag = "Blah"
Stat = "Age"
Age = "18"
File = "Blah.script"
OnceOnly = "True"
/>
-
I had a similar problem with conditional triggers, they never seemed to fire. Maybe something with script location?
Mine were like yours, just adding a trait or removing one depending on stat value (e.g. strength >80 would add "muscular" trait automatically)...at least that was the idea.
-
I messed with them a little as well. I agree with grishnak, they just don't fire.
-
I am looking over the code for triggers and there are a few problems.
Skills are currently broken but will be fixed the same as stats and status in the next version of the game.
The triggers look for numbers and not names for everything.
Until I get it fixed, stats should work as:
<Trigger
Type = "3"
Stat = "13"
Value = "18"
Script = "Blah.script"
Once = "1"
/>
Try that and see if it works.
false = 0
true = 1
Type numbers:
TRIGGER_RANDOM = 0;
TRIGGER_SHOPPING = 1;
TRIGGER_SKILL = 2;
TRIGGER_STAT = 3;
TRIGGER_STATUS = 4;
TRIGGER_MONEY = 5;
TRIGGER_MEET = 6;
TRIGGER_TALK = 7;
TRIGGER_WEEKSPAST = 8;
TRIGGER_GLOBALFLAG = 9;
TRIGGER_SCRIPTRUN = 10;
TRIGGER_KIDNAPPED = 11;
TRIGGER_PLAYERMONEY = 12;
STAT_CHARISMA 0
STAT_HAPPINESS 1
STAT_LIBIDO 2
STAT_CONSTITUTION 3
STAT_INTELLIGENCE 4
STAT_CONFIDENCE 5
STAT_MANA 6
STAT_AGILITY 7
STAT_FAME 8
STAT_LEVEL 9
STAT_ASKPRICE 10
STAT_HOUSE 11
STAT_EXP 12
STAT_AGE 13
STAT_OBEDIENCE 14
STAT_SPIRIT 15
STAT_BEAUTY 16
STAT_TIREDNESS 17
STAT_HEALTH 18
STAT_PCFEAR 19
STAT_PCLOVE 20
STAT_PCHATE 21
STAT_MORALITY 22
STAT_REFINEMENT 23
STAT_DIGNITY 24
STAT_LACTATION 25
STAT_STRENGTH 26
STAT_NPCLOVE 27
STAT_SANITY 28
SKILL_ANAL 0
SKILL_MAGIC 1
SKILL_BDSM 2
SKILL_NORMALSEX 3
SKILL_BEASTIALITY 4
SKILL_GROUP 5
SKILL_LESBIAN 6
SKILL_SERVICE 7
SKILL_STRIP 8
SKILL_COMBAT 9
SKILL_ORALSEX 10
SKILL_TITTYSEX 11
SKILL_MEDICINE 12
SKILL_PERFORMANCE 13
SKILL_HANDJOB 14
SKILL_CRAFTING 15
SKILL_HERBALISM 16
SKILL_FARMING 17
SKILL_BREWING 18
SKILL_ANIMALHANDLING 19
SKILL_FOOTJOB 20
SKILL_COOKING 21
STATUS_NONE 0
STATUS_POISONED 1
STATUS_BADLY_POISONED 2
STATUS_PREGNANT 3
STATUS_PREGNANT_BY_PLAYER 4
STATUS_SLAVE 5
STATUS_HAS_DAUGHTER 6
STATUS_HAS_SON 7
STATUS_INSEMINATED 8
STATUS_CONTROLLED 9
STATUS_CATACOMBS 10
STATUS_ARENA 11
STATUS_YOURDAUGHTER 12
STATUS_ISDAUGHTER 13
STATUS_DATING_PERV 14
STATUS_DATING_MEAN 15
STATUS_DATING_NICE 16
I will be adding name look ups for everything.
But first I need to go to my accountant (taxes suck).