RMMZ I'm writing my own plugin. Problem with a struct[] as arg in a plugin command.

AGiant

Veteran
Veteran
Joined
Feb 17, 2020
Messages
30
Reaction score
3
First Language
english, german
Primarily Uses
RMMZ
Hey people,
here I am again after stumbling upon a problem. I want to learn and get used on how to create plugins and started with something I would like to have in my game. So first question: Is this actually the right place? If not do you know where this should go?
Well to continue though. I checked all the functions in question and also have an idea at least on how to do it but... well I'm kinda stuck at the starting point though.

/*
...
* @command set
* @text Pair skills with weights
* @desc Sets weights for chosen skills.
*
* @arg SkillWeights
* @type struct<SkillWeights>[]
* @text skill weight pairs
* @desc Choose skill and its weight.
*/
/*~struct~type SkillWeights:
* @param Skill
* @type skill
*
* @param Weight
* @type number
* @min 0
* @max 1000
* @Default 0
*/

The problem with this is I can't choose a skill or number if I try to call the command.
I get the feeling that I'm doing something really simple wrong but I don't know.
1642583984917.png
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
4,969
Reaction score
4,550
First Language
English
Primarily Uses
RMMZ
It's not ~struct~type SkillWeights:

It's just ~struct~SkillWeights:
 

AGiant

Veteran
Veteran
Joined
Feb 17, 2020
Messages
30
Reaction score
3
First Language
english, german
Primarily Uses
RMMZ
It's not ~struct~type SkillWeights:

It's just ~struct~SkillWeights:

I remember that it was like that and changing it made it look closer to the goal but I guess I actually turned one mistake into another in the attempt of solving the problem. Thank you very much. It works perfectly
 

Latest Threads

Latest Posts

Latest Profile Posts

Beep-Beep-Motha-facka.gif

Just finished and uploaded the delivery truck base/sprite sheet. I've been steadily replacing the default assets with early modern alternatives. The air-ship for a biplane, horse-drawn wagon for a delivery truck, and next a sailboat for a steam-powered passenger liner (think of the SS Olympic and RMS Titanic).
I caught a shiny magikarp on pokemonGO today AND finally saw Detective Pikachu and it was so cute and I'm still so hype AHHHHH!!!
one of the coolest things I've learned from the forums is the ability to give yourself a hitbox. I have a move you can do on the fields. shoulder tackle. thanks to the forums, that tackle triggers self A switches on some events. NPC's and the environment now react to the tackle. awesome.
I really liked how this one turned out! :kaopride:
WYqMPf6.png

Character (Yes, this is a character): Nibiru the Primal Being from Yugioh.
Dragon Quest style enemy selection plugin work in progress:

Quest_Targeting.png

It's a simple targeting system from the NES era. Select an enemy group; single-target skills will target the first enemy in that group.

Quest-Targeting-Animated.gif

Forum statistics

Threads
121,936
Messages
1,145,288
Members
160,207
Latest member
RiceKun
Top