Need help to understand the hierarchy of variables
Posted: Wed Sep 08, 2021 5:32 am
Hi, i am trying to make a very simple thing : increase the range of the personal laser defense module but after some research and many attempts i am very confused, i must be missing something very important.
I did something very simple and expected it to be enough :
This increased the range value in the UI, my personal laser defense equipment is properly targeting enemies at a range of 50 but they are not taking any damage unless they are in the vanilla range of 15. So i looked at values of 15 that didn't change by using ctrl-shift-F on the item ingame and i found what i saw very confusing.
I guessed it's probably this "max_length" value from the "beam" property of the "actions" thingy from the "ammo_type" stuff belonging to "attack_parameters"
. But didin't find the syntax to access it.
Sorry for seeking help on what seems to be such an easy thing but it's driving me mad ^^'
Thank you for your time and have a nice day !
I did something very simple and expected it to be enough :
Code: Select all
data.raw["active-defense-equipment"]["personal-laser-defense-equipment"].attack_parameters.range = 50
I guessed it's probably this "max_length" value from the "beam" property of the "actions" thingy from the "ammo_type" stuff belonging to "attack_parameters"
Sorry for seeking help on what seems to be such an easy thing but it's driving me mad ^^'
Thank you for your time and have a nice day !