6666a13f168b0

6666a13f17003
1 Guest is here.
 

6666a13f17404Shillelaghins

6666a13f17480
I wanted to see if there was a simple way for me to edit the effects of various items(or at least a guide on the subject). In certain mods the cigarettes for example heal 1 point of Psi. I would like to know how I would be able to increase that number to say 5 or any number really. I looked around at the various guides but I couldn't find anything specifically about this topic.

I have some experience making minor edits and changes to game files in other games for similar purposes so I'm not completely "illiterate" regarding this type of thing. Any help would be greatly appreciated.

6666a13f176d0voodoo47

6666a13f17726
they actually do that in the patched base game now as well.

anyway yeah, this is pretty easy, you can create a dml patch file that will modify the properties upon game start - in this particular case, using the NVComestible script to replace the vanilla cancerstick script on the Cigarettes archetype, and setting its parameters to heal one psi point and take one health point upon use.

the question is, do you want to learn how to mod, or do you want just the mod itself? because I can make such a simple mod in about a minute.
« Last Edit: 01. September 2018, 22:46:30 by voodoo47 »

6666a13f1784eShillelaghins

6666a13f178b2
I wouldn't mind just the mod itself if it's no bother.

BUT, I am already using SECMOD amongst others and I noticed there is a shock2.gam.dml. If I understand the link you posted correctly, would I not just be able to add the appropriate lines into that patch file instead of creating an entirely NEW patch file? If that's the case if you wouldn't mind posting the appropriate structure and lines for me to add in I could always use that as a reference if I ever wanted to make similar edits in the future.

6666a13f179a9voodoo47

6666a13f179f8
Code: [Select]
DML1

// Scripts
ObjProp "Cigarettes" "Scripts"
{
"Script 0" "NVComestible"
}
// Script->Objlist Arg
+ObjProp "Cigarettes" "ObjList" = "NVComestibleNoCheck=1; NVComestibleHeal=-1; NVComestiblePsi=1;"
save as gamesys.dml, use as a separate mod using the modmanager. requires a SS2tool patched SS2 install. no need to use this with Secmod, as it already has the same cigarette setup.

the game can load many dmls as long as you load them as separate mods.

6666a13f17aa6Shillelaghins

6666a13f17af1
Alright, thank you very much for your help.

It's good to see this website is still alive and as helpful as ever.

6666a13f17b8avoodoo47

6666a13f17bd3
we're not planning to go away anytime soon.

6666a13f17f22icemann

6666a13f17f7d
Alright, thank you very much for your help.

It's good to see this website is still alive and as helpful as ever.

We've been going strong for a long time. Be round for even longer.
1 Guest is here.
Can I really add quotes? Hello mum!
Contact SMF 2.0.19 | SMF © 2016, Simple Machines | Terms and Policies
FEEP
6666a13f189ff