where did you place that script? It has no class definition etc.
And it looks as if you didn't make your commands available to the game interpreter, which needs a different and additional access than regular script commands.
Does anyone have experience with Yanfly's Equip Engine? I can post the link if anyone needs to see it (in case you can simply read it and tell me what's going on).
My problem is it looks like it is supposed to be able to change the usable equipment in your inventory and it does do that to a point. Yanfly's text says that the Actor's Equipment will take priority over Class and Default. Class Equipment takes priority over only Default. I placed the proper info in the Class notetags and it seems to work to an extent.
The Default list shows as:
Weapon
Shield
Headgear
Bodygear
Accessory.
I added Cloak, Necklace, Boots, Hands and Belt slot, and added another Accessory slot so 11 in total. Also I renamed the Headgear and Bodygear simply as Head and Body. I only have 10 slots in total. They come out looking like this:
Weapon
Shield
Headgear (instead of Head)
Bodygear (instead of Body)
Accessory (instead of Belt)
Hands
Boots
Cloak
Accessory
Accessory
Necklace is completely missing. I have a Belt in my inventory, but since it reads as Accessory in slot 4, I can't equip the Belt. I even tried moving the info from Class Notetags to Actor Notetags and it doesn't make a difference. Any help would be appreciated, Thank you!
Grey Stone
Is there a script call I can use in a conditional which checks if a particular actor is in the active battle party, not just in the general party?
Thanks.
No. Since your using the $game_actors[4] call it goes to the system and looks at the actor index. So even if you had actor 4 and not actor 2 or 3 in the party, in or out of a battle, it would still look for the same actor. I took the code you just used and tested it without the other conditionals you have and it works fine for me, in or out of a battle it still looks for the some person. I think your problem lies with your other nested conditionals.
(P.s. still working on your script. lol)
Are you calling the event outside of battle on purpose? If not, then the dialog will probably still pop up after battle when the target meets the requirements and the actual cause lies somewhere else.
If it is on purpose, you can exchange $game_party.members by $game_party.battle_members to work on the battle members only (see Exhydras post).
I didn't think I was calling the event outside of battle. However, changing the conditional to read
$game_party.battle_members.include?($game_actors[4])
works. The battle goes through without a hitch and there's no dialogue appearing afterwards.
Thanks everyone
(@HollowMonty - your ps - thanks for that too.)
How would I go about adjusting Target Rate, or any S/X parameters for that matter, via script call?
I suggest using a dynamic feature script to adjust those values.
I need to use those values within a damage formula I've written, so that's probably not going to work. Is there not a script call for adjusting X and S parameters similar to 'add_param(id, value)'?
It's not as if I didn't test it out anyway. The instructions have you set it up like this.
add_feature(class, id, feature_code, data_id[, value])While testing the code within a damage formula. (Pretty sure the comma was misplaced)
add_feature🙂actor, 1, 😛aram, 0, 100)add_feature🙂actor, 1, 😛aram, 0, [100])a.add_feature🙂actor, 1, 😛aram, 0, 100)a.add_feature🙂actor, 1, 😛aram, 0, [100])I tried a few other things as well. Unless I'm mistaken, this should increase the maximum HP of actor 1 by 100. This isn't what I need the code for, but it's easier to test. All this did was break the formula though, returning 'nil' damage and having no effect on actor 1's MHP. I tried something similar with TGR (sparam, 0), but got the same results. It doesn't seem to work within custom damage formulas.
Even if this did work, I need the values to be adjusted for actors or enemies based on the skill in question. So having to specify a particular actor isn't ideal.
Why not have the skill call a common event in which you can use that formula to achieve what you want?
EDIT
Or maybe use a state which changes either the actor's or the enemy's stats?