RPG Maker Forums

Hya!

Normally i always find what i am looking for and/or get workarounds done yaddayadda. But this time it seems i dont find the correct search-words or i am overlooking something. Thats why i am asking my (probably beginner) question(s)


Question 1
- Start / Foreword
I already have seen some scripts and know that i wont have functions just for now since i dont need specific functions (yet, still i already know how i can implement them oO). I even know how i could make functions compatible...

- Is this correct?
var varName = "String" or Boolean (eq false/true) or Number;
(example: var test = "This is a String"; / var test = true; / var test = 293;

- But
I want to make all the work for events outside of the event. Like "ask if the party is (already) carrying a log" and so on. It is more structured and clean as within the events itself. I already have it working perfectly within the games possibilities. Yet i am not able to find the clue how i can do it within an plugin i want to write that does the work.



- Basically what i have in mind

Code:
// States for the Trees. 0 = Harvestable, 1 = Harvested, 2 = Growing
var tree_1_state = 0;
var tree_2_state = 0;
... and so on.

if(event x is activated) {
 do awesome and cool stuff!
};
else
{
 look for biggest booger in the world!
};


- Question(s) related to "What i have in mind"
Are the variables now always set at the start of (the game/event is activated/just once)?
And how can i tell the inGame event to call for this plugin/script? (Well, basically plugin since i write it outside of the game engine)


Phew, that was a lot and probably a lot of people are shaking their heads "Dude... the solution is right THERE! How could you not see/know that?!" :) But belive me, i searched a lot and dug through a lot of topics to find the solution. I probably oversaw it somewhere. So i hope for your help :3


Stay crunchy.

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,470
Members
137,821
Latest member
Capterson
Top