Oh, I see. Yeah, I can respect that.
MZ RPG Maker MZ Javascript Show Choices Help
Learning JavascriptThe rather obvious answer is if your choice window is empty, your code is not providing any valid choices.
So you are getting to a situation where your choices array has a length, but it's not an array of strings to be recognized by setChoices()
Also, for some reason you're providing an extra argument to setChoices(), and I'm not sure that providing a negative index for the cancel option is valid.
The problem with dropping ChatGPT code is - whether it generated, or just "assisted" - we don't know what your actual skill and knowledge level is. So hopefully that will be enough for you to troubleshoot.
(as a side note - I'm not going to get into it between you and Trihan, but your stuff about "using ChatGPT is the same as a textbook" is both demonstrably untrue and a very tired argument that's not going to endear you to anyone knowledgeable on the forums)
So you are getting to a situation where your choices array has a length, but it's not an array of strings to be recognized by setChoices()
Also, for some reason you're providing an extra argument to setChoices(), and I'm not sure that providing a negative index for the cancel option is valid.
The problem with dropping ChatGPT code is - whether it generated, or just "assisted" - we don't know what your actual skill and knowledge level is. So hopefully that will be enough for you to troubleshoot.
(as a side note - I'm not going to get into it between you and Trihan, but your stuff about "using ChatGPT is the same as a textbook" is both demonstrably untrue and a very tired argument that's not going to endear you to anyone knowledgeable on the forums)
Thank you Turan and skill level is very low. Im a locksmith not a programmer hence my viewpoint difference. If it works for us we will use it. Even if its not technically the correct approach.
If I wanted to get a lock opened, I would contact a human locksmith who is trained and has actual knowledge about what they're doing; not ask something that does not have knowledge and is designed to make things up.
There are people on these forums who answer questions and fulfill requests, and online tutorials that were designed by knowledgeable humans and provide a logical progression of skills.
But I'm not trying to antagonize you and continue the brouhaha - just explain why most of the coders here (including me, generally) refuse to help troubleshoot code that has anything to do with AI.
Good luck with your project!
All I will leave in this since like I said I hate arguing with people. How does that person gain knowledge to perform the task you are hiring him to do? Personally I would like to hire an apprentice any chance I get. May not get the top quality of the world but I give someone a chance to prove themselves and gain knowledge. But were arguing from two very different worlds.
They study their field. Devote tons of time to mastering what they need to in order to become experts. Same as they've done for years and years. Kinda obvious.
By taking courses. By reading books. By doing online tutorials. By asking people questions. Many valid methods aside from asking AI which does not actually know things and often produces the wrong answer.
Okay, are you trying to get some kind of internship from someone?
That seems like a cop-out thing to say just because you want another person's statements to be invalid. How are we from two different worlds?
We both work in fields that require specialized knowledge, we are both on a Web site about designing video games...you're just choosing to believe that the things being said to you are somehow inapplicable.
So at what point between 18 and then do you become a master? Personally i'd never call myself an expert or master. Journeyman thats about it. Anything past there would be something that only the one who created the item could truly be.
Definition,
1.
acquire complete knowledge or skill in (an accomplishment, technique, or art).
"I never mastered Latin"
Meaning only one person can truly be considered a "Master" of a skill. The one who created it because only they have a "Complete" understanding of every aspect regarding it.
As far as the worlds its mindsets. Construction is different from a Programmer almost entirely.
Definition,
1.
acquire complete knowledge or skill in (an accomplishment, technique, or art).
"I never mastered Latin"
Meaning only one person can truly be considered a "Master" of a skill. The one who created it because only they have a "Complete" understanding of every aspect regarding it.
As far as the worlds its mindsets. Construction is different from a Programmer almost entirely.
With this logic, a master of the blade can't be a master unless they created the weapon then. A karate master can't be considered a master unless he created karate. Do you realize how foolish that sounds?
Mastery doesn't mean you had to have created anything. It means you have spent enough time studying and practicing to become exceptional and more knowledgeable than most people in that field.
Like I said not arguing semantics here. Master to me means no one is equal to you. That's incredibly hard to do in an age of technology that's ever evolving. May be a locksmith master of puzzles but boy do I suck at creating(Programming) said puzzles. So does that make me a master of puzzles since I can't create them as well but I can solve them or does that make me a master at solving the puzzles or do you accept the general term of being good at puzzles?
I have no idea what you're even talking about.
The only person who has mentioned the word "master" in this thread is you. So...okay?
Unless you're referring to @Sword_of_Dusk saying "mastering" the material which...does not have the same definition - for people who speak English - as referring to a master vs. a journeyman in a trade.
This is still meaningless. (also, are you in construction or are you a locksmith?)
You're saying a construction worker doesn't need to plan out the framework for a project, having the requisite knowledge of how to create that design? And then have learned the correct skills to use their tools, work with the supplied materials, assemble them correctly and sturdily?
You would allow a person onto a construction site to work for you and build, say, a part of a client's house, when they said "ChatGPT told me how to drive rivets"?
For someone who says they don't want to argue, you are completely fabricating topics to argue about 😛
An Engineer creates an object, A locksmith repairs that object and keeps it in working shape. Thats the difference im trying to explain. Ya'll are like an engineer. I'm a locksmith good at keeping things in working order and good at maintaining an object. Creating is another story. You asked about skill level.
Not gonna lie. I don’t know what this thread is about anymore. But, if there was a topic I think it might be time to be on it.
Let's get back on topic, folks. If you aren't here to help @icycold2367 figure out their problem, then please move on.
Edit: Beaten to the punch by Ms Littlefish. 😛
@Ms Littlefish That's fine. OP isn't making much sense anyway.
So anyway back to the original topic. I populate $gameVariables.value(60) with a array of strings. But for some reason they do not populate the show choices. If I remove the -2 it removes the cancel button from the show choices menu. Thats why thats there. It links to a empty common event that cancels the show choices. Im not sure why it doesn't work.
I suspect your issue may be caused by another plugin, because this worked fine when I plugged it into one of my projects. Obviously the items aren't seeds, but the choices show up no bother.
Ya mines still empty populated. I'm not sure how to make it more compatible with other things. Thank you for the help to Trihan
What plugins are you using?
This is the full list of plugins im currently using hopefully this prints well. May edit if it doesnt
{PKD_DevOptions} {PKD_SimpleFishing}
{---------------------------------------------}
{VisuMZ_0_CoreEngine} {Public_0_Dragonbones} {Public_0_PixiJsFilters} {Yep_ItemCore} {Ramza_IndependentItems} {Ramza_CS_Core} {Ramza_CraftingSystem_MZ} {CGMZ_Core}
{---------------------------------------------}
{DK_Game_Time} {DK_Game_Time_DayNight}
{DK_Game_Time_Calender}
{---------------------------------------------}
{VisuMZ_1_BattleCore} {VisuMZ_1_ElementStatusCore}
{VisuMZ_1_EventsMoveCore} {VisuMZ_1_ItemsEquipsCore} {VisuMZ_1_MessageCore} {VisuMZ_1_MainMenuCore} {VisuMZ_1_OptionsCore} {VisuMZ_1_SaveCore} {VisuMZ_1_SkillsStatesCore}
{---------------------------------------------}
{Ramza_X_CS_CraftingLevelList} {Ramza_X_CS_RecipeList} {VisuMZ_2_DragonbonesUnion} {VisuMZ_2_AggroControlSys} {VisuMZ_2_BattleSystemCTB} {VisuMZ_2_Bestiary} {VisuMZ_2_BrightEffects} {VisuMZ_2_DoodadsSystem} {VisuMZ_2_ClassChangeSystem} {VisuMZ_2_FurnitureSystem} {VisuMZ_2_LightingEffects} {VisuMZ_2_MovementEffects} {VisuMZ_2_PartySystem} {VisuMZ_2_QuestSystem} {VisuMZ_2_SkillLearnSystem} {VisuMZ_2_WeatherEffects} {PKD_MapInventory}
{---------------------------------------------}
{VisuMZ_3_AutoSkillTriggers} {VisuMZ_3_ActSeqImpact} {VisuMZ_3_ButtonTriggerEvts} {VisuMZ_3_BattleAI} {VisuMZ_3_DoodadsEditor} {VisuMZ_3_EnemyLevels} {VisuMZ_3_StealItems} {VisuMZ_3_SkillCooldowns} {VisuMZ_3_SkillMastery} {VisuMZ_3_VictoryAftermath} {VisuMZ_3_VisualGaugeStyles} {VisuMZ_3_VisualGoldDisplay} {VisuMZ_3_WeaponAnimation}
{---------------------------------------------}
{VisuMZ_4_AmbienceSounds} {VisuMZ_4_AnimatedPictures} {VisuMZ_4_ButtonCmnEvts} {VisuMZ_4_CreditsPage} {VisuMZ_4_EncounterEffects} {VisuMZ_4_ExtraEnemyDrops} {VisuMZ_4_FlucShopPrices} {VisuMZ_4_MultiLayerHpGauge} {VisuMZ_4_ProximityCompass} {VisuMZ_4_UniqueTileEffects} {VisuMZ_4_VariableGauges} {VisuMZ_4_VisualItemInv} {VisuMZ_4_VisualParallaxes} {VisuMZ_4_RecruitingBoard} {VisuMZ_4_WeaknessPopups}
{---------------------------------------------}
{MOG_TitleCommands} {MOG_TitleLayers} {MOG_TitleMagicCircles} {MOG_TitleParticles} {MOG_TitleSplashScreen} {MOG_BattlebackEX}
{---------------------------------------------}
{FTCore} {FTMapChangeDatabase} {FTFarming}
{---------------------------------------------}
{CGMZ_Reputations} {CGMZ_ToastManager} {EquipCommonEvent}
{---------------------------------------------}
{SRD_UtraBase} {SRD_HUDMakerUltra}
{---------------------------------------------}
{Alpha_NETZ}
{---------------------------------------------}
edit, More readable
{PKD_DevOptions} {PKD_SimpleFishing}
{---------------------------------------------}
{VisuMZ_0_CoreEngine} {Public_0_Dragonbones} {Public_0_PixiJsFilters} {Yep_ItemCore} {Ramza_IndependentItems} {Ramza_CS_Core} {Ramza_CraftingSystem_MZ} {CGMZ_Core}
{---------------------------------------------}
{DK_Game_Time} {DK_Game_Time_DayNight}
{DK_Game_Time_Calender}
{---------------------------------------------}
{VisuMZ_1_BattleCore} {VisuMZ_1_ElementStatusCore}
{VisuMZ_1_EventsMoveCore} {VisuMZ_1_ItemsEquipsCore} {VisuMZ_1_MessageCore} {VisuMZ_1_MainMenuCore} {VisuMZ_1_OptionsCore} {VisuMZ_1_SaveCore} {VisuMZ_1_SkillsStatesCore}
{---------------------------------------------}
{Ramza_X_CS_CraftingLevelList} {Ramza_X_CS_RecipeList} {VisuMZ_2_DragonbonesUnion} {VisuMZ_2_AggroControlSys} {VisuMZ_2_BattleSystemCTB} {VisuMZ_2_Bestiary} {VisuMZ_2_BrightEffects} {VisuMZ_2_DoodadsSystem} {VisuMZ_2_ClassChangeSystem} {VisuMZ_2_FurnitureSystem} {VisuMZ_2_LightingEffects} {VisuMZ_2_MovementEffects} {VisuMZ_2_PartySystem} {VisuMZ_2_QuestSystem} {VisuMZ_2_SkillLearnSystem} {VisuMZ_2_WeatherEffects} {PKD_MapInventory}
{---------------------------------------------}
{VisuMZ_3_AutoSkillTriggers} {VisuMZ_3_ActSeqImpact} {VisuMZ_3_ButtonTriggerEvts} {VisuMZ_3_BattleAI} {VisuMZ_3_DoodadsEditor} {VisuMZ_3_EnemyLevels} {VisuMZ_3_StealItems} {VisuMZ_3_SkillCooldowns} {VisuMZ_3_SkillMastery} {VisuMZ_3_VictoryAftermath} {VisuMZ_3_VisualGaugeStyles} {VisuMZ_3_VisualGoldDisplay} {VisuMZ_3_WeaponAnimation}
{---------------------------------------------}
{VisuMZ_4_AmbienceSounds} {VisuMZ_4_AnimatedPictures} {VisuMZ_4_ButtonCmnEvts} {VisuMZ_4_CreditsPage} {VisuMZ_4_EncounterEffects} {VisuMZ_4_ExtraEnemyDrops} {VisuMZ_4_FlucShopPrices} {VisuMZ_4_MultiLayerHpGauge} {VisuMZ_4_ProximityCompass} {VisuMZ_4_UniqueTileEffects} {VisuMZ_4_VariableGauges} {VisuMZ_4_VisualItemInv} {VisuMZ_4_VisualParallaxes} {VisuMZ_4_RecruitingBoard} {VisuMZ_4_WeaknessPopups}
{---------------------------------------------}
{MOG_TitleCommands} {MOG_TitleLayers} {MOG_TitleMagicCircles} {MOG_TitleParticles} {MOG_TitleSplashScreen} {MOG_BattlebackEX}
{---------------------------------------------}
{FTCore} {FTMapChangeDatabase} {FTFarming}
{---------------------------------------------}
{CGMZ_Reputations} {CGMZ_ToastManager} {EquipCommonEvent}
{---------------------------------------------}
{SRD_UtraBase} {SRD_HUDMakerUltra}
{---------------------------------------------}
{Alpha_NETZ}
{---------------------------------------------}
edit, More readable
Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-mz-javascript-show-choices-help.165548/