Hello everybody,
I'm currently toying with the Khas Pathfinder script and it's pretty neat little script to automate your cities NPCs to give them a little more "life", I was wondering if any of you have figured out a way for an NPC to react once they get to their destinations on the map (besides a wait command + self switches).
I was thinking of using a conditional branch to do this and use the script command but I have no idea what i'd need to put in here to accomplish this. Is this possible?
Thanks for taking the time to have a look.
Greg
I would love to help, however could you please provide more information on what it is you want to achieve?
'Game Mecanics Design' is for discussing aspects of game play at the more conceptual level. This needs to go into either Script Support or Plugin Support, as it is a question of "How do I implement [X]?"
I need to move this thread, but you do not specify which engine you are using.
Please post with that information. You might like to consider including it in the info under your avatar, as that will help if anything else ever has to be moved.
Also a link to the script.
Moved to: JavaScript/Plugin Support
Sorry, my bad.
Moved to: RGSSx Script Support
I don't see any way to specify from the script how to activate a switch or use a script function to check for a conditional branch.
Of course I'm no expert.
What I do believe you can do is two parallel events.
1. Check event X location x and y and save them to variable xx and yy
2. Conditional branch variable xx is equal to value x, and yy is equal to value y. Then when both are true - turn switch X on.
3. Run your enter house event by switch X now on.
Hey Roninator,
Yeah I was looking through the different options for eventing and that one did pop up and its a possibility but it would mean setting up a parallel process and creating a new conditional branch for each event I decide to pathfind and it could get crazy big if my cities feature a lot of walking to and from their homes. etc
I'll keep tinkering with the script and see if I can create a script call using the calls in the script. I'm no coder but I can tweak stuff most of the time as long as there's a function in the script that can check it.
Cheers for your help dude.
What kind of reactions do you have in mind?
I mean a series of events or just one?
Basically what you want is to skip the manual activation/deactivation of the (self)switches and event pages, right?
Thanks Sixth I'm checking that out now as I was getting a lot of lag using the Khas script and my computer is pretty decent!