Module: GTS

Defined in:
docs/01450_Systems_09000_GTS.rb

Overview

GTS Script

Defined Under Namespace

Modules: Core, Settings Classes: Button, LoadingScreen, Scene, SearchMethod, SummarySelect, SummaryWanted, Summary_Memo_GTS, WantedDataScene

Class Method Summary collapse

Class Method Details

.finish_trade(my_pokemon, new_poke, searching, choice = nil, id = nil)

Finishes the GTS trade

Parameters:

  • my_pokemon (PFM::Pokemon)

    the player’s Pokemon

  • new_poke (PFM::Pokemon)

    the traded Pokemon

  • choice (Integer, nil) (defaults to: nil)

    the choice made in the Box in order to correctly remove the Pokemon

  • searching (Boolean)

    if the Pokemon was got from searching (implying choice to be Integer)

  • id (Integer) (defaults to: nil)

    online ID



34
35
# File 'docs/01450_Systems_09000_GTS.rb', line 34

def finish_trade(my_pokemon, new_poke, searching, choice = nil, id = nil)
end

.finish_trade_from_searching(my_pokemon, new_poke, choice, id)

Finishes the GTS trade (delete pokemon from data & insert traded Pokemon in party)

Parameters:

  • my_pokemon (PFM::Pokemon)

    the player’s Pokemon

  • new_poke (PFM::Pokemon)

    the traded Pokemon

  • choice (Integer, nil)

    the choice made in the Box in order to correctly remove the Pokemon

  • id (Integer)

    online ID



41
42
# File 'docs/01450_Systems_09000_GTS.rb', line 41

def finish_trade_from_searching(my_pokemon, new_poke, choice, id)
end

.genders

List of the genders



51
52
# File 'docs/01450_Systems_09000_GTS.rb', line 51

def genders
end

.loading_screenLoadingScreen

Return the loading screen

Returns:



26
27
# File 'docs/01450_Systems_09000_GTS.rb', line 26

def loading_screen
end

.open

Main Method



22
23
# File 'docs/01450_Systems_09000_GTS.rb', line 22

def open
end

.order_species(index)

Brings up all species of pokemon of the given index of the given sort mode



44
45
# File 'docs/01450_Systems_09000_GTS.rb', line 44

def order_species(index)
end

.species_list_from_criteriaArray<Integer>

Return the specie list filtered with the criteria (seen, got, black_list)

Returns:

  • (Array<Integer>)


48
49
# File 'docs/01450_Systems_09000_GTS.rb', line 48

def species_list_from_criteria
end