Default player script eating gold?

I am trying to figure out why the default script appears to be removing all the gold on the player character … anyone know why?

[0] Object: “_Warmage Fryar”, Running Script: default

[CHAT WINDOW TEXT] [Tue Dec 10 18:28:58] Lost 100GP

[CHAT WINDOW TEXT] [Tue Dec 10 18:28:58] Lost 100GP

[CHAT WINDOW TEXT] [Tue Dec 10 18:28:58] Lost 100GP

[CHAT WINDOW TEXT] [Tue Dec 10 18:28:58] Lost 100GP

and so on.

Picking it up, using dm_givegold, it seems to nuke all of it, without any reason. Any ideas?

  • May

Have you looked in default.nss? It’s hard to say without seeing the script… but I’d guess there’s a loop taking 100 gold from the PC until it’s gone :slight_smile:

1 Like

I don’t have one in my module (even checking temp0 with the toolset open), but yes that would be my guess too. Is there a way to retrieve the default, er, default.nss?

There is no default.nss in the base game scripts. “default” is a placeholder the game uses for some creature scripts when a new creature object is created and some modules take advantage of that foible. There is a possibility that the default script being run is not associated with the loss of gold. Have you done a codebase search for the TakeGoldFromCreature command, something in your OnAcquireItem scripting, or (longshot) maybe an tag-based-script for the gold item (NW_IT_GOLD001)?

1 Like

you can use PrintString("A default.ncs lives in: " + ResManGetAliasFor("default", RESTYPE_NCS)); to see if there’s a default.ncs somewhere that the game can see

1 Like

Hmm, but if you really don’t have it, then the log wouldn’t print it being executed I think.

So you have it outside module from custom content.

These projects uses default.nss afaik:

  • Community Patch
  • PRC
  • 3.5 edition
1 Like

This found it! Apparently in … a hakpak I don’t think (emphasis on think) I am using, but it is one I had set aside for the module so @Shadooow was right - it was in custom content also included.
I’ll have to see why it’s doing this but at least this puts me on the right track! Thanks!

[edit]: For clarity, I don’t think I’m using anything in the hakpak at present, so I mean to say that I can safely remove it.

For those curious it’s the “RavenloftCore Scripts” - which I had grabbed to have some premade Ravenloft creatures. For now it seems safe to just lop the default.nss / .ncs out of it. I cannot tell why it is removing gold like that from the script logic, but it’s not a desired behaviour on my part regardless. It looks to be trying to change the gold into an actual object, but thats not desired either, and it doesn’t work as programmed.