Komag on 6/7/2005 at 06:11
I have an attached purse, done correctly as far as I can tell, and sometimes it works great and I can sneak up and pickpocket it in game mode, but more than half the time it's just not there on the AI, especially if I start the map somewhere else and then go to where the AI is.
Any ideas? Are there any other settings used in the OMs? What mission can I open up to examine?
Thanks for any help on this. I want it to work absolutely 100% of the time. The fact that it works sometimes is boggling. :p
Ziemanskye on 6/7/2005 at 10:41
I don't know if it's twiddle-able, but I had that problem in townhouse (if you start the map from a shortcut instead of the New Game button, for example, the barmaid sometimes has a purse, and the bartender has two).
There's a RandomLootDice score or something (look in the logs, I can't remember which it's in), which seems to get 'rolled' for each NPC that might get a bit of loot - I think it's a legacy of the game thinking out FMs are City sections, rather than Missions. Find someway to guarantee you're in a mission, or to suppress that dice roll (check the higher level scripts) and it should work.
Else do what I did, and give them the extra with a rigid attachment, and test it. Seems like the more people are about the lower each's dice roll gets, so you can almost deny the random ones that way.
SneaksieDave on 6/7/2005 at 15:23
Right, I just used RigidAttachments for my on-body loot, and it shows up every time and is frobbable. Frobable? Frob-able.
Krypt on 6/7/2005 at 17:34
Check if there are any scripts on the bag. There may be one that will randomly hide/unhide it. We set them up that way because characters would spawn into the city sections directly from gamesys, and we only wanted a few at a time to have pickpocketable loot rather than every single person.
Komag on 6/7/2005 at 21:15
It's a RigidAttachment (I don't know any other way to attach loot)
And thank you very much Krypt (and hinted at by Z), it looks like the scripts. I open the props for SmallPurseCity and sure enough, there are buttload of scripts relating to dissappearing loot:
CS_PurseDeletionDice
CS_DeletePurse
CS_DailyLootCalculator
CS_LootDespawnsAtCap
CS_DeleteSpawnedGoodies1
CS_DeleteSpawnedGoodies2
CS_DeleteSpawnedGoodies3Loot
I assume the CS is City Section.
So I added the "bScriptsDisabled" and set it to "True" and now the purse is there every time, perfect! :thumb: