Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> 


———
Before you ask! Read! ;)

You must have 30+ Posts to create a topic here!

Thanks for reading!
———

 
Reply to this topicStart new topic
> "Mana Shield" State
TNinja
post Dec 28 2011, 11:22 AM
Post #1


Level 10
Group Icon

Group: Revolutionary
Posts: 167
Type: Event Designer
RM Skill: Skilled




Yeah, been making topics again. For what reason.


Anyway, I would like to request something that does something "Mana Shield"-like. The damage goes to mana instead. And relies on SPI if possible.

That would be cool, and I'll invite you to tea. In space.

Of course when the MP is depleted, the rest of the damage goes straight to HP without concideration of the SPI.

This post has been edited by TNinja: Dec 29 2011, 12:55 PM


__________________________
Eye 'em so lolicon.
677,09kb.gif animation incoming, and 20k dancing coconut dude.
Go to the top of the page
 
+Quote Post
   
TNinja
post Jan 25 2012, 06:40 PM
Post #2


Level 10
Group Icon

Group: Revolutionary
Posts: 167
Type: Event Designer
RM Skill: Skilled




I'll just try asking again.


__________________________
Eye 'em so lolicon.
677,09kb.gif animation incoming, and 20k dancing coconut dude.
Go to the top of the page
 
+Quote Post
   
Victimize
post Feb 6 2012, 04:03 PM
Post #3


Level 1
Group Icon

Group: Member
Posts: 8
Type: Event Designer
RM Skill: Beginner




Wouldn't this require a few script edits to include the battle damage calculation that reads from the "Damage MP" in the skill list?
Go to the top of the page
 
+Quote Post
   
kroTcHmasTeR2000
post Feb 7 2012, 03:28 PM
Post #4


Level 2
Group Icon

Group: Member
Posts: 15
Type: None
RM Skill: Advanced




Navigate to the class Game_Battler, line 683 in the standard RGSS2 class list.

Change this:
CODE
@mp_damage = damage


To this:
CODE
if self.mp < damage
  @mp_damage = self.mp
  damage -= self.mp
  @hp_damage = damage
else
  @mp_damage = damage
end


Then, any skill that has the "Damage to MP" option selected will damage MP. If the damage is greater than the target's remaining MP, it will subtract all the remaining MP and the remainder of the damage will come from HP.

I haven't tested this modification, though. Let me know what happens.


__________________________
"A well-written story is ALWAYS based on a really good bad guy."
Go to the top of the page
 
+Quote Post
   
TNinja
post Feb 8 2012, 07:51 AM
Post #5


Level 10
Group Icon

Group: Revolutionary
Posts: 167
Type: Event Designer
RM Skill: Skilled




Oh, when I said "state", I meant the ones like Poison or Paralyze. You inflict yourself with a state that shows all damage into MP instead of HP. And back to HP if there are no MP.


But that one's pretty good stuff, and will most likely use it. IN fact I'll take that right now and say thank you.


Still need help with the state. :V


__________________________
Eye 'em so lolicon.
677,09kb.gif animation incoming, and 20k dancing coconut dude.
Go to the top of the page
 
+Quote Post
   
TNinja
post Mar 8 2012, 08:52 AM
Post #6


Level 10
Group Icon

Group: Revolutionary
Posts: 167
Type: Event Designer
RM Skill: Skilled




Still need help with this, if possible.


__________________________
Eye 'em so lolicon.
677,09kb.gif animation incoming, and 20k dancing coconut dude.
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: 18th May 2013 - 02:11 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker