Sha256: 990294924eaeac043ebd9107d82f7db8b55493e145fff0a9e67a66856807f5fc
Contents?: true
Size: 1.41 KB
Versions: 1
Compression:
Stored size: 1.41 KB
Contents
# script 'standard' Gamefic.script do respond :insert, Use.available, Use.available do |actor, thing, target| actor.tell "You can't put #{the thing} inside #{the target}." end respond :insert, Use.children, Use.available(Receptacle) do |actor, thing, receptacle| actor.tell "You put #{the thing} in #{the receptacle}." thing.parent = receptacle end respond :insert, Use.available, Use.available(Receptacle) do |actor, thing, receptacle| if thing.parent == actor actor.proceed else actor.tell "You don't have #{the thing}." end end interpret "drop :item in :container", "insert :item :container" interpret "put :item in :container", "insert :item :container" interpret "place :item in :container", "insert :item :container" interpret "insert :item in :container", "insert :item :container" interpret "drop :item inside :container", "insert :item :container" interpret "put :item inside :container", "insert :item :container" interpret "place :item inside :container", "insert :item :container" interpret "insert :item inside :container", "insert :item :container" interpret "drop :item into :container", "insert :item :container" interpret "put :item into :container", "insert :item :container" interpret "place :item into :container", "insert :item :container" interpret "insert :item into :container", "insert :item :container" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gamefic-standard-2.1.0 | lib/gamefic-standard/actions/insert.rb |