6 Replies • 628 Views
HostMaster
# Function that update the team button when extend_data is correct def extend_data_button_update apt_detect = @extend_data.open_skill_learn || @extend_data.stone_evolve @team_buttons.each do |btn| btn.show_item_name v = @extend_data.on_pokemon_choice(btn.data, self) c = ON_POKEMON_CHOICE_COLOR_MAPPING[v] if apt_detect message_id = ON_POKEMON_CHOICE_MESSAGE_MAPPING[v] else message_id = (v ? 140 : 141) end btn.item_text.load_color(c).text = parse_text(22, message_id) end end
Your function is supposed to look like this: # Function that update the team button when extend_data is correct def extend_data_button_update apt_detect = @extend_data.open_skill_learn || @extend_data.stone_evolve @team_buttons.each do |btn| btn.show_item_name v = @extend_data.on_pokemon_choice(btn.data, self) c = ON_POKEMON_CHOICE_COLOR_MAPPING[v] if apt_detect message_id = ON_POKEMON_CHOICE_MESSAGE_MAPPING[v] else message_id = (v ? 140 : 141) end btn.item_text.load_color(c).text = parse_text(22, message_id) end end
The scripts are supposed to look the same as those: https://gitlab.com/pokemonsdk/pokemonsdk/-/tree/development/scripts/01400%20GamePlay/00200%20Party