Hi
I'm using Yanfly's Learn skill and JP manager scripts. I manged to show the jp in the status
screen and put all the note tags in but it does not add to the total jp. what am I missing?
script help
● ARCHIVED · READ-ONLY
-
-
please link to the scripts, so that we can read it's description - otherwise helping becomes difficult.
-
These are the note tags:
Unless you were in battle, there is no way to gain JP through note tags. If you put the tags on an actor or class, that is a modifier of how much JP they will receive. NOT how much they will obtain. To give an actor JP without battling you have to use these script calls:Spoiler# -----------------------------------------------------------------------------# Actor Notetags - These notetags go in the actors notebox in the database.# -----------------------------------------------------------------------------# <jp rate: x%># Changes the JP earned rate to x%. This affects JP earned and not JP directly# gained. If this notetag isn't used, the object will default to 100%.# # -----------------------------------------------------------------------------# Class Notetags - These notetags go in the class notebox in the database.# -----------------------------------------------------------------------------# <jp rate: x%># Changes the JP earned rate to x%. This affects JP earned and not JP directly# gained. If this notetag isn't used, the object will default to 100%.# # -----------------------------------------------------------------------------# Skill Notetags - These notetags go in the skills notebox in the database.# -----------------------------------------------------------------------------# <jp gain: x># When the actor successfully hits an target with this action, the actor will# earn x JP. If this notetag isn't used, the amount of JP earned will equal to# the ACTION_JP constant in the module.# # -----------------------------------------------------------------------------# Item Notetags - These notetags go in the items notebox in the database.# -----------------------------------------------------------------------------# <jp gain: x># When the actor successfully hits an target with this action, the actor will# earn x JP. If this notetag isn't used, the amount of JP earned will equal to# the ACTION_JP constant in the module.# # -----------------------------------------------------------------------------# Weapon Notetags - These notetags go in the weapon notebox in the database.# -----------------------------------------------------------------------------# <jp rate: x%># Changes the JP earned rate to x%. This affects JP earned and not JP directly# gained. If this notetag isn't used, the object will default to 100%.# # -----------------------------------------------------------------------------# Armour Notetags - These notetags go in the armour notebox in the database.# -----------------------------------------------------------------------------# <jp rate: x%># Changes the JP earned rate to x%. This affects JP earned and not JP directly# gained. If this notetag isn't used, the object will default to 100%.# # -----------------------------------------------------------------------------# Enemy Notetags - These notetags go in the enemy notebox in the database.# -----------------------------------------------------------------------------# <jp gain: x># Changes the amount of JP gained for killing the enemy to x. If this notetag# isn't used, then the default JP gain will be equal to the amount set in the# module through the constant ENEMY_KILL.# # -----------------------------------------------------------------------------# State Notetags - These notetags go in the states notebox in the database.# -----------------------------------------------------------------------------# <jp rate: x%># Changes the JP earned rate to x%. This affects JP earned and not JP directly# gained. If this notetag isn't used, the object will default to 100%.
SpoilerCode:$game_actors[x].earn_jp(y)# $game_actors[x].earn_jp(y, z)# This will cause actor x to earn y amount of JP. JP earned will be modified by# any JP Rate traits provided through notetags. If z is used, z will be the# class the JP is earned for.# # $game_actors[x].gain_jp(y)# $game_actors[x].gain_jp(y, z)# This will cause actor x to gain y amount of JP. JP gained this way will not# be modified by any JP Rate traits provided through notetags. If z is used,# z will be the class the JP is gained for.# # $game_actors[x].lose_jp(y)# $game_actors[x].lose_jp(y, z)# This will cause actor x to lose y amount of JP. JP lost this way will not be# modified by any JP Rate traits provided through notetags. If z is used, z# will be the class the JP is lost from. -
Thanks for responding. It would be cool if I could also see the total JP. I'll still use the scrip. But I don't know how to use the $game_actors[x]. earn_jp(y) script call properly. My print screen doesnt work so I just type it.
I get an error on line 1409 Game Interpreter. undefinded local variable or method 'x' for #<Game_Interpreter: 0x8bd3adc>.
def command_355
script = @list[@index].parameters[0] + "\n"
while next_event_code == 655
@index += 1
script += @list[@index].parameters[0] + "\n"
end
eval(script)
end
end
Im using Yanflys message system, button common events, JP manager scripts and learn skill scripts. Khas Sapphire Action system, HUD scripts. and modern algebra quest scripts
Yanflychannel.wordpress.com
http://rmrk.net/index.php/topic,45127.0.html
arcthunder.blogspot.com.br/p/rpg_maker.html -
You do not type in the x or y, you need to replace them with the numbers that are correct for your game.Thanks for responding. It would be cool if I could also see the total JP. I'll still use the scrip. But I don't know how to use the $game_actors[x]. earn_jp(y) script call properly. My print screen doesnt work so I just type it.
I get an error on line 1409 Game Interpreter. undefinded local variable or method 'x' for #<Game_Interpreter: 0x8bd3adc>.
X has to be replaced by the ID of the actor - who should get the JP?
Y has to be replaced with the number of JP to be added - how many JP should actor X get? -
Thanks, I was putting the name of the character for x instead of the ID. :)
-
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.