RPG Maker Forums

Hi guys. :)  

I'm new to rgss3 script making even if I know a couple of scripting languages.

In my project I use a lot of script made by others, but since I'd like to make something on my own I started to write this should-be-easy script just to learn the basics.

Basically it works like this:
I have this skill called "Help" which is usable only when at least a member of the party is unmovable(I'm using Yanfly Skill Restriction to do this).
When it's used it removes "trapped" state(basically the paralyze one), it removes "stunned" state, it removes "asleep" state and then starts this common event "help" which only has to call a method I've implemented in Game_Actor.
And I already have troubles doing this and I don't know how to call the method correctly.

Here's the error:

Here's the call:

Game_Actor.help($game_action) 
And here is the method I implemented:

#==============================================================================# ** Game_Actor#==============================================================================class Game_Actor < Game_Battler def help(action) if action == $data_skills[134] if subject.death_state? if subject.state?(2) && $game_party.has_item?(6) $game_party.consume_item(6) subject.remove_state(2) subject.remove_state(1) if $game_party.has_item?(18) subject.hp_rate += 0.25 $game_party.consume_item(18) elsif $game_party.has_item?(3) subject.hp_rate += 1.00 $game_party.consume_item(3) end elsif subject.state?(4) && $game_party.has_item?(6) $game_party.consume_item(6) subject.remove_state(2) subject.remove_state(1) if $game_party.has_item?(18) subject.hp_rate += 0.25 $game_party.consume_item(18) elsif $game_party.has_item?(3) subject.hp_rate += 1.00 $game_party.consume_item(3) end else subject.remove_state(1) if $game_party.has_item?(18) subject.hp_rate += 0.25 $game_party.consume_item(18) elsif $game_party.has_item?(3) subject.hp_rate += 1.00 $game_party.consume_item(3) end end end end endend 
Now, I know it's not the most beautiful script, I just started understanding how RGSS3 works, of course I'll add comments in the next part and I'll try to make it more generic.

For now I want to understand what's wrong with my script call from the common event.
If you can tell me how it should be done and why, I'd be grateful!

Basically once the method starts, it checks if the action used is the skill "Help" (probably it's useless since it's "Help" that calls the method) and then checks if the target(subject) is dead (if not it simply ends here). If the character is dead it checks if other states are applied(in my game death state doesn't remove every other state. Achieved using "Stop State Removal on Death" by Gamesfreak13563)

and then removes them only if the party has some items or not(which are used in the end). 

As I said the script should be very easy that's why I'm posting it here and not in "Script Request" since I'd like to make it on my own of course using your help, tips and teachings.

Thanks a lot for reading through this and thanks in advance to all those who are going to spend some time with me  :D

Latest Threads

Latest Posts

Latest Profile Posts

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.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,018
Messages
1,018,357
Members
137,803
Latest member
andrewcole
Top