munch
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

42 行
872 B

  1. /* AEZNON COMMISSION */
  2. function Geta() {
  3. Creature.call(this, "Geta", 5, 15, 10);
  4. this.hasName = true;
  5. this.description = function() { return "Geta" };
  6. }
  7. function GetaObj() {
  8. GameObject.call(this, "Geta");
  9. this.actions.push( {
  10. "name": "Approach Geta",
  11. "action": function() {
  12. startDialog(new GetaDialog());
  13. }
  14. });
  15. }
  16. function GetaDialog() {
  17. DialogNode.call(this);
  18. this.text = "You approach the sandy-furred fox.";
  19. {
  20. let nodeFight = new DialogNode();
  21. this.addChoice("He certainly looks tasty...", nodeFight);
  22. nodeFight.text = "You stalk up to your prey, but he sees you coming. You're going to have to fight!";
  23. nodeFight.hooks.push( function(){
  24. currentFoe = new Geta();
  25. changeMode("combat");
  26. });
  27. }
  28. {
  29. let nodeIgnore = new DialogNode();
  30. this.addChoice("Leave him be", nodeIgnore);
  31. }
  32. }