Announcement

Collapse
No announcement yet.

Altering 'Wander'

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Altering 'Wander'

    Hi. I'm trying to alter the Wander Script, or simply rewrite it, so that the event sometimes pauses between steps. I find that actually interacting with a constantly moving NPC event can be tough.

    My thoughts on it are thus:
    Within the action script (I'm not familiar with action scripts per se, and it might be because of that definition that this isn't working...), I have a variable assigned with a random number between 1 and 2... if the number is 1, I give a wait command and if 2, then it simply goes back to the random movement command. This doesn't work. So, I tried to embed the actual movement within a script branch which needed a 1 to execute... the number being generated every time the script loops... This doesn't work either, as the NPC now just stands there.

    Do action scripts only execute once and then store that movement in memory or do they loop? If they only store it in memory, is there any way you can think of which would allow these NPCs to pause every now and then?

    Thanks!
Working...
X