Removing items from inv. after x game hours?
Posted: Tue Jun 19, 2018 12:05 pm
Today, I have a question about script creation.
Although I have the PDF format of "Morrowind Scripting for Dummies, 8th Edition", I still am struggling with creating a (hypothetically) simple script.
I want to create some scripts that cause alcohol (primarily beer) to go 'off' if it is kept too long in your inventory. Furthermore, I'd like to make it so that bread goes stale, unpreserved meat and vegetation rots, and "drinking water" (stimulated by bottles, goblets, etc, etc.) to go bad.
Here is thusly the intended effect desired:
1) item (e.g. bread) comes into inventory.
2) After x amount of time in the inventory (e.g. 12 hours), a message is created - "The bread has gone stale".
3) After more x amount of time, the item is removed from the inventory and a message is created at the same time - "The bread is rock-hard and inedible. You think you may have also chipped a tooth".
To be repeated with other types of food.
While some of this I belive I can do (creating the message), the getting it out of the inventory has made me stumped.
A little help?
Although I have the PDF format of "Morrowind Scripting for Dummies, 8th Edition", I still am struggling with creating a (hypothetically) simple script.
I want to create some scripts that cause alcohol (primarily beer) to go 'off' if it is kept too long in your inventory. Furthermore, I'd like to make it so that bread goes stale, unpreserved meat and vegetation rots, and "drinking water" (stimulated by bottles, goblets, etc, etc.) to go bad.
Here is thusly the intended effect desired:
1) item (e.g. bread) comes into inventory.
2) After x amount of time in the inventory (e.g. 12 hours), a message is created - "The bread has gone stale".
3) After more x amount of time, the item is removed from the inventory and a message is created at the same time - "The bread is rock-hard and inedible. You think you may have also chipped a tooth".
To be repeated with other types of food.
While some of this I belive I can do (creating the message), the getting it out of the inventory has made me stumped.
A little help?