I'm just mucking around with the scripting, trying to get an idea how it works ...
I put together a simple event script:
It checks to see if you are lustful and gives you an illness if you:
a. are over 35, greater risk
b. are also indulgent or reckless, greater risk
I get 'unknown lhs in event file type = or' so it is a syntax error?
Also am I correct/incorrect in assuming to add a new event you must:
a. allocate an available event number
b. put the following into events.txt:
c. add the following to /config/event_text.csv
Evidently I am doing something wrong, probably all of the above
^
I put together a simple event script:
It checks to see if you are lustful and gives you an illness if you:
a. are over 35, greater risk
b. are also indulgent or reckless, greater risk
################################
# The Wages Of Sin
################################
character_event = {
id = 10292
picture = "event_sickness"
trigger = {
condition = { type = trait value = lustful }
condition = { type = not value = { type = trait value = illness } }
}
mean_time_to_happen = {
months = 450
modifier = {
condition = { type = age value = 35 }
factor = 0.8
}
modifier = {
type = or
condition = { type = trait value = indulgent }
condition = { type = trait value = reckless }
}
factor = 1.2
}
}
# Swim in the sewer and eventually you'll catch something!
immidiate = {
effect = { type = add_trait value = illness }
}
}
I get 'unknown lhs in event file type = or' so it is a syntax error?
Also am I correct/incorrect in assuming to add a new event you must:
a. allocate an available event number
b. put the following into events.txt:
# Rob's Tough Luck
event = "db\events\robs_tough_luck.txt"
c. add the following to /config/event_text.csv
ACTIONNAME10292A;God save me!;;;;;;;;;X
EVT_10292_NAME;The Wages of Sin;;;;;;;;;X
Evidently I am doing something wrong, probably all of the above
Last edited: