Sha256: e99e10b4a53809547bdc3ce98e0d4963b7c971ca542ed90634f4df7bcb77ba1b

Contents?: true

Size: 1.19 KB

Versions: 1

Compression:

Stored size: 1.19 KB

Contents

respond :go, Use.siblings(Portal) do |actor, portal|
  if actor.parent != actor.room
    actor.perform :leave
  end
  if actor.parent == actor.room
    if portal.destination.nil?
      actor.tell "That portal leads nowhere."
    else
      actor.parent = portal.destination
      if !portal.direction.nil?
        actor.tell "#{you.pronoun.Subj} go #{portal.direction}"
      end
      actor.perform :look, actor.room
    end
  end
end

respond :go, Use.text do |actor, string|
  actor.tell "#{you.pronoun.Subj} #{you.contract(you.verb.do + ' not')} see any exit \"#{string}\" from here."
end

respond :go do |actor|
  actor.tell "Where do you want to go?"
end

xlate "north", "go north"
xlate "south", "go south"
xlate "west", "go west"
xlate "east", "go east"
xlate "up", "go up"
xlate "down", "go down"
xlate "northwest", "go northwest"
xlate "northeast", "go northeast"
xlate "southwest", "go southwest"
xlate "southeast", "go southeast"

xlate "n", "go north"
xlate "s", "go south"
xlate "w", "go west"
xlate "e", "go east"
xlate "u", "go up"
xlate "d", "go down"
xlate "nw", "go northwest"
xlate "ne", "go northeast"
xlate "sw", "go southwest"
xlate "se", "go southeast"

interpret "go to :place", "go :place"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gamefic-sdk-1.7.0 scripts/standard/actions/go.plot.rb