Is there a script that allows the player to activate something to then gain control of an NPC event wandering around? I can think of one way to do it with events, but would it lag less if I used a script versus a parallel event that is checking multiple triggers at any time?
I would like to trigger something that turns the character in to a transparent figure that can only walk a short distance while leaving the original form of the player in one spot, (which you can also return to by action button), and if an NPC is in the walkable area, you can gain control of said NPC by action button. Either for a set time, or until the NPC dies.
I found a few "summoning" scripts, but no "mind control". any help would be greatly appreciated.
You could like have a blank event of the map, one will be used as a player "dummy"
When you activate the ability, you make the player transparent and change the Player Dummy's graphics to the player graphics, and put him on the spot where the player was... Then once you "posses" an event, have a self-switch on that event which takes it to a blank page. Then change your actor's graphic to the event graphics and make him non-transparent... And so on...
It would be a bit of work though
If your parallel event is designed well, it should not be causing lag.
Do you have a Wait either at the very start or the very end (that will run once per iteration)? If not, put one in - that can make a huge difference, and you probably really don't need to test your triggers 60 times a second.
You could also post your event here and get input from people for ideas to make it lag less.
Alternatively, you could put the NPC where your character is, and make your player the "NPC" that you move around. Then you'd have to have rules to determine where they can go or how far. You might have better luck finding a script to restrict player movement.
How would I make the player go back to where you left "your body" after the timer runs out or your host dies? And I was wondering if there were a way to restrict movement based on which character you are? Also, how do I set things to trigger by the push of a button? do I need events? Say I am standing in middle of nothing, and want a button to trigger "ghost walking", which is a common event that changes the player character to a transparent version, or even a misty cloud, that each NPC has a conditional branch "when actor x is in party, then:" and the rest is the event disappearing, and player assuming the form of the NPC for a fixed time, or until the host dies. At which time the player returns to their original body and resumes play.
I have galv's map position script, and that allows you to call a map at a button press ("A" button), but ONLY when you have a certain item in your inventory. I want something like that. When you possess a certain item, you can press "a" button and you ghost walk. I think I could handle the rest from events? Except for returning the player to original position when they started ghost walking. So when ghost walking, I want to activate an event that looks like player character normally. It needs to be a dummy event that sits where you activate your talisman. When you assume ghost form you will be 1 tile over, so dummy event that looks like "your body" waits for you to return. After death of host or timer runs out, I need to AUTOMATICALLY move the dummy event away, and make it invisible (transparent off) while putting the player back to the original position, while also returning to your original "body".
You can store almost everything of the original player into variables and correct that back after the controling parallel process switches back, but with the special reactions you described that might result in rather complex eventing.
Search Tsulihime's Blog or the master script list for either "Player Switch" or "Player manager" - those scripts are orginally intended to allow a player to switch between two parties, keeping their data intact and replacing the inactive party with on-map-events.
You'll need to modify that a bit to have the ghost form party vanish when not active, but that might be easier than doing everything with eventing.
Damage, event triggers, etc...
Damage from what? You mean you can go into battle while possessing an NPC? Then that would mean you also need to make an actor for each NPC that can be possessed.
No, just events on map. Variables stacking up to equal all the damage the NPC is able to sustain before expiring.
I was going to avoid battles, but I was thinking of maybe environmental hazards, and the like that cause damage to the NPC and eventually kill it, returning the player back to their original body.
So, as the player, you take control of an NPC, and walk it through a hazardous environment to activate something, and eventually the NPC expires, and you, the player, return to your original position as the main character sprite. Not as the vaporous ghost cloud, nor as the NPC you were controlling, but the sprite you started the game as. Does that make sense? I might be over complicating it.
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.
at OP's request