Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Is need help with a text based rpg
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Intet22




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
mirhagk




PostPosted: 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
Tony




PostPosted: 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: