Request: Encounters. Control them using a script command.

Status
Not open for further replies.

Dreadshadow

Lv 38 Tech Magician
Moderator
Joined
Mar 2, 2014
Messages
3,850
Reaction score
2,509
First Language
Greek
Primarily Uses
RMMV
So I was thinking, we right click on a map name on the map list. We select Map Properties.

And there is that huge Encounters List that is empty.

We fill it with Troop to encounter, weight and range (whole map or a region).

Question 1:

Assume you got a map called MyMap.

Can what I described above be done with a script command for MyMap?

Meaning ADD one Troops to Encounters list.

The command must be accessible from everywhere. Is that possible?

Can you please share a command that does that, with a little documentation, so I will be able to work with it?

Question 2:

Can this Encounters list of MyMap return to empty by using a command?

Can you please share a script that can provide me with a command  that does that?

I am not sure if there is a class behind this Encounters list, or if another object gets info from that list using a method. As long As you give me a piece of code that does the trick tough, I can work with that, using the Event Eommand Script  and do whatever I wanna happen .

Thanks Everyone for your time.

Good luck if making a game for IGMC 2015!!!
 
Last edited by a moderator:

Dreadshadow

Lv 38 Tech Magician
Moderator
Joined
Mar 2, 2014
Messages
3,850
Reaction score
2,509
First Language
Greek
Primarily Uses
RMMV
Edited:

Thank you very much @Andar, always there to help us out!

Close enough but it has not a method to remove ALL the containing encounters, if there are any. :/

Such a thing is needed for what I wanna make here.

Also there are terms that limit things. It's not that I really NEED it,

it's just that I can approach the encouter concept in two ways.

A] Random encounters, If I have a solution to my OP

or

B] I can avoid random encounters and make easily random Events.

No sweat really.

Just checking out if I can do it the A way instead of B
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
29,004
Reaction score
6,684
First Language
German
Primarily Uses
RMMV
No, Tsukihime's script can only remove encounters that were added by the script.


The easiest workaround through that is to keep all map encounter tables empty and have them filled with a common event.


The main problem is that the encounter tables are part of the map files, and the map files are read-only (which is why there are a lot other scripts needed to bypass that limitation).


But that read-only means that you have to build the entire encounter table into a new format anyway if you want to change them - and so far I don't know of any script beside Tsukihime's that even tries to go there.


Unless someone writes you a script that reads the existing encounter tables from the map files and redirect them to a different file, Tsukihime's solution is still the best one, even if you need to start with empty encounter tables for full custimisation...
 
Last edited by a moderator:

Dreadshadow

Lv 38 Tech Magician
Moderator
Joined
Mar 2, 2014
Messages
3,850
Reaction score
2,509
First Language
Greek
Primarily Uses
RMMV
The main problem is that the encounter tables are part of the map files, and the map files are read-only.
I understand. This is a serious workload I suppose.

I can't ask for such a big thing, so I suppose I must make this myself and maybe share it too! ;)

I already got so many good things from this community, sometimes you have to give back too right? ;)

I suppose it is time to learn the Ruby syntax and at last, study the RGSS3.

After the IGMC I have nothing else to do anyway. :D

Please close this. I will hopefully open a new thread in the future, with hopefully a solution for everyone. ;)

Thanks for the information @Andar! :)
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
12,504
Reaction score
12,798
First Language
English
Primarily Uses
RMVXA
I did write a script that can let you turn off the random encounters for a map by turning a switch on. Would that work for what you want? It won't empty the table, but it will stop random battles until that switch is turned off.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,310
Reaction score
11,911
First Language
English
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

So trying our Ultra Mode 7 was a bad idea. How do I not include this in my game? XD
Stumbled upon an RPG Maker game on Steam called 'Boobs vs Zombies' while looking for a zombie themed fantasy RTS. lol
There's a new born faction in my country called "Sunda Empire" claiming they have right to rule over the earth and sun... I don't know what to feel...
Quon is watching you
Quon blessed your good efforts
I have tried, several times to understand how Markiplier is popular. You can't deny his popularity. I can only get through a few minutes of his vids, though. He's cringier than ANY cringe comp I've ever watched. When I was a kid, if you acted like that, 0 friends and 100% no dates for you. Times have changed XD

Forum statistics

Threads
93,545
Messages
913,375
Members
123,077
Latest member
Zetheir
Top