Ask your own question, for FREE!
Computer Science 7 Online
OpenStudy (anonymous):

Maybe someone can help me on where to start.....I need help starting this program please.

OpenStudy (anonymous):

Most computer games use formulas to define what happens when a user interacts with the environment. For example, the formula for how much damage a player inflicted on a monster might be something like: damage = (player strength + player weapon) – monster's protection Assume that there are 100 possible values for each of the variables on the right side of this formula (from 0 = weak to 99 = strong).

OpenStudy (anonymous):

Can u help me please

OpenStudy (anonymous):

So can u?

OpenStudy (anonymous):

Can someone help me please?

OpenStudy (blurbendy):

what is the program supposed to do?

OpenStudy (anonymous):

Calculate the damage a player can inflict on a monster but I am having trouble starting it out right

OpenStudy (blurbendy):

Well you need to give values to the variables on the right

OpenStudy (blurbendy):

100 for each of them apparently

OpenStudy (anonymous):

Yeah but it supposed to be in VB as a from box

OpenStudy (blurbendy):

virtual basic?

OpenStudy (anonymous):

yeah or Visual Studio which I have both programs

OpenStudy (blurbendy):

sorry, I'm not familiar with either.

OpenStudy (anonymous):

:(

OpenStudy (blurbendy):

does VB have arrays?

OpenStudy (anonymous):

idk

OpenStudy (blurbendy):

hmm, sorry bud. maybe someone else can help

OpenStudy (dumbsearch2):

Where are the values going to be fetched from? Just from a variable, or from a form element, or randomly ?

OpenStudy (anonymous):

The question gives the variables that are needed

OpenStudy (anonymous):

damage = (player strength + player weapon) – monster's protection) these would be the Variables

OpenStudy (e.mccormick):

@blurbendy Yes, VB has arrays.

OpenStudy (e.mccormick):

"damage = (player strength + player weapon) – monster's protection) these would be the Variables" Not quite. Those are he values you need to represent with variables. Because they are to be 0 to 99, I would dimension them as integers. However, you need to remember the naming conventions. For example, "player weapon" can not be a variable because it has a space in it. it will need to be one word, or use _ in place of space. Abbr. can also help reduce typing, like: plr_wep instead of Player Weapon. http://msdn.microsoft.com/en-us/library/office/ee440536%28v=office.12%29.aspx

OpenStudy (preetha):

Aaron, be more specific. Do you need the actual commands in VB? Lots guidance in the posts above. What else are you looking for?

OpenStudy (anonymous):

I am looking for some of the actual commands to start it to get an idea of how it is started.

OpenStudy (anonymous):

Can u help me?

OpenStudy (espex):

The first place you want to start is familiarizing yourself with the VB language: http://msdn.microsoft.com/en-us/library/xk24xdbe%28v=vs.80%29.aspx After a few of their sample programs you can look into some of the tutorials out there: www.homeandlearn.co.uk/net/vbNet.html Playing around with the IDE will help you build the forms but only practice and familiarity will help you with the commands you are looking for.

OpenStudy (e.mccormick):

Another thing that can help is a lecture to go over things you missed, examples of simple things, etc. Here are 200 short videos using VB.NET 2010. http://thenewboston.org/list.php?cat=39 While 200 seems like a large number, it is not. The cover a ton of topics, but there is one or two topics per video, and they can be watched in order or skip to a topic you know you need help with.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!