How do I make 50% etc.. change to get object

0 favourites
  • 4 posts
From the Asset Store
You think you can guess the character’s name?! Then let’s see how smart you are!
  • hi

    lets say that my player doesnt have pickaxe so i am using my bare hand to pick some rock.

    how do i make it so that if i use bare hand i have 45% change to get ore, but if use pickaxe there is 100% to get ore.

    thanks

  • hi

    lets say that my player doesnt have pickaxe so i am using my bare hand to pick some rock.

    how do i make it so that if i use bare hand i have 45% change to get ore, but if use pickaxe there is 100% to get ore.

    thanks

    there are some example in this forum for the "%", but you can solve this without use the %... (try to search on the forum)

    for example, "when a block is broken by hand > set a variableB to : choose("pickgold","nogold","nogold","nogold") "

    and make another subevent "if the variable x is "pickgold" take a gold from some variable, if not, do nothing.. you can do with number, generate number...etc..."

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hi

    lets say that my player doesnt have pickaxe so i am using my bare hand to pick some rock.

    how do i make it so that if i use bare hand i have 45% change to get ore, but if use pickaxe there is 100% to get ore.

    thanks

    system: random 100 < 45?

  • thanks guys.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)