@TheoAllen Thank you. I now understand.
Script Call Support Boards
RPG Maker VXAce SupportEDIT
I have seen how to do what I wanted to do, so this post is superfluous.
I have seen how to do what I wanted to do, so this post is superfluous.
This is probably super-easy, but...
What is the scriptcall equivalent of "Has item x in inventory?" for a conditional branch?
What is the scriptcall equivalent of "Has item x in inventory?" for a conditional branch?
Code:
$game_party.has_item?(item_goes_here)
Thank you.
Is there a way to check if an attack from a battler is of a particular element for a conditional branch? Or, if not, if the attack is a particular skill?
You can check what skill was used and even the element of it... But when exactly do you want to check it? That would be what decides the how to do this...
Is it possible to check before it hits?
If you mean "before inflicting damage" then you can do it using a damage formula, otherwise you can do it only with a script that changes how hits are calculated. Even so, when and how to do it still depends on what you want to achieve. As you have already been told, if you give us more details, we might be able to provide more help.
I'm using Hime's Cover Conditions (http://himeworks.com/2013/11/cover-conditions/) and I'm trying to define the condition for a particular battler to be covered as being hit by any skill with a certain element.
@kj3400 As this relates to using a particular script, rather than a script call which works using the engine itself, you will need to post a thread in RGSSx Script Support. This particular thread is not for resolving script specific issues.
Is there a script call that I can use in a conditional branch, that would let me determine if an enemy with ID x is currently alive in a battle?
It depends on what you mean by "ID". If by ID you mean the position of that enemy in the troop array, it is possible to use this:
If you want to check it by enemy ID, it is still possible, but it requires a completely different approach.
This last code returns true if at least one enemy with that ID is alive, false otherwise.
Code:
$game_troop.members[ID].alive?
If you want to check it by enemy ID, it is still possible, but it requires a completely different approach.
Code:
$game_troop.members.any? { |member| member.enemy_id == ID && member.alive? }
This last code returns true if at least one enemy with that ID is alive, false otherwise.
@Heirukichi I'm a bit late on the response, but thank you very much for your help! 👋
Is there by chance a script call to check if any of the first 4 actors if your party has a specific weapon/armor ID equipped?
Is there by chance a script call to check if any of the first 4 actors if your party has a specific weapon/armor ID equipped?
EDIT: Dah, ignore that. Did not see that this was for RPG Maker VX Ace.
Right, but it's Ace script call board.
Use this
Code:
$game_party.members[0..3].any? {|m| m.armors.any?{|ar| ar.id == <specify here>} || m.weapons.any? {|wp| wp.id == <specify here>}}
So, can anyone help me out here? I checked the script call list a few times but I don't believe I saw it.
I'm looking for a script call(s) that will refresh either the battle scene or the player inventory. I don't know if they exist or not.
Basically, I'm using a strange battle system along with a script that allows for items to be stolen from enemies. They seem to be compatable for the most part, except I can only access the items I've stolen after the battle. I appreciate any help you are willing to give me.
I'm looking for a script call(s) that will refresh either the battle scene or the player inventory. I don't know if they exist or not.
Basically, I'm using a strange battle system along with a script that allows for items to be stolen from enemies. They seem to be compatable for the most part, except I can only access the items I've stolen after the battle. I appreciate any help you are willing to give me.
Your query would be better if you post this in RGSSx Support and provide the link to your "strange battle system" script and item steal. Provide as much as info as possible because this particular topic thread is for script call that has nothing to do with someone's script.
Oh, I see. I'm sorry I thought this was the place to post all script call related things. I just wanted to know if "battle_refresh/update" or if "inventory_refresh/update" existed as like manual script calls.
Original thread: https://forums.rpgmakerweb.com/threads/script-call-support-boards.25767/