Sha256: 329a2f92f52d48e1c791e045b35f9a0c62c81c41064dabc6bcd812134c769892
Contents?: true
Size: 1.54 KB
Versions: 1
Compression:
Stored size: 1.54 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| if thing.sticky? actor.tell thing.sticky_message || "You need to keep #{the thing} for now." else actor.tell "You put #{the thing} in #{the receptacle}." thing.parent = receptacle end 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.0.0 | lib/gamefic-standard/actions/insert.rb |