I'm making a mod for myself in which I change the armours of the guards in the Human Noble Origin as well as giving your brother and Sir Gilmore Massive armour and I was just wondering how does the game equip your mother with the armour after nightfall as I also wish to change hers.
Any help would be very much appreciated, thanks.
Changing Mother's Armor
Débuté par
Little Oak
, juil. 26 2013 12:58
#1
Posté 26 juillet 2013 - 12:58
#2
Posté 29 juillet 2013 - 03:41
It will be a different creature most likely.
#3
Posté 30 juillet 2013 - 12:09
It isn't, there's only one creature for the mother and she is wearing noble clothes and has studded leather armour in her inventory, I tried to see if there was a script that equipped the armour but all scripts related to her that I found did not seem to equip the armour. It could be done by a plot or trigger but I've yet to look.
#4
Posté 30 juillet 2013 - 02:50
It's in script bhn200ar_castle_after_siege. The preload for the level starting at line 232 removes her noble clothes and equips the armour. Should be a simple case of changing her inventory to the new equipment you want and making a new version of the script with the revised item tags.
#5
Posté 30 juillet 2013 - 04:14
When I replaced the items in the script with the ones I have made it failed to compile the script, it said:
bhn200ar_castle_after_siege.nss - bhn200ar_castle_after_siege.nss(241): Variable defined without type (while compiling var_constants_h.nss)
Do you have any idea why it has said this, I have added the items to her inventory and removed the old ones so that's not the issue but I don't know what is.
If it helps the items I have made are as follows:
hn_mother_armor
hn_mother_boots
hn_mother_gloves
There's also a bow (hn_mother_bow) but I will equip that manually in-game.
It seems to by conflicting with another script (var_constants_h.nss) which I believe has something to do with variables but I don't know why changing the armour would cause this problem nor do I know how to fix it.
bhn200ar_castle_after_siege.nss - bhn200ar_castle_after_siege.nss(241): Variable defined without type (while compiling var_constants_h.nss)
Do you have any idea why it has said this, I have added the items to her inventory and removed the old ones so that's not the issue but I don't know what is.
If it helps the items I have made are as follows:
hn_mother_armor
hn_mother_boots
hn_mother_gloves
There's also a bow (hn_mother_bow) but I will equip that manually in-game.
It seems to by conflicting with another script (var_constants_h.nss) which I believe has something to do with variables but I don't know why changing the armour would cause this problem nor do I know how to fix it.
Modifié par Little Oak, 30 juillet 2013 - 05:27 .
#6
Posté 30 juillet 2013 - 11:41
It means on line 241, you haven't defined a variable before using it. - technically any way.
It could also mean that you forgot a ; or a host of other things. You just need to check your script.
It could also mean that you forgot a ; or a host of other things. You just need to check your script.
#7
Posté 31 juillet 2013 - 01:40
These types of issues drive me nuts so I have to look them up.
first - the bug, looks like a mismatch in number of {} or a missing ; It could be something else, but that would be my guess based on the line number.
then.... I would test with some other standard equipment that you add to her inventory and try to equip. Make sure that the problem isn't with the equipment itself (unlikely, but always possible).
and then.... try your own custom equipment. You can equip the bow, you just have to determine the name of the INVENTORY_SLOT_???? so that you can equip it automatically.
Hope that helps
first - the bug, looks like a mismatch in number of {} or a missing ; It could be something else, but that would be my guess based on the line number.
then.... I would test with some other standard equipment that you add to her inventory and try to equip. Make sure that the problem isn't with the equipment itself (unlikely, but always possible).
and then.... try your own custom equipment. You can equip the bow, you just have to determine the name of the INVENTORY_SLOT_???? so that you can equip it automatically.
Hope that helps
#8
Posté 31 juillet 2013 - 10:02
I tried with different armour but it still won't work, all I did was change the end of the item's ID from:
GEN_IM_ARM_GLV_LGT_RLR to GEN_IM_ARM_GLV_MED_SCL
GEN_IM_ARM_BOT_LGT_RLR to GEN_IM_ARM_BOT_MED_SCL
GEN_IM_ARM_CHT_LGT_RLR to GEN_IM_ARM_CHT_MED_SCL
I only changed the 'LGT_RLR' to 'MED_SCL' nothing else, if it's missing anything it wasn't because of me.
Also when I save the script it exports 105 other script and plots to the override folder in the main directory located in program files (I have the Steam version) and 19 in the override folder located in my documents.
GEN_IM_ARM_GLV_LGT_RLR to GEN_IM_ARM_GLV_MED_SCL
GEN_IM_ARM_BOT_LGT_RLR to GEN_IM_ARM_BOT_MED_SCL
GEN_IM_ARM_CHT_LGT_RLR to GEN_IM_ARM_CHT_MED_SCL
I only changed the 'LGT_RLR' to 'MED_SCL' nothing else, if it's missing anything it wasn't because of me.
Also when I save the script it exports 105 other script and plots to the override folder in the main directory located in program files (I have the Steam version) and 19 in the override folder located in my documents.
Modifié par Little Oak, 31 juillet 2013 - 10:05 .
#9
Posté 31 juillet 2013 - 11:12
Do you get an error message? Are you putting the items in her inventory so that they are available when the 'switch' script runs?
No one can figure out why it gives you all the trash files, just kinda have to live with that
No one can figure out why it gives you all the trash files, just kinda have to live with that





Retour en haut







