Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

Search the Community

Showing results for tags 'septims'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Community Boards
    • About TESA
    • TESA Community
  • Hosted Boards
    • The Enclave
    • Hosted Projects
  • Gaming Boards
    • The Elder Scrolls
    • Fallout
    • Indie Games
  • RPG Boards
    • Roleplaying

Categories

  • Showcase
    • Skyrim
    • Fallout
    • Oblivion
    • Misc
  • Exclusives
    • Skyrim
    • Fallout
    • Oblivion
    • Morrowind
    • Misc
  • Community Works
    • Skyrim
    • Oblivion
    • Fallout
    • Misc
    • Student Projects

Categories

  • ESV: Skyrim Modding
    • Creation Kit Basics
    • Level Design
    • Character Design
    • Papyrus
    • Quest Design & Dialogue
    • Graphic Artistry
    • 3D Craftworks
  • ESIV: Oblivion Modding
    • Construction Set Basics
    • Worldbuilding
    • NPCs & Radiant AI
    • Scripting
    • Questbuilding & Dialogue
    • Story & Lore
    • Texturing
    • Modeling
    • Miscellaneous
  • ESIII: Morrowind Modding
    • Tool Set Basics
    • Worldbuilding
    • NPCs
    • Scripting
    • Questbuilding
    • Texturing
    • Modeling
  • Fallout 3 Modding
    • GECK Basics
    • Worldbuilding
    • NPCs & Radiant AI
    • Scripting
    • Questbuilding & Dialogue
    • Texturing
    • Modeling
  • Gaming Guides
    • Oblivion Gaming
    • Morrowind Gaming
    • Fallout 3 Gaming
  • Miscellaneous Tutorials
  • TES Alliance HowTo Guides

Product Groups

  • VIP Memberships
  • Subscriptions

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Steam


XBox Live ID


MSN


Skype


Location


Interests

Found 1 result

  1. The line in the code that is larger font seems to be the offending piece. The code compiles and runs and does everything except this line. All I need is for this object to be removed from the player's inventory. I have already determined (Thanks WilleSea) that mySelf/Self referes to the script in this case and not the item to which the code is attached. Any ideas how to accomplish this goal. If I can get this to work, it will eliminate the problem where you buy too much from the vendor, causing their max gold limit to exceed. If you have ever seen this situation, you end up selling all your stuff and not getting any gold for it. It's not fun. What this code does is turn any gold over a set amount in the vendors inventory, into Skyrim "Septimus Notes" (Paper Money). You can then buy these from the vendor and resupply them with gold. When you drop the "Septimus Note" and then pick it back up, it converts it back to Gold Septims. It's a somewhat immersive way to eliminate one of the problems Bethesda made for us by putting limits on the amount of gold a vendor can have. More likely, they just used the wrong data type for the variable that tracks this value. Not sure. Anyway, any suggestions anyone could offer will help me get this mod out sooner. Scriptname FQSeptimusNoteExchangeScript extends ObjectReference import debug import utility miscobject Property GoldRef Auto Int Property maxVendorGold Auto miscobject Property FQ100KSeptimusNote Auto miscobject Property FQ50KSeptimusNoteSkyrim Auto miscobject Property FQ40KSeptimusNoteSKYRIM Auto miscobject Property FQ30KSeptimusNoteSKYRIM Auto miscobject Property FQ20KSeptimusNoteSKYRIM Auto miscobject Property FQ10KSeptimusNoteSKYRIM Auto miscobject Property FQ5KSeptimusNoteSkyrim Auto miscobject Property FQ4KSeptimusNoteSkyrim Auto miscobject Property FQ3KSeptimusNoteSkyrim Auto miscobject Property FQ2KSeptimusNoteSkyrim Auto miscobject Property FQ1KSeptimusNoteSkyrim Auto MiscObject Property FQSPENTSeptimusNoteSkyrim Auto MiscObject property coinObj auto Int property coinAmt auto MiscObject mySelf auto State Waiting Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer) mySelf = self.getBaseObject() as MiscObject Debug.Notification("OnItemChangedContainer") Debug.Notification("akOldContainer = " + akOldContainer); None Debug.Notification("akNewContainer = " + akNewContainer); ObjectReference if akNewContainer == Game.GetPlayer() Debug.Notification("akNewContainer == Game.GetPlayer()") if !akOldContainer Debug.Notification("!akOldContainer") gotoState("done") int numOfCoins = coinAmt [size=6] game.getplayer().removeitem(mySelf, 1, abSilent = true)[/size] game.getPlayer().addItem(coinObj, numOfCoins) game.getPlayer().addItem(FQSPENTSeptimusNoteSkyrim,1, abSilent = false) elseif akOldContainer Debug.Notification("akOldContainer") SeptimusNoteExchange(akOldContainer) endif endif endEvent endState State done ;do nothing endState Function SeptimusNoteExchange(ObjectReference akTargetRef) Debug.Notification("Now we're debuggin the SeptimusNoteExchange function!") ObjectReference VendorRef = akTargetRef int currentVendorGold = VendorRef.GetItemCount(GoldRef) int amtOverMaxVendorGold = currentVendorGold - maxVendorGold Debug.Notification("The amtOverMaxVendorGold is " + amtOverMaxVendorGold) while amtOverMaxVendorGold >= 1000 if amtOverMaxVendorGold >= 100000 VendorRef.additem(FQ100KSeptimusNote, 1, false) VendorRef.removeitem(GoldRef, 100000, false) amtOverMaxVendorGold = amtOverMaxVendorGold - 100000 endif if amtOverMaxVendorGold >= 50000 VendorRef.additem(FQ50KSeptimusNoteSkyrim, 1, false) VendorRef.removeitem(GoldRef, 50000, false) amtOverMaxVendorGold = amtOverMaxVendorGold - 50000 endif if amtOverMaxVendorGold >= 40000 VendorRef.additem(FQ40KSeptimusNoteSKYRIM, 1, false) VendorRef.removeitem(GoldRef, 40000, false) amtOverMaxVendorGold = amtOverMaxVendorGold - 40000 endif if amtOverMaxVendorGold >= 30000 VendorRef.additem(FQ30KSeptimusNoteSKYRIM, 1, false) VendorRef.removeitem(GoldRef, 30000, false) amtOverMaxVendorGold = amtOverMaxVendorGold - 30000 endif if amtOverMaxVendorGold >= 20000 VendorRef.additem(FQ20KSeptimusNoteSKYRIM, 1, false) VendorRef.removeitem(GoldRef, 20000, false) amtOverMaxVendorGold = amtOverMaxVendorGold - 20000 endif if amtOverMaxVendorGold >= 10000 VendorRef.additem(FQ10KSeptimusNoteSKYRIM, 1, false) VendorRef.removeitem(GoldRef, 10000, false) amtOverMaxVendorGold = amtOverMaxVendorGold - 10000 endif if amtOverMaxVendorGold >= 5000 VendorRef.additem(FQ5KSeptimusNoteSkyrim, 1, false) VendorRef.removeitem(GoldRef, 5000, false) amtOverMaxVendorGold = amtOverMaxVendorGold - 5000 endif if amtOverMaxVendorGold >= 4000 VendorRef.additem(FQ4KSeptimusNoteSkyrim, 1, false) VendorRef.removeitem(GoldRef, 4000, false) amtOverMaxVendorGold = amtOverMaxVendorGold - 4000 endif if amtOverMaxVendorGold >= 3000 VendorRef.additem(FQ3KSeptimusNoteSkyrim, 1, false) VendorRef.removeitem(GoldRef, 3000, false) amtOverMaxVendorGold = amtOverMaxVendorGold - 3000 endif if amtOverMaxVendorGold >= 2000 VendorRef.additem(FQ2KSeptimusNoteSkyrim, 1, false) VendorRef.removeitem(GoldRef, 2000, false) amtOverMaxVendorGold = amtOverMaxVendorGold - 2000 endif if amtOverMaxVendorGold >= 1000 VendorRef.additem(FQ1KSeptimusNoteSkyrim, 1, false) VendorRef.removeitem(GoldRef, 1000, false) amtOverMaxVendorGold = amtOverMaxVendorGold - 1000 else Debug.Notification("The amtOverMaxVendorGold is less than 1000 at " + amtOverMaxVendorGold) endif endwhile EndFunction
×
×
  • Create New...