jouzeph's Recent Forum Activity

  • dl.dropboxusercontent.com/u/48563442/SimpleTrade.capx

    It says that it's made in Construct version 219 or newer and that i have 216. I've tried reinstalling it, still nothing

  • Here's the story. I have 4 items that i can trade at a shop. Each item has a fixed basic price (5, 10, 15, 20 as placeholders-you sell and buy stuff at the same price). On that price is added random number and that final number is the displayed one and the item's actual price.

    I've set up that item count goes up and down when you're buying/selling (i still need to set the limit so that you can't sell items that you don't have-could use some help on that too )

    The thing is, i can't for the life of me set things up so that when you buy/sell stuff, the final money value is added / substracted from your inventory. Finding out how to limit the trade so that you can't buy things you can't afford would be great too!

    Also, i have some questions about randomizing prices, so help with that would be great!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • jouzeph I have add this file in dropbox it's call 1 jouzeph for you

    Thank you man! you're the beast!

  • ok, i need only 1 more thing.

    how can i get a random number and then add it to an existing variable?

  • That's EXACTLY what i've been looking for! But i would love it if you gave me an example because my experience in C2 is literally less then a week

  • So, i've searched far and wide for the answer on the forums and youtube/google but to no avail. For the life of me, I couldn't find how to make a merchant/trader.

    So, my goal is for both him and player have 4 same items and the buy/sell prices are the same (eg. he sells "meat", "helmet", "armor" and "sword" for 1, 2, 3, 4 gold respectfully, but buys the same things from you for the same price of 1, 2, 3, 4 gold respectfully).

    I've made simple global variable to represent player's gold, items and their prices (Text object that has instance variable) and that's about it.

    What I need is :

    1) Make player's inventory (don't need picures or anything, just text saying "You have :X pieces of meat")

    2) Have the prices vary on visit after a trigger (first time you visit him prices are 1,2,3,4 but if you come to him again after a day they get to 3,4,5,6. My idea is to make a fixed variable for each of the items representing it's base value and then add random number-from A to B, to prevent cheap stuff massivly overprice the usually more expensive stuff.

    3) Have him have lmited number of each item to trade

    ty for any help

jouzeph's avatar

jouzeph

Member since 21 May, 2015

None one is following jouzeph yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies