Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New item
ooadrianoo Offline
Member

Posts: 82
Threads: 29
Joined: Apr 2012
Reputation: 0
#1
New item

I've been thinking about to create a new item.
But I don't know how to make a function if the item is used.
E.g. If item is used then FadeRadialBlurTo...
09-25-2012, 04:16 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#2
RE: New item

Are you asking when it is used in the inventory? Such as health or sanity potion. Combination? Such as a hammer to a chipper. or when an item is used in the environment, such as a key on a door or acid on an entity, etc?
09-25-2012, 04:39 PM
Find
ooadrianoo Offline
Member

Posts: 82
Threads: 29
Joined: Apr 2012
Reputation: 0
#3
RE: New item

Yes used in the inventory.
Its a potion and when it be used, the effect should be FadeRadialBlurTo
(This post was last modified: 09-25-2012, 05:19 PM by ooadrianoo.)
09-25-2012, 05:19 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#4
RE: New item

As far as I know, you can only activate items in the inventory like that by way of Sanity Potion, Laudanum, and Oil Potions.
09-25-2012, 05:29 PM
Find
ooadrianoo Offline
Member

Posts: 82
Threads: 29
Joined: Apr 2012
Reputation: 0
#5
RE: New item

(09-25-2012, 05:29 PM)Statyk Wrote: As far as I know, you can only activate items in the inventory like that by way of Sanity Potion, Laudanum, and Oil Potions.
Maybe I can change it in a script?

(09-25-2012, 05:39 PM)ooadrianoo Wrote:
(09-25-2012, 05:29 PM)Statyk Wrote: As far as I know, you can only activate items in the inventory like that by way of Sanity Potion, Laudanum, and Oil Potions.
Maybe I can change the effect it in the a script?
(This post was last modified: 09-25-2012, 05:43 PM by ooadrianoo.)
09-25-2012, 05:39 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#6
RE: New item

Sure, it's possible. Just know that it has to be one of the item types and it will still affect the same way. Just have a timer that checks for something such as health increase or sanity increase, etc.
09-25-2012, 05:43 PM
Find




Users browsing this thread: 2 Guest(s)