Module: GamesAndRpgParadise::Lpc::Geas

Defined in:
lib/games_and_rpg_paradise/lpc/geas/goblinoid_raids.rb,
lib/games_and_rpg_paradise/lpc/geas/paths.rb,
lib/games_and_rpg_paradise/lpc/geas/forum_compacter.rb,
lib/games_and_rpg_paradise/lpc/geas/who_list_analyzer.rb,
lib/games_and_rpg_paradise/lpc/geas/character_exclusion.rb

Overview

GamesAndRpgParadise::Lpc::Geas

Defined Under Namespace

Modules: Paths Classes: CharacterExclusion, ForumCompacter, WhoListAnalyzer

Constant Summary collapse

SPAWN_ROOM =
#

SPAWN_ROOM

Obtain a room first.

#
room(:ironhold_park)+'park01'
WALK_SEQUENCE =
#

WALK_SEQUENCE

Add a hardcoded walk-sequence.

#
%w(
  nw
  ne
  e
  ne
  e
  e
  se
  n
)
ARRAY_BURN_ACTIONS_FOR_GOBLINOID_RAIDERS =
#

ARRAY_BURN_ACTIONS_FOR_GOBLINOID_RAIDERS

#
[
  'wield torch',
  'burn here with torch'
]
MOVE_TO_BANDAMA_PLACE =
#

MOVE_TO_BANDAMA_PLACE

#
w

Class Method Summary collapse

Class Method Details

.spawn_goblinoidObject

#

spawn_goblinoid

#


55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/games_and_rpg_paradise/lpc/geas/goblinoid_raids.rb', line 55

def self.spawn_goblinoid
  # Put the goblin into the "spawn room".
  gobbo = create_monster(:gobbo)
  gobbo.move_to(SPAWN_ROOM)
  gobbo.set_delay(3) # how many seconds before doing each iteration in add_sequence.
  gobbo.add_sequence(WALK_SEQUENCE) # Now we should be at bandama.
  if room(gobbo).is_bandama_marketplace? # If we are at the marketplace of bandama.
    gobbo.add_sequence(MOVE_TO_BANDAMA_PLACE)
    gobbo.add_sequence(ARRAY_BURN_ACTIONS_FOR_GOBLINOID_RAIDERS) 
  end
  e 'A goblin on a spider appears, wielding a torch in his hand.'
end