Please note that new user registrations disabled at this time.

Headaches - The Construction Set

This forum is to be used for all discussions pertaining to Bethesda Softworks' The Elder Scrolls III: Morrowind and its Tribunal and Bloodmoon expansion packs.
Post Reply
User avatar
Gromph
Posts: 330
Joined: Mon Aug 23, 2004 8:47 pm
Location: Canada
Contact:

Headaches - The Construction Set

Post 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.
Finally running a decent computer!
  • AMD Athlon 64 X2 4600+ / ATI Radeon X1900 / 2Gb RAM
User avatar
fable
Posts: 30676
Joined: Wed Mar 14, 2001 12:00 pm
Location: The sun, the moon, and the stars.
Contact:

Post by fable »

Have you checked in the modding forum up on Elder Scrolls?
To the Righteous belong the fruits of violent victory. The rest of us will have to settle for warm friends, warm lovers, and a wink from a quietly supportive universe.
User avatar
ch85us2001
Posts: 8748
Joined: Wed Apr 13, 2005 7:53 pm
Location: My mind dwells elsewhere . . .

Post 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.
[url=tamriel-rebuilt.org]Tamriel Rebuilt and,[/url] [url="http://z13.invisionfree.com/Chus_Mod_Forum/index.php?"]My Mod Fansite[/url]
I am the Lord of Programming, and your Mother Board, and your RAR Unpacker, and Your Runtime Engine, can tell you all about it
User avatar
Gromph
Posts: 330
Joined: Mon Aug 23, 2004 8:47 pm
Location: Canada
Contact:

Post 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?
Finally running a decent computer!
  • AMD Athlon 64 X2 4600+ / ATI Radeon X1900 / 2Gb RAM
Post Reply