mirror of
https://github.com/PoshoDev/DexTool.git
synced 2026-09-09 02:55:08 -05:00
Switcharoo to Gee Emm 2.3
This commit is contained in:
@@ -1,22 +1,26 @@
|
||||
///url_get(area?)
|
||||
function url_get(argument0) {
|
||||
|
||||
var location = argument0;
|
||||
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);
|
||||
|
||||
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);
|
||||
@@ -1,8 +1,12 @@
|
||||
{
|
||||
"id": "aa0cd879-2cce-411a-dd1a-10c3fd63f802",
|
||||
"modelName": "GMScript",
|
||||
"mvc": "1.0",
|
||||
"name": "url_get",
|
||||
"IsCompatibility": false,
|
||||
"IsDnD": false
|
||||
"isDnD": false,
|
||||
"isCompatibility": false,
|
||||
"parent": {
|
||||
"name": "Scripts",
|
||||
"path": "folders/Scripts.yy",
|
||||
},
|
||||
"resourceVersion": "1.0",
|
||||
"name": "url_get",
|
||||
"tags": [],
|
||||
"resourceType": "GMScript",
|
||||
}
|
||||
Reference in New Issue
Block a user