Rpg-stats

24 replies to this topic

#1 martinalexander

martinalexander

GMC Member

• New Member
• 167 posts

Posted 04 July 2009 - 10:00 AM

Have calculated a simple way of using basic RPG-Stats. But what I now lack is the following:

1) How to implement and use Physical and Magical Armor?
2) How to implement and use Magical and Melee Defence?
3) How to grow stats with level (from the beginning stats amount)?

I'd like this as simple as possible, what I have came up with so far, listed below, is simple !

STATS:

Strength - Melee Attack power
Dexterity - Max HP
Intelligence - Max MP
Wisdom - Magic Damage

USAGE OF STATS:

STR
Example: Strength = 10
Melee Damage in fight = Basic Damage (say... 20) + Strength = 30 damage

DXT
Example: Dexterity = 10
Max Health = Basic (say... 50) + Dexterity = Maximum 60 Health

INT
Example: Intelligence = 10
Max MP = Basic (say... 50) + Intelligence = Maximum 60 MP

WIS
Example: Wisdom = 10
Magical Damage in fight = Basic Damage (say... 20) + Wisdom = 30 magical damage
• 0

#2 GMkizzle

GMkizzle

GMC Member

• GMC Member
• 374 posts

Posted 04 July 2009 - 10:06 AM

3) How to grow stats with level (from the beginning stats amount)?

```strxp = 0
if strxp = 10 { strlv = 2 }```

etc
• 0

#3 martinalexander

martinalexander

GMC Member

• New Member
• 167 posts

Posted 04 July 2009 - 10:06 AM

Oh, that works, tyvm !

Edited by martinalexander, 04 July 2009 - 10:07 AM.

• 0

#4 GMkizzle

GMkizzle

GMC Member

• GMC Member
• 374 posts

Posted 04 July 2009 - 10:10 AM

edit: didnt see your post. noo worries

if level=1{str=1,wis=1 etc)

Edited by GMkizzle, 04 July 2009 - 10:17 AM.

• 0

#5 Tails211

Tails211

GMC Member

• New Member
• 80 posts

Posted 04 July 2009 - 10:14 AM

Something like this?:
```if level=1
{
Strength=4
Dexterity=5
Intelligence=3
Wisdom=7
}

if level=2
{
Strength=9
Dexterity=9
Intelligence=7
Wisdom=13
}

//And so on...```

Edited by Tails211, 04 July 2009 - 10:15 AM.

• 0

#6 martinalexander

martinalexander

GMC Member

• New Member
• 167 posts

Posted 04 July 2009 - 10:16 AM

This is NOT for a single game tho, always wanted to do an RPG, but couldn't because I didnt know how to solve stats, but now I will make it, so this will be for a personal document, for further projects.

But now we got basic stats, we got stats increase by level, but the hardest part remains: How to do Armor (Physical+Magical) and Defence (Physical+Magical), and how to use it in a fight as simply as possible (both for an enemy and for a player)?
• 0

#7 martinalexander

martinalexander

GMC Member

• New Member
• 167 posts

Posted 04 July 2009 - 10:18 AM

Something like this?

Wow, this was a little better !
• 0

#8 GMkizzle

GMkizzle

GMC Member

• GMC Member
• 374 posts

Posted 04 July 2009 - 10:21 AM

well the simplest way is to have
phyarmor=10
enemy_nonmage_damage=20

enemy_nonmage_damage-phyarmor=damage_taken
• 0

#9 martinalexander

martinalexander

GMC Member

• New Member
• 167 posts

Posted 04 July 2009 - 10:25 AM

well the simplest way is to have
phyarmor=10
enemy_nonmage_damage=20

enemy_nonmage_damage-phyarmor=damage_taken

Hmm... Yeah, but... Could you instead of have both armor stat and resistance stat only have Physical Resistance and Magic Resistance, and make armor raise the correct resistance, that would make it a little simpler (just thinking loud ) !?
• 0

#10 martinalexander

martinalexander

GMC Member

• New Member
• 167 posts

Posted 04 July 2009 - 10:29 AM

BTW, If I'd want to raise stats with.... say 2 points every level (for every stat) like this:

```if level=1
{
Strength=10
Dexterity=10
Intelligence=10
Wisdom=10
}

if level=2
{
Strength=12
Dexterity=12
Intelligence=12
Wisdom=12
}```

Wouldnt it be possible to add this to like... one line of code and calculate the number of stats to the current level, without repeating the above for every level ?

Sry, suck at math !
• 0

#11 GMkizzle

GMkizzle

GMC Member

• GMC Member
• 374 posts

Posted 04 July 2009 - 10:30 AM

i dnt understand i only have armor aand enemy damage
• 0

#12 martinalexander

martinalexander

GMC Member

• New Member
• 167 posts

Posted 04 July 2009 - 10:32 AM

i dnt understand i only have armor aand enemy damage

That works too
• 0

#13 martinalexander

martinalexander

GMC Member

• New Member
• 167 posts

Posted 04 July 2009 - 10:35 AM

Damn, my head hurts. There should be a way of calculating a lined amount of every stats with level like lv1=10, lv2=12, lv3=14, lv4=16 and so on but cant figure out how !

EDIT:

Because manually adjusting each lvl is a lot of work

Edited by martinalexander, 04 July 2009 - 10:36 AM.

• 0

#14 Tails211

Tails211

GMC Member

• New Member
• 80 posts

Posted 04 July 2009 - 10:36 AM

Okay, let me take a shot at this:
```armor = 10
defense = 14
enemy_damage = choose(1,2,3,4,5,6)

armor += defence = total_protection
total_protection-=enemy_damage

if total_protection < 1
{
show_message("You fail at this game")
}```

• 0

#15 martinalexander

martinalexander

GMC Member

• New Member
• 167 posts

Posted 04 July 2009 - 10:39 AM

Okay, let me take a shot at this:

```armor = 10
defense = 14
enemy_damage = choose(1,2,3,4,5,6)

armor += defence = total_protection
total_protection-=enemy_damage

if total_protection < 1
{
show_message("You fail at this game")
}```

Well, then having only one armor stats and use the above example is a little easier :

```well the simplest way is to have
phyarmor=10
enemy_nonmage_damage=20

enemy_nonmage_damage-phyarmor=damage_taken```

• 0

#16 GMkizzle

GMkizzle

GMC Member

• GMC Member
• 374 posts

Posted 04 July 2009 - 10:41 AM

Damn, my head hurts. There should be a way of calculating a lined amount of every stats with level like lv1=10, lv2=12, lv3=14, lv4=16 and so on but cant figure out how unsure.gif !

EDIT:

Because manually adjusting each lvl is a lot of work mellow.gif

if level+=1
{all_stats+=1}

edit: and i think this should work

all_stats = wis && str && etc

Edited by GMkizzle, 04 July 2009 - 10:43 AM.

• 0

#17 Tails211

Tails211

GMC Member

• New Member
• 80 posts

Posted 04 July 2009 - 10:42 AM

Do you need anymore help?
• 0

#18 martinalexander

martinalexander

GMC Member

• New Member
• 167 posts

Posted 04 July 2009 - 10:45 AM

Do you need anymore help?

Well, not atm, need to sort this out and try it out, but if I do I come back to you . Thanks a lot!
• 0

#19 Tails211

Tails211

GMC Member

• New Member
• 80 posts

Posted 04 July 2009 - 10:47 AM

Could you instead of have both armor stat and resistance stat only have Physical Resistance and Magic Resistance, and make armor raise the correct resistance, that would make it a little simpler (just thinking loud ) !?

Could you explain this a bit better, give an example and then I can help you more.
• 0

#20 martinalexander

martinalexander

GMC Member

• New Member
• 167 posts

Posted 04 July 2009 - 10:52 AM

Could you instead of have both armor stat and resistance stat only have Physical Resistance and Magic Resistance, and make armor raise the correct resistance, that would make it a little simpler (just thinking loud ) !?

Could you explain this a bit better, give an example and then I can help you more.

Well, think it is a little unnecessary to have both physical armor, magic armor + physical resistance, magical resistance, and instead just go for plain armor!
• 0

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users