- Joined
- May 19, 2015
- Messages
- 62
- Reaction score
- 2
- First Language
- Italian
- Primarily Uses
- N/A
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:
And here is the method I implemented:
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
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:

Game_Actor.help($game_action)
#==============================================================================# ** 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
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