Item scripts?

Skynet

Mildly Dipped
How can I edit item scripts? For example, how can I modify booze so that you get the alcohol addiction, if you drink it much?


And please, don't tell me that it is hard-coded :x
 
Skynet said:
How can I edit item scripts? For example, how can I modify booze so that you get the alcohol addiction, if you drink it much?


And please, don't tell me that it is hard-coded :x

I don't know how to add addictions (hard-coded I guess), but you can edit the item stats (*.PRO files) with any item editor you find in the downloads section.
I suppose the item scripts are somewhere in the scripts folder -- but then again, that's only what logic dictates.
 
you can modify addiction type if your item is identified as drug item...
you can modifying easily with fic...

but i alcohol isn't in the list so as the others said it may be hardcoded...

you can edit item script with fse (if the mapper is on your hd)
 
i think i figured out the drugs..

there are 3 possible effects the can have ( chosen from a list.. )
followed by 3 ammounts for each effect..
ammount 0 is the immediate effect quantity..
ammount 2 is the effect quantity after duration 1 has passed ( ie after it wears off.. )
ammount 3 is the effect quantity after duration 2 has passed ( ie after the side effects wear off .. )
duration 1 is the time ammount 1 lasts ( in game ticks probably )
duration 2 is the time ammount 2 lasts ( again in game ticks but i'm not sure if it's timed after duration 1 ends, or at ingestion of the drug )
addiction is the chance of addiction ( don't know whether this is in percent, or total use )
w.effect is the withdrawl affect ( for the addiction.. )
w.onset is the time for the addiction to expire


so to answer your question, you can just add an addiction chance, and a withdrawl effect to each alcohol type you want to be addictive in their proto files...
 
Back
Top