Stealth event problem - Can you help me

Sorry for my bad english Im normaly don't use english


Hello there.


Im making on a game. In my game we have 4 main actors one of them is an Assassin.


What is my problem?


my problem is I have made a item and give it to my Assassin when he have the item on he will go stealth mode. This part works fine.


It's if i chance to another actor after the game have seen my assassin as first position they all is in stealth mode until I take the item of him. what I need is if my Assassin have the item equipt he is the only one in stealth mode if you chance between them the event shall be set to standbye until you choose him again or take the item of him.


Thanks for help 🙂


- Sarion

asd.png
you need to tell us what exactly you're doing.


I'm assuming that you ment "change", not "chance" - and in that case you need to tell us what and how you changed, because your parallel process then needs added commands to check for that change as well.
Okay I start with making the event you see under my first thread. After that to start the event you need to make a parallel process event to start the common event. when this things is done. you have the stealth mode I saw it on a youtube movie. But in hes turorial he make the effect on all the actors like in Harry Potters Invisibility cloak. My problem is I want the same event but it shall only work when my Assassin actor is on first position. It works fine right now he is the only one there can start the event. In my game I need so its only the assassin actor there have the items effect. I can't make it becasue evey time I try it do the same damn thing all my actors get the effect.


What i do


1) I start my game and start new game. In the game I change to my assassin  to the first position (In database I have always maked so he's starting with the item equipt)


2) Now he is in stealth mode and it looks like it works.


3) PROBLEM!  The problem is if I chance back to the actor before my assassin he/she is also in stealth mode until I take the item of my Assassin. I want to make so if you change to one of the 3 other actors the effect is gone. I want so Its only my assassin the have the effect of this common event
The problem is if I chance back to the actor before my assassin



You gave a lot of info, but you didn't answer my only question: how do you "chance" back. What do you do to do whatever "chance" you mean, because "chance" means "luck" or "random occurance" and has nothing to do with the rest of what you're talking about. You probably mean "change", but even in that case we would need to know if you change formation or using a party script or whatever


To prevent an effect from continuing when whatever happens, we need to know how that "whatever" is caused, because only then we can add code to the event to detect that and react to it.
Every time I have read chance I mean change


Sorry it i read your first thread incorrect it was a fail of my.


what you want me to answar is how I change so what I use to change is formation in the game menu. I have plugins but no plugins for formation. Hope it was what you need to know 🙂


thanks for you help.


- ZetlasX3


My game is made on danish language

Formaion.png

plugins.png
In that case, you need to add the code to the event to change the effect if someone is no longer in the first position.


Currently you're only checking if someone is in first position and then activating its function - but ignore the already activated functions of other actors.


So in the sequence where the function for actor ID=1 is activated, you also need to deactivate the functions for actor ID = 2 and all others.


If you have more than a few actors, I suggest using a common event on call (trigger=none) to disable all functions, and call that CE before activating the specific actor function that is now true - that way you can deactivate even the true function, because it is activated again directly after.


However, if done that way you'll need a wait(20) or possibly greater at the end of the event, because otherwise the function would be checked and changed sixty times per second, and that would create a lot of lag.
It works now but it laggs when im one of the others actors now so I think I don't get it closed.
Now I found a solution for my problem realy thanks for your help I could not have found a solution without 🙂


Thanks for help


 - ZetlasX3

Original thread: https://forums.rpgmakerweb.com/threads/stealth-event-problem-can-you-help-me.65125/