How can I script this scenario?

Post » Wed Jan 30, 2013 8:52 pm

So player is aksed to mine some ore, smelt 1 ingot and then give it to a merchant. So far what I have works. Player is directed to a mine where the ore veins are, immedietely the quest checks, at stage 20, to see if the player has a quicksilver ingot with this script...

if Game.GetPlayer().GetItemCount(quickingot) >= 1
SetStage(40)
else;
endif

The above script will skip to stage 40 and then player can immedietely give the ingot he already has to the merchant. All is well. The stages in between 20 and 40 which I have has 35 and 37 (I know I didn't space them well) are for when the player has mined 2 ore which is enough for 1 ingot and for when the player has smelted 1 ingot. This is my problem. Player starts mining I guess, I could use a Global Counter - this just ocurred to me, but I've been looking at the "while" command and it seems shorter and sweeter but I don't know how to script that.
Help, advice greatly appreciated.
User avatar
steve brewin
 
Posts: 3411
Joined: Thu Jun 21, 2007 7:17 am

Return to V - Skyrim