Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Simplifying stats and actor equipment
kowbrainz
post Nov 26 2012, 01:04 AM
Post #1


Level 1
Group Icon

Group: Member
Posts: 11
Type: Developer
RM Skill: Intermediate




I'm trying to make a game which uses three forms of equipment (weapon, armor and accessory) and where all actor and enemy stats are set super low so that every stat point counts. Sort of like how the Paper Mario games set up their stats.

I've heard that the default RPG Maker XP algorithms aren't really suited for games like this, so some help with changing this would be greatly appreciated. Also with the equipment -- while I have a basic understanding of programming in Java, C and Python, my efforts to tweak the default code haven't been very fruitful. :/
Go to the top of the page
 
+Quote Post
   
Jens of Zanicuud
post Nov 26 2012, 08:43 AM
Post #2


Dark Jentleman
Group Icon

Group: Local Mod
Posts: 904
Type: Scripter
RM Skill: Skilled
Rev Points: 120




Well, let's say RMXP default system is kinda crappy, but you can bend it to your own requirements.

Let's say... do you know how attack damage is calculated?
Here's the formula:

(Attacker's atk - Target's phy def/2)* (20 + Attacker's strength) / 20

This means that if you want to do little damages, you just have to lower Weapons' atk to a number between 3 and 10 and set enemies' physical defence to a number between 1 and 5. If, for example, your hero's strength is 24 and he's equipped with a weapon with atk == 5, against an enemy with phy def == 4:

damage = (5 - (4/2))*(20+24)/20 = 3*44/20 = (about) 6

if, for example, hero's stregth is 16:

damage = (5 - (4/2))*(16+24)/20 = 3*40/20 = (exactly) 6

So, as you can see, a four points separation has no effect on the damage itself.
To change this, open your script editor and edit Game_Battler 3, line 50 - 51:

Replace this:
CODE
atk = [attacker.atk - self.pdef / 2, 0].max
      self.damage = atk * (20 + attacker.str) / 20


with this:
CODE
self.damage = [attacker.atk*2 + attacker.str - self.pdef, 0].max


that is, damage is calculated as

(Attacker's atk*2 + Attacker's strength) - Target's phy def

With this calculation, you'll be allowed to do little damages with little stats. Each point of attack will be a point of damage, as well as each point of strength.

As regards your equipment issues... this seems a script request, so this isn't the right place to ask that for.
It's a minor modification, however. No need to become mad 'bout it. Try browsing Google for that. If you don't find anything, post a help topic on the Script Development and Support section.

I hope this can help,

Jens


__________________________
"Thorns are the rose's sweetest essence..."
-Jens of Zanicuud


Games I'm working on:
>

official website: TryAdIne eFfeCt

>

Games I worked on (mainly as a scripter):
>
(Warning: it's a 3rr3's project and it's in Italian!)


Awards

Go to the top of the page
 
+Quote Post
   
kowbrainz
post Nov 26 2012, 12:20 PM
Post #3


Level 1
Group Icon

Group: Member
Posts: 11
Type: Developer
RM Skill: Intermediate




Thanks a bunch biggrin.gif

Yeah I was considering making another thread but I figured I would post the problem here just in case someone knew a quick fix. I'll have a poke around though, maybe post another topic later.

Cheers again, anyway smile.gif
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 25th May 2013 - 07:23 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker