Skip to content

Instantly share code, notes, and snippets.

Avatar

g0ld g0ldPRO

View GitHub Profile
View smogonData.json
This file has been truncated, but you can view the full file.
{
"alakazam": {
"name": "Alakazam",
"alts": [{
"suffix": "",
"hp": 55,
"atk": 50,
"def": 45,
"spa": 135,
View debug-17.lua
function onBattleAction()
log("onBattleAction()")
log("isWildBattle()")
if isWildBattle() then
log("true")
log("isOpponentShiny()")
if isOpponentShiny() then
log("true")
log("useItem('Ultra Ball')")
if not useItem("Ultra Ball") then
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
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 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 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 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 "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 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 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;
You can’t perform that action at this time.