Sha256: 3bef52bb29c0d783ddacc4e7c8658ed698bbca0f5e4db546c33ebf3b9740899f
Contents?: true
Size: 1.35 KB
Versions: 1
Compression:
Stored size: 1.35 KB
Contents
Gamefic.script do 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 go #{portal.direction}." end actor.perform :look end end end respond :go, Use.text do |actor, string| actor.tell "You don't see any exit \"#{string}\" from here." end respond :go do |actor| actor.tell "Where do you want to go?" end interpret "north", "go north" interpret "south", "go south" interpret "west", "go west" interpret "east", "go east" interpret "up", "go up" interpret "down", "go down" interpret "northwest", "go northwest" interpret "northeast", "go northeast" interpret "southwest", "go southwest" interpret "southeast", "go southeast" interpret "n", "go north" interpret "s", "go south" interpret "w", "go west" interpret "e", "go east" interpret "u", "go up" interpret "d", "go down" interpret "nw", "go northwest" interpret "ne", "go northeast" interpret "sw", "go southwest" interpret "se", "go southeast" interpret "go to :place", "go :place" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gamefic-standard-2.2.0 | lib/gamefic-standard/actions/go.rb |