673fd33724962

673fd33725b05
1 Guest is here.
 

673fd33725fb0Shillelaghins

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

673fd33726255voodoo47

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

673fd337263ccShillelaghins

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

673fd3372650evoodoo47

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

673fd33726612Shillelaghins

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

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

673fd33726741voodoo47

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

673fd33726aa1icemann

673fd33726af6
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.
A camel made this.
Contact SMF 2.0.19 | SMF © 2016, Simple Machines | Terms and Policies
FEEP
673fd33729e2f