levelling up

im trying to make it so that everytime level attribute increases by one another attribute increases by 50%

Comments

  • SocksSocks London, UK.Member Posts: 12,822

    When the level increases by 1 change [the another attribute] to the [the another attribute * 1.5].

  • deej011deej011 Member Posts: 159

    i tried that. when level = level+1 change attribute experience to experience*1.5. but it doesnt work when level increases by 1

  • SocksSocks London, UK.Member Posts: 12,822
    edited February 2015

    @deej011 said:
    i tried that. when level = level+1 change attribute experience to experience*1.5. but it doesnt work when level increases by 1

    "It doesn't work" is useless feedback !

  • deej011deej011 Member Posts: 159

    @Socks said:

    well if i knew the solution i wouldn't be on here asking?? the only feedback i have is when i do it that way it doesnt increase i know why but i dont know what else i could try to make it work.

  • SocksSocks London, UK.Member Posts: 12,822

    @deej011 said:
    well if i knew the solution i wouldn't be on here asking??

    "It doesn't work" is useless feedback because it doesn't tell us anything, it just ends the conversation.

    It doesn't work could mean anything, it could mean the value goes up but by the wrong amount, it goes up the first time but then stops increasing, it doesn't go up at all, it goes down, it comes up with the message "invalid expression", it only goes up from level two onwards with level 1 not working, it goes up by 50% but resets when you reach the end of the level . . . . etc etc

  • deej011deej011 Member Posts: 159

    ok Sorry it doesn't go up at all not even once if i was to put if level = 2 increase attribute and that would work but than i would have to do a rule for every level and i was trying to figure out a way that would work everytime i level up with only one rule

  • SocksSocks London, UK.Member Posts: 12,822
    edited February 2015

    @deej011 said:
    it doesn't go up at all not even once

    Can you take a screenshot of the rule that increases the 'experience' attribute ?

  • deej011deej011 Member Posts: 159
    edited February 2015

    @Socks said:
    Can you take a screenshot of the rule that increases the 'experience' attribute ?

    >

    the change to attribute says game.Experience*1.5

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited February 2015

    Let's start at the top with the rule condition: When game.Level=game.Level+1. That would be equivalent to the equation x=x+1. Can you think of a value of x that makes that equation true? Neither can I, which means that the rule will never trigger.

    Do you have a rule that contains a behavior that changes game.Level to game.Level+1? In other words, something like When game.Score>99, change attribute game.Level to game.Level+1. Or, When actor collides with [treasure chest actor], change attribute game.Level to game.Level+1? Something like that? If so, that's where all of the behaviors you included in the screenshot rule should go.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • deej011deej011 Member Posts: 159

    @tatiang said:
    Let's start at the top with the rule condition: When game.Level=game.Level+1. That would be equivalent to the equation x=x+1. Can you think of a value of x that makes that equation true? Neither can I, which means that the rule will never trigger.

    Do you have a rule that contains a behavior that changes game.Level to game.Level+1? In other words, something like When game.Score>99, change attribute game.Level to game.Level+1. Or, When actor collides with [treasure chest actor], change attribute game.Level to game.Level+1? Something like that? If so, that's where all of the behaviors you included in the screenshot rule should go.

    Thank you so much its so obvious. I did understand why it wasnt working with the x=x+1 but i just couldnt think of another way. Thanks again.

Sign In or Register to comment.