Sha256: 23378e111878dd18e020993ca3b94d7e4dfacd5794b96b4d027e45d54b286e28
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
Gamefic.script do respond :place, Use.children, Use.reachable do |actor, thing, supporter| actor.tell "You can't put #{the thing} on #{the supporter}." end respond :place, Use.available, Use.available(Supporter) do |actor, thing, supporter| actor.execute :take, thing unless thing.parent == actor next unless thing.parent == actor thing.parent = supporter actor.tell "You put #{the thing} on #{the supporter}." end respond :place, Use.children, Use.reachable(Supporter) do |actor, thing, supporter| thing.parent = supporter actor.tell "You put #{the thing} on #{the supporter}." end interpret 'put :thing on :supporter', 'place :thing :supporter' interpret 'put :thing down on :supporter', 'place :thing :supporter' interpret 'set :thing on :supporter', 'place :thing :supporter' interpret 'set :thing down on :supporter', 'place :thing :supporter' interpret 'drop :thing on :supporter', 'place :thing :supporter' interpret 'place :thing on :supporter', 'place :thing :supporter' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gamefic-standard-2.4.0 | lib/gamefic-standard/actions/place.rb |