UESP Forums

Discuss the uesp.net site and Elder Scrolls topics.
* FAQ    * Search
* Register    * Login
It is currently Wed May 15, 2024 7:28 pm

Loading

All times are UTC

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Removing items from inv. after x game hours?
PostPosted: Tue Jun 19, 2018 12:05 pm 
Offline
Novice
Novice

Joined: Mon Jun 04, 2018 11:38 am
Posts: 81
ES Games:
Platform:
UESPoints: 0
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?

_________________




Top
 Profile  
 
 Post subject: Re: Removing items from inv. after x game hours?
PostPosted: Wed Jun 20, 2018 7:32 am 
Offline
Apprentice
Apprentice
User avatar

Joined: Sat Oct 17, 2015 5:10 pm
Posts: 154
ES Games:
Platform:
Status:
UESPoints: 16

_________________
CLIFF RACER BODY COUNT: 1059

And I ain't in it for the power
And I ain't in it for my health
I ain't in it for the glory of anything at all
And I sure ain't in it for the wealth


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Sponsored Links

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group