Yanfly Ace Equip Engice

I'm using Yanfly's Ace Equip Engine (obviously 😛 ) but I'm not sure how to make equipping an armour or weapon add an equipment slot. 

i.e. the option to equip a sword augment is only available once a sword is equipped, etc.

I have searched thoroughly to see if this was possible, but I'm beginning to doubt that it is with this script.

Is there anyone who has overcome this? Are there any compatible scripts that could allow this?
You can try to add Tsukihime's Dynamic Inventory as it allows you to add/remove slots in-game... To make it add/remove slots when equipping/unequip though, you might need the Equip Event (Command?) script
Hmm... I'm getting this error with Tsukihime's core equip slots script:

5pYLi8P.png


Tsukihime writes it off as a compatibility error, but the problem persists even after I comment out my other scripts :/
Are you loading a saved file? if yes, then don't... use a new game...


I don't have that error when I tried her script
-_- well that's embarrassing...

I started the list on line 90 with 1 instead of 0...

Anyway, now one of my Yanfly scripts is giving me this error (In a new save file)

5G8NnX0.png


I'm fairly sure it's a compatibility issue with Tsuki's core equip script and one of Yanfly's scripts :/

Edit: Never mind, I think I forgot to un-comment one of the scripts

 

OK, everything you suggested is working really well (Thank you, these scripts were exactly what I was looking for! 😀 ), however:

The common event runs instantly thanks to Tsukihime's Scene Interpreter

Spoiler
ZecvT9A.png

But the new equipment slot comes up as blank unless the scene is exited then entered again...

Spoiler
SWLJRNP.png

1I8OInc.png
Hmmm... well, you might just wanna add this on the last part of the common event:

Code:
Script: SceneManager.scene.slot_window.refresh
or if it doesn't fit the script box

Code:
Script: x = SceneManager.sceneScript: x.slot_window.refresh
Some people did something similar


https://github.com/Hime-Works/Requests/issues/10


Dynamic slot only provides script calls and doesn't do any refreshing because I don't know when or where you will use it.


The solution I suggested was the same as above: just refresh the window explicitly.


https://github.com/Hime-Works/Requests/issues/10#issuecomment-26683708


I highly doubt the code Engr provides works.
Wow, thank you both! This is really starting to come together (Your snippet worked like a charm, Tsukihime)!

Just two more relatively small things (I assume they're small, at least). 

First thing:

I've defined Runes as <equip type: 14> through the use of Yanfly's Equip engine, and armour type 14 in the database is "Rune"

I've defined Rings as <equip type: 8> and armour type 13 in the database is "Ring"

However, I'm unable to equip runes as runes unless they are Ring in the armour type, and <equip type: 14> in the notetags

I can semi-happily live with this, it's just that rather than being shown in the "Runes" tab of the items menu, they're shown with the "Rings"...

Second thing:

Is there any way I can check who has equipped the ring, and hence make sure that they're the one who gains the rune slot. Because the way I have it now, no matter who equips a ring, only the 1st character gains the runes slot :/
try <equip type: 14>
Oh, that is what I have, I didn't copy and paste that from the data base or anything; I just wrote it as a sort of reference to what I was getting at.

I guess I should have payed more attention when I posted that XD

(Edited my previous post to clear confusion)
are you sure your actor can equip Runes (via the actor/class features)? It might be that you forgot to set your actor to be able to equip runes...


the tag for yanfly's script is only for making sure the items go in the right place... the option to equip an item still relies on the default set-up which is via the features
Oh God! That's it! Thank you once again Engr!

(Wow, now that I know that that can happen, I'm getting some ideas 😀 )

Last thing and this is done (as far as I know 😛 )

Is there any way I can check who has equipped the ring, and hence make sure that they're the one who gains the rune slot. Because the way I have it now, no matter who equips a ring, only the 1st character gains the runes slot :/
🙂


just remember this:

the tag for equip type is only for making sure the equips go in the right place once you equip them... the option to equip an item still relies on the default set-up which is via the features
Ah, thank you. I won't be forgetting that any time soon.
Is there any way I can check who has equipped the ring, and hence make sure that they're the one who gains the rune slot. Because the way I have it now, no matter who equips a ring, only the 1st character gains the runes slot :/
Hmmm... well, you'd need to add something to the script so that you can catch who equips an item... else you can also possibly catch the current actor used by the Scene_Equip...


can you post the common event ur using?
The triple add_equip_slot(1, 14) adds three rune slots to the first character every time it is called. The 1 indicates which character gains the equip slot and the 14 means that the character gains a slot for the armour type 14 (Rune in this case)

The comment call allows the event to be run in the equipment scene and the scenemanager script call updates the equipment scene (...I think)

8lGzOq2.png
add this snippet into a blank script, maybe below all your other scripts:

class Window_EquipStatus attr_accessor :actorendclass Scene_Equip attr_accessor :status_window alias on_item_ok_adik_eq_actor on_item_ok def on_item_ok $eq_actor = @status_window.actor.id on_item_ok_adik_eq_actor end endthen on your add_equip_slot calls, change those 1's into $eq_actorso they would now be

Code:
add_equip_slot($eq_actor,14)
Yes it worked! Thank you so much Engr. Shana!

To think, this started out as a Yanfly Equip Engine (Engice?) thread...
well, its still a YEE related thing... also, if you remove YEE those won't work anyways since the extra equip types won't be defined anymore... XD...


btw, is your pic, your project?
Oh, of course... 

And yes, yes it is 😛

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-ace-equip-engice.22526/