Scripting: Difference between revisions

m
Small typo fixed.
m (Additional spacing.)
m (Small typo fixed.)
Line 50: Line 50:
tn left</nowiki>
tn left</nowiki>


With this script the SPC has a 50 percent chance to move forwards and backwards and if that fails... your SPC have a 40% chance to look around. Random allows you to trigger those sections of the life script with a certain percentage chance. You can also do <code> = random 100</code> to ensure the code always runs. In the next example, lets look at a script that always runs.
With this script the SPC has a 50 percent chance to move forwards and backwards and if that fails... your SPC has a 40% chance to look around. Random allows you to trigger those sections of the life script with a certain percentage chance. You can also do <code> = random 100</code> to ensure the code always runs. In the next example, lets look at a script that always runs.


  <nowiki>
  <nowiki>
62

edits