Commit Graph

184 Commits

Author SHA1 Message Date
JappaWakka d5d291bdda Added @Player.QuitGame(doFade) command
Quits the game and goes back to the Main Menu (with optionally a fade out and in)
2024-04-26 09:51:59 +02:00
JappaWakka 0d36580015 Make <Pokedex.DexSeen(int)> include caught 2024-04-24 19:12:57 +02:00
JappaWakka 2d65ce8ce1 Hopefully fix the regionweather changing later 2024-04-24 18:31:02 +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 a0fd0f061a Fix @pokemon.setstatus to none 2024-04-07 19:49:27 +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 86cdffdd76 Name of Attack is shown after TM/HM item name...
and when you @item.messagegive an HM, the Receive_HM jingle plays as well
2024-04-06 19:30:15 +02:00
JappaWakka 62f6605a0f Fix some roamer bugs and crashes 2024-04-04 18:36:36 +02:00
JappaWakka 65ec57d27b Change RoamingID from int to str 2024-04-04 17:52:47 +02:00
JappaWakka f280c5718c Update @Pokemon.NewRoaming(...) command...
@Pokemon.NewRoaming(RoamerID,PokémonID,Level,regionID,startLevelFile,MusicLoop,[Shiny],[ScriptPath])

RoamerID & ScriptPath are new.
* RoamerID (int) = A required identifier for the roaming Pokémon, can be used in scripts.
* ScriptPath (str) = Path to a script file to execute after every encounter with any roaming Pokémon
2024-04-04 17:49:46 +02:00
JappaWakka 2cbe35552c Roamers can have forms now 2024-04-04 09:48:25 +02:00
JappaWakka 88d72bb451 Implemented script after catch or defeat roamer 2024-04-02 11:06:33 +02:00
JappaWakka 9ffa127999 Correct script library command 2024-04-01 20:08:25 +02:00
JappaWakka 8b0b977665 Made it possible to fade into @music.forceplay 2024-03-29 18:54:53 +01:00
JappaWakka d5ed9d5cca Fix incorrect info in ScriptLibrary 2024-03-29 18:53:41 +01: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 61de91a141 Added extra argument to @text.notification...
That clears the current list of notifications, dismisses the current one if it's visible and then shows the new one
2024-03-07 19:51:32 +01:00
JappaWakka 542d1084e0 Fix some errors with Hall of Fame 2024-02-21 18:04:10 +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 0a218527b3 Fix Pokémon Learn Move Bugs 2024-02-14 12:08:59 +01:00
JappaWakka 1fbe0a14ad Move MailMan check to Player.Inventory.AddItem 2024-02-09 17:51:09 +01:00
darkfire006 f685dd5506 the add command was working more like a set with a possiblity to reset the stat 2024-01-16 01:50:03 -06:00
JappaWakka 85bcb52780 Added @Level.SetRideType(int) command
Sets the Ride Type of the current map.
Possible values for "int": 0 = Depends on CanDig and CanFly tags, 1 = Can ride, 2 = Can not ride, 3 = Can't stop riding once started
2023-12-27 18:55:48 +01:00
JappaWakka 3f1b7ffc0c Added @Pokemon.Ride([pokeIndex[) command
@Pokemon.Ride([pokeIndex])
Makes a Pokémon in the player's party use the field move Ride. If the argument is left empty, the first Pokémon who knows Ride gets selected.
pokeIndex (int) [optional, defaults to -1] = the party index of a Pokémon
2023-12-27 17:13:00 +01:00
JappaWakka 845464f03c Added @Item.Use(ItemID) command
@Item.Use(ItemID)
Uses the specified item if the player has it.
2023-12-27 17:10:54 +01:00
JappaWakka 92f3832416 Fix entity constructs return sng instead of str 2023-12-22 10:12:14 +01:00
darkfire006 f655939510 fix shops with registers 2023-12-21 00:09:49 -06:00
JappaWakka 4c91360cd5 Fixed Spearow Kenya's mail crash 2023-12-19 12:15:03 +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 e2d0996ffd Make it possible to reset the Pokémon status 2023-12-10 13:11:48 +01:00
JappaWakka 3e9c1cde9c Fixed setDayTime value not returning 2023-12-08 09:53:17 +01:00
darkfire006 168a442855 fix script.start not being loopable in while loops
this was a weird one to track down
2023-12-06 00:24:57 -06:00
JappaWakka 2a869e0b4b Added @Pokemon.SetStatus(index,status) command...
@Pokemon.SetStatus(index,status)
index = Index of the Pokémon in the player's party
status = the desired status to give the Pokémon (possible values: "brn", "frz", "prz", "psn", "bpsn", "slp", "fnt")
2023-12-04 19:05:31 +01:00
JappaWakka 864fa7f508 Implement fade into the next song in command 2023-11-28 09:53:20 +01:00
JappaWakka 22edf29445 Fix bug with music that shouldn't loop still does 2023-11-26 15:14:03 +01:00
JappaWakka a7e723f720 Add Selected Player Skin Name & Gender constructs 2023-11-23 15:09:39 +01:00
JappaWakka 03df3e36a0 Make it possible to change Hall Of Fame background 2023-11-13 20:27:02 +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 f7fd221ce9 Fix ForceCameraTurn 2023-10-10 09:47:05 +02:00
JappaWakka 5747c2f1ce Added pkmn gender constructs + fix hidden grotto 2023-09-03 18:47:15 +02:00
JappaWakka 062b14220c More effectively parse pkmn add commands 2023-08-31 16:39:07 +02:00
JappaWakka f92373d447 Add @Entity.SetModel(ID,ModelPath) 2023-08-09 20:22:36 +02:00
JappaWakka 15f57d8bc5 Make plural names localizable + item found 2023-08-09 16:20:16 +02:00
JappaWakka 59b2205418 Remove linebreak in item name if it's there 2023-08-09 14:46:15 +02:00
JappaWakka 152422903d Placed a ) in the wrong spot & forgot a space 2023-08-09 14:42:25 +02:00
JappaWakka f8c63948d4 Localizable receive items and berries messages 2023-08-09 14:26:26 +02:00