673fe5e0f27f2

673fe5e0f3f14
1 Guest is here.
 

673fe5e1002efShillelaghins

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

673fe5e1006f7voodoo47

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

673fe5e10089fShillelaghins

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

673fe5e1009f3voodoo47

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

673fe5e100af6Shillelaghins

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

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

673fe5e100beavoodoo47

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

673fe5e100febicemann

673fe5e101044
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.
Come on Satan! Drag me down now!
Contact SMF 2.0.19 | SMF © 2016, Simple Machines | Terms and Policies
FEEP
673fe5e1044a7