Make a skill temporarily change basic "attack" command

Joined
Aug 17, 2018
Messages
3
Reaction score
1
First Language
English
Primarily Uses
RMVXA
I want to make a skill, when activated, change the normal "attack" command into something else. The new command will still say "attack", as it is the basic attack. All I want different on the new attack is how the damage is calculated. This skill will apply it as a state, and the state will end a few turns later, so that the new attack will be written back over by the old.


My coding ability is weak sadly, help is appreciated!
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
'Scripts' is where people who have written a completed script they want to share with others can post it.

[move]RGSS3 Script Requests[/move]
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,599
Reaction score
6,552
First Language
Indonesian
Primarily Uses
RMVXA
In a simple way, it would be like this
Code:
class Game_Actor
  def attack_skill_id
    return <whatever the new attack id> if state?(<put state ID here>)
    return 1
  end
end
 
Joined
Aug 17, 2018
Messages
3
Reaction score
1
First Language
English
Primarily Uses
RMVXA
@Kes - my apologies

@ TheoAllen - exactly what I was looking for. Thanks!
 

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
Or if all you want is the damage to be different, you can also just do that on the damage formula of the Attack skill itself. something like

Code:
if a.state?(id);new_damage;else;normal_damage
 

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

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,476
Members
137,824
Latest member
dobratemporal
Top