levelling up
deej011
Member Posts: 159
im trying to make it so that everytime level attribute increases by one another attribute increases by 50%
Comments
When the level increases by 1 change [the another attribute] to the [the another attribute * 1.5].
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 !
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.
"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
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
Can you take a screenshot of the rule that increases the 'experience' attribute ?
>
the change to attribute says game.Experience*1.5
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
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.