Sha256: ba8503ca5a136604366b6ef7fb43d8eab00928bcad1f324c94ca8ac0e6898f11
Contents?: true
Size: 1.47 KB
Versions: 1
Compression:
Stored size: 1.47 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.visible, Use.reachable(Supporter) do |actor, thing, supporter| if thing.parent != actor actor.perform :take, thing end if thing.parent == actor thing.parent = supporter actor.tell "You put #{the thing} on #{the supporter}." end 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 respond :place, Use.visible, Use.text do |actor, thing, supporter| actor.tell "You don't see anything called \"#{supporter}\" here." end respond :place, Use.text, Use.visible do |actor, thing, supporter| actor.tell "You don't see anything called \"#{thing}\" here." end respond :place, Use.text, Use.text do |actor, thing, supporter| actor.tell "I don't know what you mean by \"#{thing}\" or \"#{supporter}.\"" end xlate "put :thing on :supporter", "place :thing :supporter" xlate "put :thing down on :supporter", "place :thing :supporter" xlate "set :thing on :supporter", "place :thing :supporter" xlate "set :thing down on :supporter", "place :thing :supporter" xlate "drop :thing on :supporter", "place :thing :supporter" xlate "place :thing on :supporter", "place :thing :supporter" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gamefic-standard-2.1.0 | lib/gamefic-standard/actions/place.rb |