Module: Debugger

Defined in:
docs/00700_Ajout_PSDK.rb

Overview

A module that helps the PSDK_DEBUG to perform some commands

Constant Summary collapse

WarpError =

Warp Error message

'Aucune map de cet ID'
WarpMapName =

Name of the map to load to prevent warp error

'Data/Map%03d.rxdata'

Class Method Summary collapse

Class Method Details

.__find_maker_warp(id) ⇒ Boolean

Find the normal position where the player should warp in a specific map

Parameters:

  • id (Integer)

    id of the map

Returns:

  • (Boolean)

    if a normal position has been found

Author:

  • Nuri Yuri



536
537
# File 'docs/00700_Ajout_PSDK.rb', line 536

def __find_maker_warp(id)
end

.__find_map_warp(map)

Find an alternative position where to warp

Parameters:

  • map (RPG::Map)

    the map data

Author:

  • Nuri Yuri



541
542
# File 'docs/00700_Ajout_PSDK.rb', line 541

def __find_map_warp(map)
end

.__warp_command_found(pages) ⇒ Boolean

Detect a teleport command in the pages of an event

Parameters:

Returns:

  • (Boolean)

    if a command has been found

Author:

  • Nuri Yuri



547
548
# File 'docs/00700_Ajout_PSDK.rb', line 547

def __warp_command_found(pages)
end

.battle_trainer(id, bgm = Interpreter::DEFAULT_TRAINER_BGM, troop_id = 3)

Fight a specific trainer by its ID

Parameters:

  • id (Integer)

    ID of the trainer in Studio

  • bgm (Array(String, Integer, Integer)) (defaults to: Interpreter::DEFAULT_TRAINER_BGM)

    bgm description of the trainer battle

  • troop_id (Integer) (defaults to: 3)

    ID of the RMXP Troop to use



530
531
# File 'docs/00700_Ajout_PSDK.rb', line 530

def battle_trainer(id, bgm = Interpreter::DEFAULT_TRAINER_BGM, troop_id = 3)
end

.warp(id, x = -1,, y = -1))

Warp command

Parameters:

  • id (Integer)

    ID of the map to warp

  • x (Integer) (defaults to: -1,)

    X position

  • y (Integer) (defaults to: -1))

    Y position

Author:

  • Nuri Yuri



524
525
# File 'docs/00700_Ajout_PSDK.rb', line 524

def warp(id, x = -1, y = -1)
end