Hey 🙂
I'm positive I've seen a script that does what I'm looking for before, but I can't find it no matter how much I search.
Let me explain what I'm talking about:
I need to replace an event on the map with another, pre-existing one from another map.
Example:
There's Event A on Map A. At some point (in-game), I'd like it to replace it with Event B from Map B, another map entirely.
Does anybody know of a way to do this?
Thanks in advance!
I remember reading on another thread that it isn't possible to 'transfer' an event from one map to another. You have to make it appear as if it was that way to the player
What you can do is this, though.
Event A (let's say it shows a dog which chases you). Graphic dog, set to 'approach player'
Event B (let's say a cat which runs away from you whenever you meet it) Have a second page conditioned by a switch; graphic cat, set to move away from player. At the time you want event B to 'appear' as if from map B, activate the switch.
Okay, silly example, but that's the method.
@ksjp17: Thank you, that's 1 way of doing it. However, I'd require about 300-400 pages per event to do what I have in mind. :/
@Baka-chan: Thanks, neither of these really cuts it. If YF's spawn script allowed event stacking, it'd be fine, though.
@Raven - what event stacking? you mean like putting an event onto another?
if yes, then I do believe it's just a simple edit to enable that on yanfly's... I can't do though right now as I seem to be unable to access dropbox from here...
@Τsukihime: Thanks, while a superb utility script, it doesn't really fit. As I said, It would require too many pages per event.
@adiktuzmiko: Thank you, yes. That would do the trick. Currently I'm using Yanfly's script to spawn the desired event one tile up, then have it move down. Kinda messy, but it works, I guess.
I don't understand why a simple event swap would lead to 300-400 pages using references, and how it is any different from the way you're doing it using event spawning.
Well, I'm working on a CCG/RPG hybrid, and what I'm trying to implement is an on-map-scene evented deck customization system.
The way I'm trying to do it (which might be counter-productive, I don't know) requires 1 event page per card. And I've designed ~350 cards.
If there was a smaller number of cards, I'd simply use multiple pages on a single event, use the reference script and be done with it. (In fact, that's what I did in a smaller scale, minus the reference utility).
However, an event can have 99 pages at the most, right?
So I figured, I'd just have one event per card and swap events each time a card is equipped/unequipped.
Confused? >.<
Do you have your entire system worked out for, say, 20 cards?
Because I see other potential issues that could make your system difficult to manage as your game grows.
Your system should be well designed to allow you to add new cards (eg: 350), but that's something you would consider after your system works (because swapping in one card out of 20 or 200 or 20000 is basically the same thing)
Event swapping would be a solution, to some extent.
I've got a working prototype for 10 cards, but it is very counter-productive and expanding it requires an ungodly amount of conditional branches. I think I'm going to try a version with fewer cards first, bypass the whole spawn thing, and see how that works.
You could have just ask a card system be made.....
@xein Do you know many scripters able and/or willing to make a card system for some random guy?
You may need to introduce scripts to facilitate certain mechanics that would otherwise be complex to maintain through pure eventing.
There are two polar extremes to all RM systems: 100% scripted, and 100% evented.
Anything you can imagine can be done through both ways; it just depends how much effort you're willing to put into it. It can also become extremely complex and unwieldy.
However, many scripts tend fall in between, and those are usually the ones that are "easier" to use.
Scripts can be written to piggyback onto events (or database objects, or other things) to provide additional functionality without having to change the way you do things. Add a comment here, note-tag there, maybe a script call, but it's still fundamentally RM eventing.
If you find that each card you add requires you to add a couple extra pages to every other card, then once you have 100 cards, each event will probably have 100-200 pages (which can't be done through normal means). And then once you add another 100 cards, you're going to have lots and lots of pages.
As you have pointed out, it would be nice if a single event can be used to represent a single card. But if you need 2 or 3 events to represent a single card because you don't have enough pages...you could blame the RM editor for having a 99 page limit, or maybe the design is not suitable.
And what if you decide to change a card? Delete a card? Will you have to go through all the other events and change or remove things as well?
I don't know how easy it is for you to add a card in the game, but from what it sounds like, it isn't easy. If it's a one-time thing with like 20 cards, and you don't expect to change it much, then I suppose you can tolerate it, but if you're talking 300 cards, you may need to re-structure your system and see if there's a way to have a "support" script relieve you of having to create 300-page events. Maybe you would still need to create 10-page events, but it's a lot better than 100.
I don't think many people will write an entire card system for you, but if you lay out the details, it may be possible to move certain things into scripts while leaving the rest of the actual setup done via events.
That's what I do, I combine utility scripts and eventing. I actually enjoy the challenge.
Right now I have a pretty sensible system - one event per card, no more than a couple of pages long. The trouble part is keeping conditional branches and the like to a minimum, and that's where the aid of scripts would become invaluable.
For example, I'm trying to spawn a an event using Yanfly's script, while using arguments I stored in variables. I don't really know my way around OOP, though.
spawn_event_region($game_variables[4], $game_variables[3], 3)I tried this and (as I suspected) it didn't work. Simple things like this could save me hours of dull eventing. Maybe it's time for me to learn to script?
Let's see your card game design mechanics cause I know of a card game script that was written in VX.
As I said, it's an RPG / card game hybrid. I use Yanfly's Ace Battle Engine to handle the battles, and that part works like a charm. It's the deck customization system that baffles me.
Wait, so your cards are actually actors?
Some of them summon actors, others are skills, others are equipment. I'm borrowing heavily from Hearthstone (or what I've seen of it, as I haven't got a beta key yet).