Random WalkTo Example


Author: instinx
Created: 2012-09-17T10:32:06-0400
Edited: 2012-09-17T10:32:06-0400
Denizen Version: 0.76
Views: 142
Downloads: 1004
Likes: 0


WGET
Description: Since I couldnt find a Random Walkto example, I submit this. It was designed to create the illusion of life for the player. With NPC positioned behind a counter in a shop, this detects the player outside the shop and has a chance of causing the NPC to be walking to a spot behind the counter when the player gets to the counter.

------------------------------------------------------------------------------------------------------------------------------
Denizen\Saves.yml - 
------------------------------------------------------------------------------------------------------------------------------
Denizens:
  NPCName:
    Bookmarks:
      Location:
      - Doorway Worldname;81.5460877143946;36.0;219.17625848295455;-354.38403;76.87035
      - redmushroom Worldname;79.48750001192093;36.0;227.63153192738625;92.50116;38.416904
      - cauldren Worldname;82.6599035763623;36.0;227.56056434752227;-92.5002;33.492935
      - brewstand Worldname;81.10880457003152;36.0;227.69999998807907;-349.48593;12.155622
      - potioncounter Worldname;80.0064722204474;36.0;225.7402490113741;-165.57745;1.8387252
    '2': {}
--------------------------------------------------------------------------------------------------------------------------
Denizen\assignments.yml
--------------------------------------------------------------------------------------------------------------------------
 
#Generated by CitizensUI
Denizens: 
  NPC: 
    Interact Scripts: 
      - 0 NPC Interact Busy1
 
--------------------------------------------------------------------------------------------------------------------------
Denizen\scripts\NPC Scripts.yml
--------------------------------------------------------------------------------------------------------------------------
#Generated by CitizensUI

NPC Interact Busy1: 
  Type: Interact
  Requirements: 
    Mode: All
    List: []
  Steps: 
    1: 
      Location Trigger: 
        1: 
          Trigger: Doorway
          Script: 
            - ^RANDOM 4
            - WALKTO BOOKMARK:brewstand 
            - WALKTO BOOKMARK:cauldren
            - WALKTO BOOKMARK:redmushroom
            - WALKTO BOOKMARK:potioncounter
 
 
 




Comments
No one has posted a comment! Post one below: