• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Question] Conditional route for NPC

  • 4
    Posts
    4
    Years
    • Seen Dec 30, 2021
    Hi,

    I'm trying to make a NPC goes randomly up or down. Does any of you know how I can do it ?

    I'm using Pokemon Essentials v18.1

    Thanks in advance
     
    Last edited:
    It doesn't matter of Essential version in any version in event page Make autonomous movement type Random and move animation check like below pic that i mark in red round and that yellow round show animation speed
     

    Attachments

    • [PokeCommunity.com] Conditional route for NPC
      Screenshot (126)_LI.jpg
      371.2 KB · Views: 13
    I think I wasn't clear enough. I only want my NPC to move up or down (never right or left) but at random (so it can go 3 times up and 1 time down, then 2 times up and 4 times down)
     
    paralel process:
    assign event Y to any variable u want to use, let's say in his middle position he's in y = 10 he can walk up to 6 and down to 14(skip this step if there are no limits to how far he can walk)
    assign a random number between 0 / 1 to a random variable:
    conditional branch for said variable, if its 0, move up
    if its 1 move down
    don't forget to the wait for move completions

    now if there's limits to how far he can walk, let's say he's at y = 6, the he has to move down, else if he's at y = 14, he has to move up, else (when he's not on the limits) then ud put the event i described earlier, u check for the random variable, moves up if its smth, moves down if its the other

    edit: I wouldn't recommend using too many paralel process, 1 its fine to make a gimmicky character but keep in mind this will be constantly active if ure in that map or close to it
     
    Thank you, that's exactly what I needed, I'm gonna try it right now ! And don't worry, there should not be to many NPC with that kind of movements
     
    Back
    Top