Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Basic #basic commands where there isn't a direct room interaction
- def do_help
- send " BABY SEAL MUD COMMANDS"
- send " say: just type say and your message"
- send " Look: examine your immediate surroundings."
- send " exit: leave the game"
- send " help: what you're looking at right now."
- send " Bounce: makes magic bubblegum. also how you move."
- send " Flop: for resting and chewing bubblegum."
- send " Get: pick up magic bubblegum."
- send " Chew: prepare for magic! precurser to blow."
- send " Blow: make powerful tools to aid you!"
- send " Take: picks up the most recent item you made."
- send " Inventory: examine your inventory."
- send " Wear: wield that magic!"
- send " Remove: un-wield that magic!"
- send " Drop: you drop a magic item on the ground."
- send " glue: glue two objects together. note- if you have three or more objects in your inventory, you'll lose them."
- send " Capitalized commands have shortcuts, the first letter of the command. l for look, w for wear, and so on. note: b = bounce, bb = blow bubble"
- end
- def do_flop
- send "You grunt adorably as you flop down on the ground to rest."
- other_players.each { |p| p.send "#{name} flops down onto the ground with an adorable little grunt."}
- @position = true
- end
- def do_wear
- if @inv.empty?
- send "Your inventory is empty."
- else
- send "You carefully balance a #{@inv.last.itemcolor} #{@inv.last.itemname} on your head."
- other_players.each { |p| p.send "#{name} carefully balances a #{@inv.last.itemcolor} #{@inv.last.itemname} on his head. "}
- @wear.push(@inv.pop)
- end
- end
- def do_remove
- if @wear.empty?
- send "You aren't wearing anything to remove."
- else
- send "You remove a #{@wear.last.itemcolor} #{@wear.last.itemname} from your head. "
- other_players.each { |p| p.send "#{name} removes a #{@wear.last.itemcolor} #{@wear.last.itemname} from his head. "}
- @inv.push(@wear.pop)
- end
- end
- def do_chew
- unless @position
- send "One cannot chew gum and bounce at the same time."
- return
- end
- if @inventorybg > 0
- send "You begin chewing one of your magic pieces of bubblegum."
- other_players.each { |p| p.send "#{name} begins chewing a piece of magic bubblegum."}
- @inventorybg -= 1
- @readytoblow = true
- else
- send "You are all out of gum! Bounce to make more!"
- end
- end
- def do_inventory
- send "you look in your fannypack! you have #{@inventorybg} pieces of bubblegum!"
- if @inv.empty?
- send "You aren't carrying anything."
- else
- send "You are carrying:"
- @inv.each { |m| send "#{m.itemcolor} #{m.itemname}"}
- end
- if @wear.empty?
- send "You aren't wearing anything."
- else
- send "\n You are balancing the following on your head:"
- @wear.each { |m| send "#{m.itemcolor} #{m.itemname}"}
- end
- send "You sense that your attack power is #{@inv.length}"
- send "You sense that your defense is #{@wear.length}"
- end
- end
Add Comment
Please, Sign In to add comment