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
Thaler chest
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#1
Thaler chest

Been searching a little bit, but can't seem to find it.

How do i make the chest_small require thalers to open it?

Trying is the first step to success.
03-29-2013, 02:40 PM
Find
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#2
RE: Thaler chest

You can use the "chest_small" itself or put an Area around it...

You have a script called when grabbed and run a condition. If player has #thalers, do this, if not do else.

Now, if you only have one bag of Thalers in the map, you can do a simple Item comparison in the Inventory.

If you have multiple bags (Say the objective is to collect 50 Thalers to rent a room in a Hotel. And their are 10+ bags around, each with different amount of Thalers inside of each bag.) you would want to set a variable, initalized to 0.

Then simply add the amount of Thalers found each time it is picked up to the variable (The total amount of Thalers you have on yourself.) till you reach your goal.
03-29-2013, 03:03 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#3
RE: Thaler chest

Oh, so it's not coded already? I Thought it was.

Thank you. I'll figure something out.

Trying is the first step to success.
03-29-2013, 03:08 PM
Find
Hardarm Offline
Posting Freak

Posts: 891
Threads: 39
Joined: Apr 2011
Reputation: 43
#4
RE: Thaler chest

(03-29-2013, 03:08 PM)BeeKayK Wrote: Oh, so it's not coded already? I Thought it was.

Thank you. I'll figure something out.

You can do an entity with type "Chests" that works with thalers!
Just I don't know how to make objects appear, I think a chest must play an animation.

listen to boards of canada
03-29-2013, 03:35 PM
Website Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#5
RE: Thaler chest

(03-29-2013, 03:35 PM)Hardarm Wrote:
(03-29-2013, 03:08 PM)BeeKayK Wrote: Oh, so it's not coded already? I Thought it was.

Thank you. I'll figure something out.

You can do an entity with type "Chests" that works with thalers!
Just I don't know how to make objects appear, I think a chest must play an animation.

Maybe... I got it working already, so no problem Wink

Trying is the first step to success.
03-29-2013, 04:15 PM
Find




Users browsing this thread: 1 Guest(s)