673f94751736e

673f94751860f
1 Guest is here.
 

673f947518a32Shillelaghins

673f947518aa6
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.

673f947518caavoodoo47

673f947518cf7
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 »

673f947518de3Shillelaghins

673f947518e31
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.

673f947518f02voodoo47

673f947518f4a
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.

673f947518fe5Shillelaghins

673f94751902f
Alright, thank you very much for your help.

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

673f9475190cdvoodoo47

673f947519117
we're not planning to go away anytime soon.

673f947519409icemann

673f94751945b
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.
I know we can't have those times back again. But we can have parties like there were then.
Contact SMF 2.0.19 | SMF © 2016, Simple Machines | Terms and Policies
FEEP
673f947519828