Advertisement
SteelGolem

sample scripting from sgdq

Mar 20th, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. inn
  2. {
  3. let $price = args[0]
  4. let #price = to_int($price)
  5. let $s = inn_intro_1 + $price + inn_intro_2
  6. say $s
  7. show_yesno()
  8. if yesno_result == "no" then goto _no
  9.  
  10. if gold < #price then goto _too_poor
  11.  
  12. say inn_good_night
  13. let gold = gold - #price
  14. // TODO fade-out
  15. if hp >= maxhp then goto _fill_mp // not really needed
  16. let hp = maxhp
  17. label _fill_mp
  18. if mp >= maxmp then goto _full // not really needed
  19. let mp = maxmp
  20. label _full
  21. // TODO fade-in
  22. say inn_good_morning
  23. goto _end
  24.  
  25. label _no
  26. say inn_no
  27. goto _end
  28.  
  29. label _too_poor
  30. say inn_too_poor
  31.  
  32. label _end
  33. pause()
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement