berelinde Posted November 30, 2006 Share Posted November 30, 2006 If I wanted to take party gold as part of a quest, but wanted it to appear in the non-joinable NPC's inventory if the party paid the NPC, then killed the unfortunate NPC, would I need to create a gold piece icon for it, or will it be added to his or her total? In other words, the party pays NPC 50 gold then kills him or her. If he or she had 6 gold to begin with, how many gold pieces would be on the corpse? If I wanted there to be 56, would I have to create them? Thanks. Link to comment
jastey Posted November 30, 2006 Share Posted November 30, 2006 If you use "TakePartyGold(50)" for the NPC I would expect the gold to be in his inventory: "TakePartyGold(I:Amount*) The same as above, only for gold instead of an item. If performed by a party member, the gold is transferred to that characters gold stat (cre file), and re-added to the party pot when the character re-joins the party." (quote from iesdp) Link to comment
berelinde Posted November 30, 2006 Author Share Posted November 30, 2006 Darn. Got lazy. Should have checked there first. So far, I've only been dealing with taking gold and destroying it. Thanks, tho! Link to comment
devSin Posted December 1, 2006 Share Posted December 1, 2006 The gold is added to the creature's stat and is dropped when the creature dies (which is why you can pay people and then kill them to get your money back everywhere in BG2). (And if you don't want the gold to be dropped if the creature is killed, you'd of course just run DestroyGold() afterward.) The gold can't be stolen. (To have the gold stealable, you should be able to run TakePartyGold() DestroyGold() CreateItem("MISC07") using the amount of gold you take from the party as the charges.) Link to comment
berelinde Posted December 1, 2006 Author Share Posted December 1, 2006 Ah-HA... Thanks for the info. That's the potential for behavior that I wanted. I don't necessarily *want* people going around paying NPCs and then killing them, but I'd like to give them the opportunity if that's the way they want to play. Link to comment
jastey Posted December 1, 2006 Share Posted December 1, 2006 This was very helpful information, devSin, thank you. Although: "DestroyGold()" just makes me sad, really. Link to comment
berelinde Posted December 1, 2006 Author Share Posted December 1, 2006 Too much like RL... Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.