While tinkering about with an accessory that could let you see invisible things, I thought that it would be fitting that only the party leader could equip that object. After all, they're the ones in front of the conga line, it would make sense for them to lead the charge with it equipped. So, after about 5 minutes of messing about, I made leader only equipment, as in, pieces of equipment that party member #1 could wear.
How this was done is pretty simple. Much more simple than my idea/tutorial about
making synchronized TP bars (which was complicated enough for me to have screwed up in a way that it worked anyways :/ ). First up was making a new armor type: Leader Only.
This lets us make it so that only the leader can equip the armor (duh). If you wish so, you can also apply this to weapons, though I assume it would be more useful in armor.
Now, if you have a fixed leader, this is gonna be the last step. Otherwise, if you want party swap with the leader, skip this step. Add an Equip Armor trait for your leader for the Leader Only armor type.
If your leader is fixed, then voila! You're done! Otherwise, ignore this and keep reading.
if your party doesn't have fixed positions, you're gonna have to do some extra steps.
A state called Leader allows the party leader to equip the Leader Only equipment (what a sentence). To give your party leader the state, you're gonna have to do some common event magic:
This Parallel CE, which should run all the time, gets the actor ID of every party member, assuming a standard four party setup. Afterward, it gives the ID of the party leader the State, while removing said State from our other members. The CE at the end is for said accessory I talked about at the beginning. Now, if everything was made correctly, then your item should be only equippable by the leader only.
This is something I doubt hasn't been done yet, either by plugins, or vanilla. The only issue I can find is the fact that you have to swap leaders then close the menu in order to equip things on your new party leader, which, if you only have the one guy as the leader, no biggie. But anyway, for those who don't know how, or don't want to think about how to make it (or ask), here it is, I guess! Have fun with it, and maybe I'll talk about making the accessory that lets you see invisible things, though I assume its easy enough to figure out how to make it (ignoring the fact I made this post thinking about how simple it is). Have fun!
本贴来自国际rpgmaker官方论坛作者:zXManyRegretsXz处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/leader-only-armor-weapons-optional.143981/