About custom formulae

rpglover88

Rpg & Anime Maniac
Veteran
Joined
May 12, 2013
Messages
169
Reaction score
24
First Language
French
Primarily Uses
Im trying to make a skill that hurts the enemy but heal, revive and cure all allies like one of the summons in Golden Sun.

So heres my 2 questions:

1. Is there a way i can make a formula that could damage the enemy and at the same time, heal, cure and revive the whole party? Or do i need to make a common event or something like that?

2. How can i make a skill animation that could target both the party and the enemy?

I wasnt sure where to post this. I hope im not in the wrong section.

And thank you to anyone who can help me with this little problem.  :D
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
There is a thread here for the custom formula, you can learn a lot from there...

1) Well, if it's enemy targeted and heals the party as a side effect, you can use the formula bar for that...

2) If you want animations to be shown correctly for the actor party, you'd need some script for that because the default battle system doesn't have actor battlers or designated position placeholders which is why the animations aren't shown correctly... most battle system script does it by default though...

but if your question is simply how to show one animation that looks like it target's both the enemy and the party, well it depends...

if it hits all enemies and the whole party, then you can simply do trial and error for the positioning of the animation in the animation tab and set the animation target to screen until you get it to look like it's hitting the enemy and the party...

but if it's only for specific targets then it makes thing a bit more difficult...
 
Last edited by a moderator:

rpglover88

Rpg & Anime Maniac
Veteran
Joined
May 12, 2013
Messages
169
Reaction score
24
First Language
French
Primarily Uses
1. Thats what i thought. But im not really sure what i should write. Im not really good at stuff like that.

2. Im using a behind view battle system. What i want to do is use the holy all 2 animation against the enemy party, a recovery 3 animation for the party and a revive animation instead of the recovery 3 only for party members who are KO. I already thought of ur trial and error idea but what i want to know is how can i remove the recovery 3 animation for KO'ed party members and replace it with a revive animation?
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
1) well you can always use CE for that, if you're more comfortable with CE...

2) Oh... that thing is quite not easy as the animation to be played per actor will depend on his current status... it would probably need to be scripted since there is no event command for playing battle animation for the party/individual actors
 
Last edited by a moderator:

rpglover88

Rpg & Anime Maniac
Veteran
Joined
May 12, 2013
Messages
169
Reaction score
24
First Language
French
Primarily Uses
If i knew how to do it with common events, i wouldnt be asking for help. I think i could do it with a formula but theres just one thing im not sure how to do. If i choose hp damage as the damage type, how can i change to hp recovery to heal the party or vice versa? I dont use damage formulas alot, so its abit confusing.

And alright, thank you. Ill try searching a script that could do something like that or ill just request one if i cant find one.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
 If i choose hp damage as the damage type, how can i change to hp recovery to heal the party or vice versa?
You don't change it - that's why adiktuzmiko referred you to the topic about custom damage formulas.

The field for the damage formula isn't a simple numeric field, it's processed for ruby code - you can place any sequence of several ruby functions in there, and only the last resulting number will be used as a damage number - everything you program in before that number will be processed but then ignored by the skill's damage calculation.

The topic (sorry, don't have the link myself at the moment, search the forum for "custom damage formulae") will provide you with lots of examples what you'll have to write into the damage formula field to get what other effect.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Well you can use the event commands like Change HP, change MP etc for the common event...

I really suggest that you practice on this a lot... you can start out with more basic ideas until you get used to it... 

There are tutorials here that can help you a lot (like utilizing variables, switches, basics of eventing, database etc)... better start out with those...
 
Last edited by a moderator:

rpglover88

Rpg & Anime Maniac
Veteran
Joined
May 12, 2013
Messages
169
Reaction score
24
First Language
French
Primarily Uses
@Andar: I already read that topic 3x. I learned a few things but im still not sure how to do the formula im searching for.

@adiktuzmiko: Those commands are used to change the max HP/MP of an actor, no? But i guess the Recover all command could do what i need. No idea why i didnt think of that earlier.

Thanks to both of you for your help :D
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
NOPE... they (Change HP/MP) change the current HP/MP... the change parameters command is the one that can be used to change the max hp/mp
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top