Guest User

Untitled

a guest
May 22nd, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. include, plotscr.hsd
  2. include, pstutor.hsi
  3.  
  4. #-----------------------------------------------------
  5. #this script makes the robot say "Hello World"
  6. #and then walk three spaces north, then side-to-side
  7.  
  8. plotscript, Hello World, begin
  9. suspend player
  10. show text box (1)
  11. wait for text box
  12. walk hero (me,north,3)
  13. wait for hero (me)
  14. walk hero (me,west,1)
  15. wait for hero (me)
  16. walk hero (me,east,2)
  17. wait for hero (me)
  18. walk hero (me,west,1)
  19. wait for hero (me)
  20. set hero direction (me,south)
  21. resume player
  22. end
  23.  
  24. #-----------------------------------------------------
  25. #This script makes an NPC do a dance
  26.  
  27.  
  28. plotscript, Robot Dance, who=0, begin
  29. suspend player
  30. walk NPC (who,west,1)
  31. wait for NPC (who)
  32. walk NPC (who,east,2)
  33. wait for NPC (who)
  34. walk NPC (who,west,1)
  35. wait for NPC (who)
  36. set NPC direction (who,north)
  37. wait (4)
  38. set NPC direction (who,east)
  39. wait (4)
  40. set NPC direction (who,south)
  41. resume player
  42. end
Add Comment
Please, Sign In to add comment