Sha256: 75020ef6d425d144f10231fc3e69880a4d9e4268ad3c1f59264e72ae960bb4a8
Contents?: true
Size: 624 Bytes
Versions: 7
Compression:
Stored size: 624 Bytes
Contents
module Gamefic::Standard::Give extend Gamefic::Scriptable script do respond :give, available, children do |actor, _character, _gift| actor.tell 'Nothing happens.' end respond :give, available(Character), available do |actor, character, gift| actor.tell "#{The character} doesn't want #{the gift}." end respond :give, available(Character), available do |actor, _character, gift| actor.execute :take, gift if gift.parent != actor actor.proceed if gift.parent == actor end interpret 'give :gift to :character', 'give :character :gift' end end
Version data entries
7 entries across 7 versions & 1 rubygems