Skip to content

Instantly share code, notes, and snippets.

Avatar

g0ld g0ldPRO

View GitHub Profile
View Route 10 to Celadon.json
{
"name": "Route 10 to Celadon",
"author": "c0pper (thanks to Sick for coords)",
"path": [
{
"condition": ["isPokemon1Usable"],
"actions": [
{
"condition": ["map", "Pokecenter Route 10"],
"action": ["moveToMap", "Route 10"]
View DSSock.cs
using PROAC;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Sockets;
using System.Text;
using System.Text.RegularExpressions;
using UnityEngine;
View MapCreator.cs
using System;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
[RequireComponent(typeof(MeshFilter)), RequireComponent(typeof(MeshRenderer))]
public class MapCreator : MonoBehaviour
{
public GameObject LadderTop;
View ItemDes.cs
this.Items[72] = "A Tasty Christmas Treat the Restores 200 HP.";
this.Items[73] = "A Tasty Christmas Treat the Restores 200 HP.";
this.Items[809] = "A Limited Edition Christmas Cracker that can be opened. It can contain 1 of 6 different coloured Party Hats!";
this.Items[810] = "A Party Hat from Christmas 2015, You can wear this!";
this.Items[811] = "A Party Hat from Christmas 2015, You can wear this!";
this.Items[812] = "A Party Hat from Christmas 2015, You can wear this!";
this.Items[813] = "A Party Hat from Christmas 2015, You can wear this!";
this.Items[814] = "A Party Hat from Christmas 2015, You can wear this!";
this.Items[815] = "A Party Hat from Christmas 2015, You can wear this!";
this.Items[838] = "An Axe to chop down trees. \nRequires having 'HM01 - Cut' to use.";
View "teach" Proposal.md

/!\ The feature has been implemented already, more infos on how to use it in the tutorial on the forum.

Feedback time. We would like to add a 1st level "teach": {} (like "path" or "battle") to set the moves to learn, to never forget or to forget in priority.

"teach": {
  "pokemonName": {
    "force": true,
    "toLearn": ["moveA", "moveB", "moveC", "moveD", "moveE"],
    "toForget": ["moveF", "moveG", "moveH"],
View DSSocks.cs
using PROAC;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Sockets;
using System.Text;
using System.Text.RegularExpressions;
using UnityEngine;
View Abilities pro
this.Abilityz[0] = "None";
this.Abilityz[1] = "Stench";
this.Abilityz[2] = "Drizzle";
this.Abilityz[3] = "Speed Boost";
this.Abilityz[4] = "Battle Armor";
this.Abilityz[5] = "Sturdy";
this.Abilityz[6] = "Damp";
this.Abilityz[7] = "Limber";
this.Abilityz[8] = "Sand Veil";
this.Abilityz[9] = "Static";
View API Update 2.3.0.cs
// API: Check if the PC is open. Moving close the PC, usePC() opens it.
private bool IsPCOpen()
// API: Move to the PC and opens it, refreshing the first box.
private bool UsePC()
// API: Withdraw a pokemon from a known box
private bool WithdrawPokemonFromPC(int boxId, int boxPokemonId)
// API: Deposit a pokemon to the pc
View unitTestPCAPI.lua
author="g0ld"
description="Testing PC API"
local bestIVCount = 0
local bestPokemon = -1
local currentBoxId = 1
local currentPokemonId = 1
function managePC()
local boxCount = getPCBoxCount()
View unitTestPCAPI-IVs.lua
author="g0ld"
description="Testing PC API"
local bestIVCount = 0
local bestPokemonBox = -1
local bestPokemonId = -1
local bestPokemonName
local currentBoxId = 1
local currentPokemonId = 1
You can’t perform that action at this time.