Hello there, first I apologize for typing this on someone else´s threat but I´m not really sure how this site works or were should I ask this so I´ll go straight to the point. I was trying to make a script/plugin that helped me count how many times an event was trigger on the map without using variables, the thing was... That I don´t know anything about JavaScript so I used ChatGPT for it, I followed the instructions step by step but I´m having trouble resolving my issue. Here are some screenshots of the important parts. Hope someone can help me with this
MZ Help! Tracking Event Triggers without Variables
Learning Javascriptfirst, we dont help people chat uses ChatGPT for making plugins.
second, how do you gall the it? as so far I get, you need to
use $gameEvent.getTriggerCount() and lastly, what I can read on the last
part that is, there is NO meta to set into the event notetag.
without a meta tag of the event.meta["TriggerCount"] it wont do anything.
but while people are not helping you or know what it should do,
using chatGPT for making plugin, you are basicly on your own fixing it 🙂
but there are things missing to make this to work, so I wish you good luck ^^.
second, how do you gall the it? as so far I get, you need to
use $gameEvent.getTriggerCount() and lastly, what I can read on the last
part that is, there is NO meta to set into the event notetag.
without a meta tag of the event.meta["TriggerCount"] it wont do anything.
but while people are not helping you or know what it should do,
using chatGPT for making plugin, you are basicly on your own fixing it 🙂
but there are things missing to make this to work, so I wish you good luck ^^.
ChatGPT is not a programmer - it is an idiot that makes random guesses in the hope that something works.
And that hope often fails unless the user knows enough of programming to correct the work.
I suggest you completely ditch that bot, and make a plugin request where you describe the result that you want.
In our experience it is easier to write a plugin from scratch than to correct the murks that is 99% of what ChatGPT creates.
And starting from zero you have a good chance to get help here.
EDIT: ninja'd
Why? Tracking anything a computer does must use variables. It doesn't have to use your global game variables, but the non-functional plugin the AI pooped out creates a variable to track it with - that's line 5 in the code.
I see no reason this requires an entire plugin, just a couple of script calls.
But if you want to use a plugin, use one that gives events self variables, like this:
Hakuen Studio Self Variables for RPG Maker MZ by Hakuen Studio
Fully integrated Self Variables with the default event commands!
hakuenstudio.itch.io
In the event commands that get run when the event is triggered, you increment one of its self variables. Then you can use the plugin commands in those instructions to check the self variable and see how many times it's been run.
Mhmmm this could actually work with what I´m trying to do, I´m gonna try and see if it works, and also thanks for the feedback
Quick update on the situation, It work! It work just fine with what I was trying to achive, thank U very much mister or miss for you kind help
Quick update on the situation, It worked! It worked just fine with what I was trying to achieve, thank U so much for your kind help mister or miss 🤣😀☺️ Hope you have a splendid day
Original thread: https://forums.rpgmakerweb.com/threads/help-tracking-event-triggers-without-variables.162644/