Vis_Mage

Novice Magician
Veteran
Joined
Jul 28, 2013
Messages
673
Reaction score
218
First Language
English
Primarily Uses
RMMV
I have a bit of a question, I'm using an action battle system in my game (Falcao Pearl ABS), so the battles don't take place in the battle scene. I'm using the AP level up module, so I was wondering if there was either:


1. Any way to make the AP be given outside of the battle scene? 


Or


2. Is there a script call that I can use to give AP to the party?
 

Selchar

Veteran
Veteran
Joined
Dec 28, 2012
Messages
299
Reaction score
82
First Language
English
Primarily Uses
The code used to give AP to the battle party at the end of the battle is


$game_party.battle_members.each do |actor|
actor.gain_equip_ap($game_troop.ap_total) unless actor.death_state?
end


I just checked and it works fine as a script call.  Simply change $game_troop.ap_total to however much ap you want to give to the party.  However I imagine the equip level up message would be a hindrance in an action battle system so if needed then within the Leveling by AP script find line 64 which should be i.equip_level_message(self.name, i) and either remove it or comment it out.


I'm not all that familiar with Falcao's ABS so I haven't tested it with that to see if there's anything else that needs doing but I hope this helps.
 

vork88

Veteran
Veteran
Joined
May 5, 2016
Messages
55
Reaction score
0
First Language
English
Primarily Uses
The code used to give AP to the battle party at the end of the battle is



$game_party.battle_members.each do |actor|
actor.gain_equip_ap($game_troop.ap_total) unless actor.death_state?
end


I just checked and it works fine as a script call.  Simply change $game_troop.ap_total to however much ap you want to give to the party.  However I imagine the equip level up message would be a hindrance in an action battle system so if needed then within the Leveling by AP script find line 64 which should be i.equip_level_message(self.name, i) and either remove it or comment it out.


I'm not all that familiar with Falcao's ABS so I haven't tested it with that to see if there's anything else that needs doing but I hope this helps.i am using the exp not ap
 

Selchar

Veteran
Veteran
Joined
Dec 28, 2012
Messages
299
Reaction score
82
First Language
English
Primarily Uses
That reply was for Vis_Mage but due to design decisions the instructions for the exp version is almost identical.  As for your other problem I think it would be caused by a change to the leveling base script line 46.  By default it is


Level_Prefix = ' +%s'


Where the % is where the equip's level would end up.  If you removed the % then the level wouldn't show.
 

vork88

Veteran
Veteran
Joined
May 5, 2016
Messages
55
Reaction score
0
First Language
English
Primarily Uses
That reply was for Vis_Mage but due to design decisions the instructions for the exp version is almost identical.  As for your other problem I think it would be caused by a change to the leveling base script line 46.  By default it is


Level_Prefix = ' +%s'


Where the % is where the equip's level would end up.  If you removed the % then the level wouldn't show.OH sorry

That reply was for Vis_Mage but due to design decisions the instructions for the exp version is almost identical.  As for your other problem I think it would be caused by a change to the leveling base script line 46.  By default it is


Level_Prefix = ' +%s'


Where the % is where the equip's level would end up.  If you removed the % then the level wouldn't show.

Thanks that help
 

TheChatotMaestro

doesn't know what she's doing
Veteran
Joined
Oct 27, 2017
Messages
43
Reaction score
1
First Language
English
Primarily Uses
RMMV
Is there a script call that I can use to reference the level of an armor? You'll only ever get one of them through the whole game, and there's a point where you need a certain level of the armor in order to get something else.
 
Last edited:

CoGDork

That's Me!
Veteran
Joined
Jun 4, 2014
Messages
228
Reaction score
38
First Language
English
Primarily Uses
RMVXA
What precisely does the "price" thing do in the leveling base scripts? Is it as simple as it sounds (how much exp/gold/whatever needed to level up) or is it something more complicated?
 

Selchar

Veteran
Veteran
Joined
Dec 28, 2012
Messages
299
Reaction score
82
First Language
English
Primarily Uses
Price in the Base scripts is simply how much the equipment is worth, an adjustment to how much money you earn from selling it after each upgrade.

The Shop Upgrade Scene has a Price Mod which determines how much each upgrade costs, determined by said price.
 

SailorRose

Pietro Fattorello
Member
Joined
Oct 31, 2016
Messages
19
Reaction score
51
First Language
Spanish
Primarily Uses
RMVXA
Sorry for bumping an old thread, but I'm using the equipment upgrade scene for a blacksmith type store... And whenever I bring up the scene, it's all empty even though my character has all of his armor and weaponry equipped.

I have to unequip his items in order to see them. Any idea what might be causing this?
 

EVXA

Veteran
Veteran
Joined
Aug 20, 2020
Messages
32
Reaction score
0
First Language
English
Primarily Uses
RMVXA
Found Error in your Upgrade Scene...
To prevent odd behavior of crash when you click on the the blank entry
No_Selected_Item = "Have anything for me to see?", crashes if allowed.

def enable?(item)
return false unless item # I added this
return true if item.is_a?(RPG::EquipItem) && item.can_level unless item.level == 0 or item.max_level == 10
end

Alternate Fix

def include?(item)
if item.is_a?(RPG::EquipItem) && item.can_level
!item.is_a?(RPG::Item)
end
end

Additional Fix, for reverse repair, Upgrade Scene

def pre_upgrade_corrections
item.exp = 250 * (item.level-1) if $imported[:Sel_Equip_Exp_Leveling]
#item.exp = item.exp_to_level if $imported[:Sel_Equip_Exp_Leveling]
end
end

#--------------When Using The Level Down or Up Too I guess ---------------
ef on_item_ok
$game_party.lose_gold(item.level_upgrade_price) unless item.level == (item.max_level-9)
pre_upgrade_corrections
item.level_down # item.level_up
@gold_window.refresh

#----FOR Script: Instance Equip Leveling by Exp Ver. 1.03----
Default_Exp_Curve = '(level+1)*250'

---Lastly a patch for TheoAllen - Limited Inventory
# Version : 1.4c---
ForceGain = true

----REMOVE THE OVERWRITE WITH #'s--------# Overwrite : Trade item with party---------

#----Add #'s----This fixes alot of conflicts

#def lose_item(item, amount, include_equip = false)
#force_gain_item(item, -amount, include_equip)
#end


---------------------------------------------------------
UPGRADE SCENE allows all items to be treated as Durability Repairing.
While Keeping EXP AMOUNT TO ADD LVUP WORKING, so you just need...

Level_Prefix = -'%s'
Or Level_Prefix = '%s' Just # as I'm doing, where I simply marked all repairable equips with a - in their name directly which bypasses the issue of adding a custom lvl up, place a +in the name such as "Sword+"

For "Sword-"These Blades Need to be Repaired.
<can level>
<mult level atk: 0.70>
<mult level mat: 0.70>
if say<max level: 9> is default
For "Sword+"These Blades Need to be Repaired.
<can level>
<static level atk: 10>
<static level mat: 2>
<max level: 10> or whatever #

You can follow up with codes like in Upgrade Script
def enable?(item)
return false unless item
return true if item.is_a?(RPG::EquipItem) && item.can_level unless item.level == 0 or item.max_level == 10
end

def update_help#Modified :If Can_Not_Upgrade, item lv/max lv == #'s
else
if !item.can_level || item.level == 0 or item.max_level == 10
@help_window.set_text(TH_Instance::Scene_EquipUpgrade::Can_Not_Upgrade)

FINALLY EDIT THE ARROWS IN UPGRADE SCRIPT

def draw_param_name_arrow(x, y, param)
draw_param_name(x, y*line_height, param)
draw_right_arrow(x+172, y*line_height)
end

def draw_param_name(x, y, param_id)
change_color(system_color)
draw_text(x, y, 160, line_height, Vocab::param(param_id))
end

def draw_current_param(x, y, param)
change_color(normal_color)
draw_text(x, y, 160, line_height, param.to_s, 2)
end

def draw_right_arrow(x, y)
change_color(system_color)
draw_text(x, y, 22, line_height, "→", 1)
end

def draw_new_param(x, y, old_param, new_param)
change_color(param_change_color(new_param - old_param))
draw_text(x, y, 10, line_height, new_param, 2)
end

-----------------------------------------------
Weapon Evolutions can be tossed in for good measure for special weapons.
<exp to evolve: 50000>
<evolve to: 29>
Which won't conflict, then if you have another crafting SCRIPTto can make
TEMPERED +1 WEAPONS EXAMPLES SUCH AS....
ID 24"Sword+1"
ID 25"Sword+2"
ID 26"Sword+3"
ID 27"Sword+4"
ID 28"Sword+5"
ID29"Magic Sword" Text Does Not Break.
^These are the same as the Exp LVing + Weapons above where + is in the name, as these at +1. custom database items not Instance Items, & to lv them down you simply as <exp to evolve: 29>weapon
<evolve to: 27># whatever data base.

Now you have a repair & fortify system using -/+names & set upgrade pathes & special evolutions, all which are pretty complex uses of your scripts combined with each other working in conjunction to setup a system that normally doesn't work. well, which is why I opted not to use your default DURABILILTY SCRIPTS.
 
Last edited:

EVXA

Veteran
Veteran
Joined
Aug 20, 2020
Messages
32
Reaction score
0
First Language
English
Primarily Uses
RMVXA
Sorry for bumping an old thread, but I'm using the equipment upgrade scene for a blacksmith type store... And whenever I bring up the scene, it's all empty even though my character has all of his armor and weaponry equipped.

I have to unequip his items in order to see them. Any idea what might be causing this?

Yea from what I can tell thats how it works by default, & if you added "Script Theo Inventory" to the mix, you end up able to see the items in the Store if equipped but if you upgrade them they cause a glitched item dup to appear & you can't properly discard them, I'm not sure how to work around that as of yet.

Sorry if this isn't helpful to anyone having the same issue, 3 years a bit to late.
 

Latest Threads

Latest Profile Posts

Hike was successful guys! I made it to the top!
Add Film-like Visual Effects During Test-Play, Deploy Games with Electron | RPG Maker News #69

brain broken as soon as i figure out whats wrong with my game im taking a long nap
Hey guys anyone is interested in playing my game? Just PM me and I'll give you a Steam key! Here's my latest video! ->
cst.PNG
What would you assume this thing was/is?

Forum statistics

Threads
112,182
Messages
1,066,416
Members
145,775
Latest member
Nyakiryu
Top