Heya, so I've got some very basic questions about Common Events Script Calling:
----------------------------------------------------
[ Final Edit: Turns out it was a formatting issue on the script call side of things (thanks A Moonless Night for helping me with that!) combined with me needing to relearn about Public Instance Variables and their relations to classes.
All sorted now and I'm on track to get what I want done done!
Thanks for all the help! ]
----------------------------------------------------
For the life of me I can't get my Skill Activated Common Events to do the script I want it to.
Say I do this in the Script Editor:
(Edit 2: This method is in the Game_Actor < Game_Battler class)
def sarah_action_turn
@s_a_turn = 1
sarah_action_turn = @s_a_turn
p(sarah_action_turn)
end
And then I make a common event that activates when a skill (let's say Strong Attack) is used...
How do I make that common event skill add 1 to the s_a_turn variable?
I've tried @s_a_turn += 1
I've tried writing it with class and a new method
Heck, I've even tried just asking it to p(@s_a_turn) or p(sarah_action_turn)
But no matter what I do, nothing comes up in my console.
What am I doing wrong?
How do I make Script Calls in common events worrrrrrrrk?
I realise this is super simple, but I can't find any good tutorials on this and the things I'm trying aren't working.
Help please.
----------------------------------------------------
[ Final Edit: Turns out it was a formatting issue on the script call side of things (thanks A Moonless Night for helping me with that!) combined with me needing to relearn about Public Instance Variables and their relations to classes.
All sorted now and I'm on track to get what I want done done!
Thanks for all the help! ]
----------------------------------------------------
For the life of me I can't get my Skill Activated Common Events to do the script I want it to.
Say I do this in the Script Editor:
(Edit 2: This method is in the Game_Actor < Game_Battler class)
def sarah_action_turn
@s_a_turn = 1
sarah_action_turn = @s_a_turn
p(sarah_action_turn)
end
And then I make a common event that activates when a skill (let's say Strong Attack) is used...
How do I make that common event skill add 1 to the s_a_turn variable?
I've tried @s_a_turn += 1
I've tried writing it with class and a new method
Heck, I've even tried just asking it to p(@s_a_turn) or p(sarah_action_turn)
But no matter what I do, nothing comes up in my console.
What am I doing wrong?
How do I make Script Calls in common events worrrrrrrrk?
I realise this is super simple, but I can't find any good tutorials on this and the things I'm trying aren't working.
Help please.