Cloning Objects with new instance names
Hi, there.
My recent project i'm working on is tweaking some career events. More specifically the career events for the criminal career, which gives you extra money or extra items (called hotoffthetruck and sweetbonus). i already found the matching .xml (CareerEvents.xml) and changed it to other items.
My struggle at the moment is, that i want it to spawn some custom items. Particularly the custom Moneybags by ani, which spawn with a specific value and were made buyable in the buy menu.
I think I already found out, that the function, that is used to spawn these items use the instance name. The problem is: all these custom money bags from ani use the same instance name (HarvestMoneyBag).
I tried to change this instance Name by using
S3PE and use the "Grid" button on the OBJD resource. But that didnt work. I guess, you need to change some other values as well, so that they match again. But i don't know which to change. I also tried using
S3OC to clone the object with a new name, but it still uses the same instance name.
Changing the spawned object to HarvestMoneyBag gives me a MoneyBag, but just the standard one and with value 0 on top of that.
Furthermore, I'm not sure, whether the function that's used for generating the reward can find custom objects at all. Maybe that's the problem already, i couldnt rule that out yet. So any ideas, how to change the instance names correctly and whether the Core systems can actually search for custom objects?