RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
fromula little modifications

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 87
it must be simple i want it so the damage is equal to attacker attq - defender defence

if the defender is defending the damage is halved 

 the second thing would for skills  it should 

(inteligence xskill  rating)/10 if magic
(attack xskill  rating)/10        if physical attck skill

but what i need is that the attck value is equal to str + weapon power that's what you see in the stat menu

i need this to so the difficulty managing becomes easier and my freinds are used to this and there are game feature in the game that require that

i hope it's possible and thanks in advance

yes and what line should i modifiy in the script

**
Rep:
Level 87
i know this is possible a dood explained me the skill thing so i know that what i was asking for was stupid so

can i do it

attk+str -enemie def =damage

and is it possible to make the attque stat equal to weapon pow +str to simplyfie the formula event more if

imposible say so so i don't have to wait for an answer that isn't to come

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
umm, no it is possible. But there are two questions. First, what battle system do you use. This is important because modifying the formulas for default does nothing if you use RTAB or any other battle system. Second, post the script so that someone can do it for you.

**
Rep:
Level 87
simple side view but i minght find an animated side view since i asked in an other topic for it i can seem to find one that works

**
Rep:
Level 87
isn't it just changing a line in battler three ?

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Code: [Select]
erm... kind of.

This is the regular battle formula (for damage on you), found in Game_Battler 3 around line 50 or so

[code]if hit_result == true
      # Calculate basic damage
      atk = [attacker.atk - self.pdef / 2, 0].max
      self.damage = atk * (20 + attacker.str) / 20
      # Element correction
      self.damage *= elements_correct(attacker.element_set)
      self.damage /= 100
      # If damage value is strictly positive
      if self.damage > 0
        # Critical correction
        if rand(100) < 4 * attacker.dex / self.agi
          self.damage *= 2
          self.critical = true
        end

and yes, most battle systems retain this. But some overwrite it and make their own battle formulas, which is why it matters which battle system you use.\

In any case:

atk = [attacker.atk - self.pdef / 2, 0].max # takes the higher of (attack - pdef) / 2 and 0.
      self.damage = atk * (20 + attacker.str) / 20 # damage calculated by multiplying the value above by (20 + stength) / 20

And then the subsequent lines correct for elemental effect, like Fire and stuff.

And then there are criticals.

If you wanted it to just be attk+str -enemie def =damage, then you would do this:

self.damage = attacker.str + attacker.atk - self.pdef
so it looks like this:

Code: [Select]
      # Calculate basic damage
      self.damage = attacker.atk + attacker.str - self.pdef
      # If you don't want elemental effect delete the three lines below this
      # Element correction
      self.damage *= elements_correct(attacker.element_set)
      self.damage /= 100
      # If damage value is strictly positive
      if self.damage > 0
        # If you don't want critical hits, delete the 5 lines below this
        # Critical correction
        if rand(100) < 4 * attacker.dex / self.agi
          self.damage *= 2
          self.critical = true
        end
        #if you don't want defend to do anything, delete the 4 lines below this:
        # Guard correction
        if self.guarding?
          self.damage /= 2
        end
      end


[/code]
« Last Edit: July 14, 2007, 11:07:04 PM by modern algebra »

**
Rep:
Level 87
yay  thanks dood and here :-*