673fe01702716

673fe017035f2
1 Guest is here.
 

673fe01703ab7Shillelaghins

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

673fe01703db0voodoo47

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

673fe01703f46Shillelaghins

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

673fe017040bfvoodoo47

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

673fe017041b7Shillelaghins

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

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

673fe017042a8voodoo47

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

673fe017045f1icemann

673fe0170464b
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.
Hello out there?
Contact SMF 2.0.19 | SMF © 2016, Simple Machines | Terms and Policies
FEEP
673fe01705730