Computer Science Canada

Is need help with a text based rpg

Author:  Intet22 [ Wed Oct 26, 2011 10:44 am ]
Post subject:  Is need help with a text based rpg

What is it you are trying to achieve?

I am trying to get the level scaling in my game to be fair to people


What is the problem you are having?
The problem that I am having is related to level scaling. Right know the enemies stats are just multiplied by you level, which can make the enemy later on in the game extremely hard. So I was wondering if their was anyway to reduce the amount of scaling, while keeping the enemy stats as int numbers as opposed to real


Describe what you have tried to solve this problem
I have tried multiplying by decimals but that still posses a problem as I still get a decimal value for the stats


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)

Turing:


<procedure giantrobot
    strenemy := "Giant Robot"
    amountofcritters := Rand.Int (1, 3)
    enemyhealth := (100 * amountofcritters) * rank
    enemydmg := (132 * amountofcritters) * rank
    enemyelement := 0
    experiencegained := 30 * amountofcritters
    goldgained := 253 * amountofcritters
    scorearned := 50
end giantrobot>



<Amount of critters is the amount of enemies>
<strenemy is the string for the enemy so I can load the picture later>



Please specify what version of Turing you are using
I am using Turing 4.1.1

Author:  mirhagk [ Wed Oct 26, 2011 11:30 am ]
Post subject:  RE:Is need help with a text based rpg

Look into the round() function, it's what you need in this situation

Author:  Tony [ Wed Oct 26, 2011 11:51 am ]
Post subject:  RE:Is need help with a text based rpg

Multiplication is linear scaling. You might want a logarithm, which would take on this shape -- http://upload.wikimedia.org/wikipedia/commons/1/17/Binary_logarithm_plot_with_ticks.svg


: