Page 1 of 1

Headaches - The Construction Set

Posted: Sun Aug 06, 2006 12:10 am
by Gromph
Dear lord, I want to do what seemed a simple thing....I want a merchant in the Balmora chapter of the Mage's Guild who could sell extreme enchanting items. Now I have hit a wall.....how in the hell do you add to their inventory? I have been sitting here for 2 hours trying to highlight one of those stupid little grid boxes in my object' inventory area, and so far I managed to highlight it twice, but I can't for the life of me do it without clicking madly and getting it by luck.


Is there some sort of trick that I am not seeing to highlightning these things?

Also, while I am on the subject of the the Construction Set, I am trying to fix up the Bank mod, so it no longer relies on a really laggy huge loop to remove a player's gold, but something is a little wrong.

Should this not remove a player's gold and add it all to the bank balance?

long YourGold

set YourGold to "Player"->GetItemCount Gold_001
set BankAccount to (BankAccount + YourGold)
Player->RemoveItem Gold_001 YourGold
Of course, this seems to fail and leave behind a pesky 10000 gold value in my inventory....wierd. Considered adding some debug messages to ensure that I was removing the appropriate value(my gold) but it wants to display the "specal" message boxes that are a dialog choice sort of deal, not a straight up information one.

I figured on this being simple, since the functions, while badly laid out in format, are simple in execution, but their syntax is....odd at best, annoying at worst. Help anyone?

Edit: Got the silly message display working properly, but it still refuses to remove that inventory gold, or add it to the balance for some reason.

Posted: Sun Aug 06, 2006 11:16 pm
by fable
Have you checked in the modding forum up on Elder Scrolls?

Posted: Mon Aug 07, 2006 5:26 am
by ch85us2001
Long YourGold

Set YourGold to "Player"->GetItemCount "Gold_001"
Set BankAccount to ( BankAccount + YourGold )
Player->RemoveItem "Gold_001", YourGold
See if that helps at all.



So, it's leaving behind 10000 Gold? Could be because it's long or somewhat.

Posted: Tue Aug 08, 2006 9:58 am
by Gromph
Its leaving behind 10000 gold because that is how much gold I had when I tested. The variable is the correct value(did a test message) but it will not remove the amount.

Do these silly formatted "functions" even allow a variable used in them like this?