Commit Graph

45 Commits

Author SHA1 Message Date
JappaWakka 0d36580015 Make <Pokedex.DexSeen(int)> include caught 2024-04-24 19:12:57 +02:00
JappaWakka 81f05a3bd1 Added <System.FileExists(FilePath)> construct
Returns if the specified file (including extension) exists (relative to the GameMode's ContentPath).
2024-04-22 19:25:07 +02:00
JappaWakka 86428f8055 Add construct <Pokemon.FullyHealed([partyID])>
Checks if a specific Pokémon or all Pokémon in the party are fully healed.
2024-04-21 09:10:23 +02:00
JappaWakka 1bef17409e Add <Pokemon.IsRoaming(RoamerID)>
Checks if the given roaming Pokémon is still active.
2024-04-07 08:56:49 +02:00
JappaWakka eabd35006a Quick command error fix 2024-03-28 18:28:21 +01:00
Jasper Speelman fdc89e31e8
Merge pull request #204 from P3D-Legacy/0.61-implementations
0.61 implementations
2024-03-28 18:03:51 +01:00
JappaWakka 1d26954eab Added <system.language> construct...
...that returns the current language suffix
2024-02-17 18:50:08 +01:00
JappaWakka fcac15b0bd Pokémon & Pokédex fixes 2024-02-17 10:51:32 +01:00
JappaWakka 92f3832416 Fix entity constructs return sng instead of str 2023-12-22 10:12:14 +01:00
JappaWakka a1c3c6f9da Added <Pokémon.LevelAttacks(id,maxLv)> construct
<Pokémon.LevelAttacks(Index,[MaxLevel])>
Returns a string of every move the Pokémon can learn at or below a certain level
* Index (int) = Index of a Pokémon in the player's party
* MaxLevel (int) [optional] = Every move the Pokémon can learn at or below the level specified by this argument is added to the string. When this argument is left out or set to "-1", it will default to the Pokémon's current level.
2023-12-16 15:59:32 +01:00
JappaWakka a7e723f720 Add Selected Player Skin Name & Gender constructs 2023-11-23 15:09:39 +01:00
JappaWakka c0101a122a Replaced script steps thing with @script.delay
@Script.Delay(ScriptPath,DelayType,DelayValue)
Executes a script file after something happened (like having moved a certain amount of steps)

@Script.ClearDelay(ScriptPath,DelayType,DelayValue)
Clears the register created with @script.delay, preventing the script from being executed.

<script.delay(ReturnType)>
Returns a different thing depending on what you write for ReturnType:
"type" - returns what kind of trigger the script delay uses (only "steps" atm)
"script" - returns the script that will be executed after the delay ended
"value" - returns when the trigger ends, like how many steps are left for example
2023-10-30 13:28:30 +01:00
JappaWakka dae406f887 Added Step Script commands & constructs
@Player.SetScriptSteps(stepAmount,scriptPath)
Executes a script file after having moved the given amount of steps.

@Player.ClearScriptSteps
Clears the register created with @Player.SetScriptSteps, preventing the script from being executed.

<Player.ScriptSteps>
Returns the amount of steps before the script as defined by @Player.SetScriptSteps is executed.
2023-10-29 17:59:39 +01:00
JappaWakka 5747c2f1ce Added pkmn gender constructs + fix hidden grotto 2023-09-03 18:47:15 +02:00
JappaWakka 15f57d8bc5 Make plural names localizable + item found 2023-08-09 16:20:16 +02:00
JappaWakka 78cd53d745 Added <system.scripttrigger>
Returns what triggered the current script (NPCInSight, NPCInteract, ScriptBlockWalkOn, ScriptBlockInteract, Notification, PhoneReceive, PhoneCall, StartScript, ScriptCommand, StrengthTrigger, MapScript, ChatCommand).
2023-08-06 16:17:05 +02:00
JappaWakka bded481df8 Customizable Frontier Emblems 2023-07-28 12:35:00 +02:00
JappaWakka af2831673e Mail sender name and ot constructs 2023-07-25 14:11:41 +02:00
JappaWakka fad33eaa4a Pokédex form support progress 2023-07-12 20:09:06 +02:00
JappaWakka 4a7c89cf53 Update ScriptLibrary 2023-06-30 17:56:26 +02:00
JappaWakka 20e456ead8 Return regular pokémon name if no nickname 2023-06-27 15:50:57 +02:00
JappaWakka 319ad9b231 Added @item.select and <inventory.selected>
@item.select(AllowedPages,AllowedItems)
Opens an item select screen with only the specified item type pages (separated with ";", e.g. "0;1;2" or "standard;medicine;plants") and possible item IDs (single items separated with ";", or with a "-" if you want a range, e.g. "2000-2066"
Both variables are optional. If AllowedPages is empty, all pages are allowed. If AllowItems is empty, all items are allowed.

<inventory.selected>
Returns the ID of the item selected in the screen opened by @item.select(AllowedPages,AllowedItems)
2023-05-31 12:34:11 +02:00
darkfire006 4e4b1bac73 add juice properties to berries 2023-05-30 17:54:26 -05:00
darkfire006 a11f46dcd6 coin scripts 2023-05-29 20:33:16 -05:00
JappaWakka d13b5eb8d3 GameMode Item Preparations
Implemented GameMode Mega Stones
2023-05-29 15:33:57 +02:00
JappaWakka b23c0455e6 Added missing run key from <system.button(str)> 2023-05-02 11:26:14 +02:00
darkfire006 a8920ab6fb region and regionalform envir constructs 2022-07-05 23:45:03 -05:00
JappaWakka 7eb7805dcf Added constructs for checking player movement
Also fixed the "<player.velocity>" construct and reset the player's movement speed in the teacher script in violet city
2022-06-11 15:01:16 +02:00
darkfire006 9ac68d809f add optional param for <daycare.canbreed>
bool for if it should calc multipliers or not
2022-05-08 02:02:26 -05:00
JappaWakka 893c8acd99 Fixed warning in one of the DoInventory constructs 2022-02-27 16:40:10 +01:00
JappaWakka 307fc24cf6 Added some constructs
* <entity.rotation(int)> returns the direction in which an entity is facing
* <level.environmenttype> returns the environmenttype of a level/map
* Added some missing constructs to the ScriptLibrary
2022-02-03 22:25:09 +01:00
darkfire006 1d7912bb8f <inventory.name> new arg
new optional argument, can be p/plural to get the plural name or s/singlular for the regular name, defaults to singular
2021-10-28 10:21:57 -05:00
darkfire006 1c2b3a94fb create several constructs to return data about a generic pokemon
getweight, getheight, getentry, getcolor, getspecies, getability
2021-10-26 01:29:14 -05:00
JappaWakka 39aaed5577 Made <system.token(str_tokenname)> and <system.button(str_buttonname)> constructs 2021-10-19 23:55:26 +02:00
darkfire006 32dba7e878 document scripts in code 2021-10-19 14:36:47 -05:00
JappaWakka 9def5642e8 Lots of QoL changes
- You can now run up and down a slideblock.
- NPC movement type Straight is now less random and more smooth.
- When renaming the rival, the skin visible at the top changes to whatever skin is set as the rivalskin. This way, the rival is not stuck with one skin. This can be useful when the rival's skin changes based on the player's gender for example.
- Text messages that contain <token.tokenname>, where tokenname is a string from the localizations files, have the part between the <> replaced with that string now.
- Text messages that contain <button.buttonname>, where buttonname is one of the controls defined in "Saves\Keyboard.dat", will now have the part between the <> replaced with the key assigned to that control.
- Players can now be genderless instead of only either male or female in scripts.
- Which skins are available in the intro is now defined in the GameMode's definition file instead of being hard-coded
- Old New Game intro now uses the player skin data from the GameMode definition file
- The Pokémon in the old New Game now doesn't fall too far down anymore
- Scripts adjusted to match the new gender functionality
2021-10-01 15:19:04 +02:00
darkfire006 e5d543c945 mastershinyrate
create global control for shiny rate, update it for standard encounters and breeding and make it script callable
2021-09-29 02:25:17 -05:00
darkfire006 45edf9a057 <player.isgamejolt(-bool-)>
returns true is it is a Gamejolt account, argument is optional, if true also checks if the player's GJ acc is banned and returns false if it is.
2021-09-27 14:29:51 -05:00
JappaWakkaP3D c74751b35b Map property typo corrections, new skydomes & improved lighting
Map Property "Lightning" renamed to "Lighting" (bulk replaced all occurences in the maps)

Map Property "EnviromentType" renamed to "EnvironmentType" (bulk replaced all occurences in the maps)

Replaced the skydomes, sun, moon and stars and updated the lighting to be less dark at times of day other than day itself.
2021-08-20 17:53:40 +02:00
TheOmegaGhost cc2690dd9d Menu Sprite Reorganization 2020-06-19 23:47:03 -03:00
Vitaly Mikhailov ef0cecfe2e
Added <battle.caught> command 2019-10-31 23:57:27 +03:00
darkfire006 796ae57ec2 <pokemon.hasattackinparty()> construct
takes a move ID and returns the first pokemon in party with that move or
else -1
2019-10-13 00:36:10 -05:00
darkfire006 c61dc8584e N texture and following pokemon ID 2019-10-09 21:30:06 -05:00
darkfire006 e13fce85b0 replace [] with «» for output/input of pokemon data 2019-10-06 22:24:08 -05:00
nilllzz a1786d5181 literally touch every file reorganizing the solution 2018-02-21 16:34:06 +01:00