Sha256: 581ad556db20ab144e33b442a88d6cf21926bd74ca20b5a61b02d288aed2dcdb
Contents?: true
Size: 636 Bytes
Versions: 3
Compression:
Stored size: 636 Bytes
Contents
Gamefic.script do respond :enter, Use.siblings do |actor, thing| actor.tell "#{The thing} can't accommodate you." end respond :enter, Use.siblings(Enterable, :enterable?) do |actor, supporter| actor.parent = supporter actor.tell "You get in #{the supporter}." end respond :enter, Use.parent do |actor, container| actor.tell "You're already in #{the container}." end respond :enter, Use.parent(Supporter) do |actor, supporter| actor.tell "You're inside #{the supporter} already." end interpret "get on :thing", "enter :thing" interpret "get in :thing", "enter :thing" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gamefic-standard-2.2.0 | lib/gamefic-standard/actions/enter.rb |
gamefic-standard-2.1.0 | lib/gamefic-standard/actions/enter.rb |
gamefic-standard-2.0.0 | lib/gamefic-standard/actions/enter.rb |