Problem with Result and removeitem

Post » Fri Apr 08, 2011 9:13 am

I have been working on another set of quests but I'm having trouble.

I have a result script that says:

 player.removeitem VampireDust 20player.removeitem aaaTDVampireRaidScroll 1player.additem gold001 3000 


The topic shows up and I click on the topic to complete the quest and the game takes the scroll and gives me 3000 septims but it only takes 1 out of 20 piles of Vampire dust. What could I be doing wrong? How do I make the game remove 20 Vampire Dust piles and 1 of the Raid scrolls and recieve 3000 septims?

Conditions:
yes/getitemcount/vampiredust >= 20yes/getitemcount/ > 0 aaaTDVampireRaidScrollno/getisID/QuestgiversID/==1


One more important detail the game reports in the upper left hand corner of the screen that 20 piles of Vampire dust is removed but only 1 is removed and 19 is left which is very strange. It needs to take 20 not just 1.
User avatar
Angela Woods
 
Posts: 3336
Joined: Fri Feb 09, 2007 2:15 pm

Post » Fri Apr 08, 2011 1:49 am

I had a similar problem with having 2 stacks of an item, some stolen, some not and I wanted to remove 10 at a time. The game would take only from which ever stack it found.

So if I had 10 wolf pelts to remove, but I had 2 stolen ones, the game would sometimes just take 1 stolen one instead, but it still said in the top corner that 10 had been removed.

The only solution I've found so far, which is a bit annoying and time consuming, is to have Player.RemoveItem WolfPelt 1 and then repeat that line 10 times.

I'm still trying to find a better solution to the problem.

I'm not sure why it's doing it with Vampire Dust, are some stolen? In your inventory, are they all in one stack? Or do they not stack properly in the inventory?
User avatar
Jonathan Egan
 
Posts: 3432
Joined: Fri Jun 22, 2007 3:27 pm

Post » Fri Apr 08, 2011 5:34 am

I had a similar problem with having 2 stacks of an item, some stolen, some not and I wanted to remove 10 at a time. The game would take only from which ever stack it found.

So if I had 10 wolf pelts to remove, but I had 2 stolen ones, the game would sometimes just take 1 stolen one instead, but it still said in the top corner that 10 had been removed.

The only solution I've found so far, which is a bit annoying and time consuming, is to have Player.RemoveItem WolfPelt 1 and then repeat that line 10 times.

I'm still trying to find a better solution to the problem.

I'm not sure why it's doing it with Vampire Dust, are some stolen? In your inventory, are they all in one stack? Or do they not stack properly in the inventory?


I think I know what my problem is or was I used a cleaned save after some changes and now it is working know I still have to test the other quests but I think its working out. Now I have 12 quest completed. I want to make a few more quest and add some more dialogue before I do a release.

But I guess I have to use a clean save before testing changes in dialogue and quest testing.
User avatar
Chris BEvan
 
Posts: 3359
Joined: Mon Jul 02, 2007 4:40 pm


Return to IV - Oblivion