Script Call Support Boards

I need help with my "exit" choice error aswell as armor type check..

Script description:

All armors in inventory will be shown as choices + "exit" choice.
Actor 2 will equip chosen armor. *script works as long as you dont choose exit

If "exit" is chosen then:
Game_Interpreter:1411:in eval' : undefined methodid' for nil:NilClass (NoMethodError) 
from Game_Interpreter:1411:in eval' from Game_Interpreter:1411:incommand_355'
from Game_Interpreter:197:in execute_command' from Game_Interpreter:103:inrun'
from Game_Interpreter:60:in `block in create_fiber'

here's my script from Github(hope link works):

https://raw.githubusercontent.com/slaapmuts/skins/slaapmuts-patch-1/Cars
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.
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.
I just used the ingame event command -> advanced -> script  :|
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
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). 
This has nothing to do with script calls, it's a script that you're having problems with.

Please start a new topic in script support area, and do include the links to all scripts you're using as well as screenshots of your actor and equipment setting as well as your configuration area.

Yanfly's scripts have been tested and used by hundreds of people, so the problem is either a wrong configuration done by you (misspelled notetags or so) or an incompatibility with another script you're usinf.
About my earlier post: "I need help with my "exit" choice error aswell as armor type check."

I fixed the "exit" choice problem:

if accesory != nil   # this line was the fix, can't access accesory.id if accesory = nil

   if accesory.id == 15

   # actions

   end

   if accesory.id == 16

   # actions

   end

end

To Andar:
I have the script ingame in 2 parts like this:

Spoiler
[IMG]http://i.imgur.com/NDCB0c7.jpg[/IMG]
Spoiler
[IMG]http://i.imgur.com/aaLfOUx.jpg[/IMG]
How do I check if my armor is a accesory?

I want only accesory type armors in my armor array
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.
'$game_party.members' does the check for you. If you are in battle the method returns 'battle_members' (the first four or so actors in the list, unless you change 'max_battle_members').

Code:
  #--------------------------------------------------------------------------  # * Get Members  #--------------------------------------------------------------------------  def members    in_battle ? battle_members : all_members  end
So you could do something like this :

Code:
$game_party.members.select { |a| a.name == "Rick" }
Or even :
Code:
$game_party.members.include?($game_actors[x])
I think I must have misunderstood, because my problem persists.  This is what I'm trying to do:

An actor has a skill which has an extra effect of giving an additional attack to another actor if that actor is at least level 13 and alive.  Once there are more than 5 members in the party (I have a battle party of 5) then obviously I also need the check that the second actor is in the active battle party.

What's happening, though, is that the first actor is using the skill, but the conditional is still trying to get the second actor to attack.  Although nothing happens in battle, there is a tiny bit of dialogue which precedes the extra attack.  That bit of dialogue still occurs after the battle, on return to the map.  Here is my conditional:

ScriptCall_zpsqvzydsoi.png


EDIT

Ah, wait!

Although the actor id is 4 in the Actor's tab of the database, is this one of those occasions where I start the numbering from 0, so that the call should refer to ($game_actors[3])?  I hope not, because trying that crashed the game with an error with Yami's Battle Symphony.
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)'?
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)'?
That is what the dynamic features script will give you - otherwise you couldn't change them anyway...
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.
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)
The instructions are exact.  

They specify that these are for a script call within an event command, and you have tried to do use it in a damage formula.  It is not surprising, therefore, that it doesn't work there.

The comma is not misplaced.  Shaz is an extremely good scripter.
There's two reasons I thought the comma was misplaced. I get an error if I leave the comma there, and http://ezmash.net/devblog/?p=102 on the script's page, it's written differently. My point is that the script doesn't suite my needs, I don't doubt the scripter's abilities.
 

So there's no way to adjust SP and EX parameter's via damage formula? That's a huge limitation. I'll have to find some roundabout way to accomplish my goal then.
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?

Original thread: https://forums.rpgmakerweb.com/threads/script-call-support-boards.25767/