Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • openmw openmw
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 832
    • Issues 832
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 32
    • Merge requests 32
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenMWOpenMW
  • openmwopenmw
  • Issues
  • #5934
Closed
Open
Issue created Apr 03, 2021 by Amenophis@TaxAkla

AddItem command doesn't accept negative values

Hello, I'm working in a mod that adds armor boots on containers around Morrowind through a StartScript. So, I've read on UESP that if you use additem with negative values they will restock only with actors inventories. Of course Morrowind don't work because you have at least have entered a cell with such containers and actors to the StartScript work. https://en.uesp.net/wiki/Morrowind_Mod:AddItem#Count

Screenshot_2021-04-03_Morrowind_Mod_AddItem_-The_Unofficial_Elder_Scrolls_Pages__UESP

The AddItem part of script dont't work on OpenMW because some items have negative values to add restocking items on containers unlike vanilla that add thousands of that items instead the right number I've wrote.

AddItem_with_Negative_Values

UESP says that negative values with AddItem on merchant should add restockable items but will not work on containers. My request is to fix how containers and merchants work when receiving AddItem commands with negative values.

Edited Apr 04, 2021 by Evil Eye
Assignee
Assign to
Time tracking