\r\n\r\n
Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET Game Programming > RPG weapon upgrade


\r\n \r\n
 
 
Thread Tools Display Modes

\r\n\r\n\r\n
Okay, just trying to figure out how to do this the best way possible.
\r\nIf the player upgrades strength on the weapon that is costs X amount between
\r\n1-50
\r\nIf you go about 50 the amount you need to pay to upgrade changes
\r\nSo basicly
\r\nIf X >= 1 and X <= 50 then
\r\nCost = Str * 5
\r\nEnd if
\r\n
\r\nProblem is that I dont want it to change cause you hit over 50, I want each point after 50 to cost a different amount
\r\nSo if the player upgrades from 40 to 51 the amount isnt going to be 55 or 110
\r\nBut each point after the 50 to cost 10 than after 100 to increase it to a different amount and so on.
\r\n
\r\nI hope you guys understand what I mean.
\r\n \r\n\r\n
\r\n \r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n
\r\n \r\n \r\n \r\n \r\n Reply With Quote\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n'; pd[1394884] = '\r\n\r\n \r\n\r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n
\r\n
\r\n  \r\n #2  \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n Old\r\n \r\n 07-09-2012, 02:54 PM\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
AtmaWeapon\'s Avatar\r\n\r\n
\r\n \r\n AtmaWeapon\r\n AtmaWeapon is offline\r\n\r\n\r\n
Prev Previous Post   Next Post Next
  #1  
Old 07-09-2012, 01:07 PM
JackPS9 JackPS9 is offline
Newcomer
 
Join Date: Jun 2012
Posts: 11
Default RPG weapon upgrade


Okay, just trying to figure out how to do this the best way possible.
If the player upgrades strength on the weapon that is costs X amount between
1-50
If you go about 50 the amount you need to pay to upgrade changes
So basicly
If X >= 1 and X <= 50 then
Cost = Str * 5
End if

Problem is that I dont want it to change cause you hit over 50, I want each point after 50 to cost a different amount
So if the player upgrades from 40 to 51 the amount isnt going to be 55 or 110
But each point after the 50 to cost 10 than after 100 to increase it to a different amount and so on.

I hope you guys understand what I mean.
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->