@Roninator2 Thank you!!!!!
You have dug me out of a big hole, and I am very grateful.
You have dug me out of a big hole, and I am very grateful.
I'm curious to know why?
I don't believe you can use a script call check as something like that doesn't exist AFAIK.
module R2_Last_Skill_Check
Variable = 7
end
class Scene_Skill < Scene_ItemBase
alias r2_on_item_var_ok on_item_ok
def on_item_ok
$game_variables[R2_Last_Skill_Check::Variable] = item.id
r2_on_item_var_ok
end
end
class Scene_Battle < Scene_Base
alias r2_on_skill_var_ok on_skill_ok
def on_skill_ok
$game_variables[R2_Last_Skill_Check::Variable] = @skill_window.item.id
r2_on_skill_var_ok
end
end
Thanks! But I'm not entirely sure if this would work (or at least, how should I use it to implement it).
If $game_troop.members.last_action = $game_variables[7]
FORMULA
end
That makes it much more complicated.
def execute_action
scene_battle_execute_action_lsta
@subject.run_lunatic_states(:while)
end
def run_lunatic_states(type)
for state in states; lunatic_state_effect(type, state, self); end
end
Yeah, I was checking the game_battler.action a lot to see if something related to the type of skill could be called to check. But as I'm not too skilled with coding I might be missing something.
$game_system.save_bgm$game_system.replay_bgmclass Game_System
# Many lines of code here
def save_bgm
@saved_bgm = RPG::BGM.last
end
#--------------------------------------------------------------------------
# * Resume BGM
#--------------------------------------------------------------------------
def replay_bgm
@saved_bgm.replay if @saved_bgm
end
e.g. if you're on the World Map (Tileset ID is 001:Field), this item may be used...
# * Tileset ID Checker XP & ACE * #
# Scripter : Kyonides Arkanthes
# 2024-02-21
# * Script Call * #
# $game_map.tileset?(TilesetID)
class Game_Map
def tileset?(t_id)
@map.tileset_id == t_id
end
end
It would, yes! Utilizing the Map ID was a system I actually tested out initially.
$game_actors[id].change_equip_by_id(slot, equip) if $game_actors[id]Being discussed in this thread.
Original thread: https://forums.rpgmakerweb.com/threads/script-call-support-boards.25767/