Pet Battle Scripts

Pet Battle Scripts

265k Downloads

Wiki changes for trap/collected status conditions

WanderingFox opened this issue ยท 3 comments

commented

Github makes it extremely annoying for a non-collaborator to edit the wiki, here's the wiki edits that should have been included in my original PR!

Pets Heading:

### `collected`
if the pet is in your collection or not

**Return:** `bool`
**Examples:** `enemy.collected`, `enemy(#2).collected`, `enemy(Chrominius).collected`

Status Heading:

### `trap`
if the trap is usable (or potentially usable if enemy hp is low enough)

**Return:** `bool`
**Examples:** `catch [trap & enemy.hpp < 35]`

When I have some time over the weekend I intend to extend these a little further if you're still interested in accepting PRs :)

Thank you for picking up maintenance btw!

commented

Added these, but will leave this open in case you want to extend!

commented

@axc450 added a few more capture conditions in #11 documentation below:

Pets Heading:

### `collected.count`
The number of pets in your collection

**Return:** `value`
**Examples:** `enemy.collected.count`, `enemy(#2).collected.count`, `enemy(Chrominius).collected.count < 3`

### `collected.max`
The maximum number of pets you could have in your collection.
Currently returns `1` if the pet is a companion, or `3` if the pet is wild.

**Return:**`value`
**Examples:** `self.collected.max =1`, `enemy(#2).collected.max`
commented

Perfect, thanks for this!