Added Info & Area buttons.

This commit is contained in:
TheGreenTie
2020-03-01 19:27:30 -06:00
parent d9f123b438
commit f8ffe2de19
17 changed files with 127 additions and 34 deletions

View File

@@ -0,0 +1,22 @@
///url_get(area?)
var location = argument0;
if (check_galar(real(global.selected[dex.idno])))
{
var pkmn = string_lower(global.selected[dex.pokemon]);
var url = "https://www.serebii.net/pokedex-swsh/"+pkmn+"/";
if (location)
url = string_insert("/locations.shtml", url, string_length(url)+1);
}
else
{
var dexno = global.selected[dex.dexno];
var url = "https://www.serebii.net/pokedex-sm/"+dexno+".shtml";
if (location)
url = string_replace(url, "sm/", "sm/location/");
}
url_open(url);

View File

@@ -0,0 +1,8 @@
{
"id": "aa0cd879-2cce-411a-dd1a-10c3fd63f802",
"modelName": "GMScript",
"mvc": "1.0",
"name": "url_get",
"IsCompatibility": false,
"IsDnD": false
}