67 Commits

Author SHA1 Message Date
JappaWakka
99bf455a6e It doesn't work perfectly but something happens 2023-05-25 18:37:37 +02:00
JappaWakka
e9013a9371 A lot of progress again :D
Improved implementation of quiting Voltorb Flip minigame
Properly implemented max amount of coins you can win
Implemented command to start a Voltorb Flip minigame including adding won coins to the coin case afterward
2023-05-24 14:30:38 +02:00
JappaWakka
ba2a970b11 Make it possible to spawn NPC w/ rival/playerskin 2023-05-09 18:27:27 +02:00
JappaWakka
52ee3da1a2 @npc.spawn has argument for moverectangles now 2023-04-28 09:21:04 +02:00
JappaWakka
489af57626 Hopefully fix waterfalls this time 2023-04-20 15:54:53 +02:00
JappaWakka
b12ae2026d Fix namerater inconsistencies 2023-04-03 19:22:42 +02:00
JappaWakka
2f0cccb052 Entering battle without pokémon triggers blackout 2023-02-26 17:16:39 +01:00
JappaWakka
daef33a886 Prevent wild & trainer battles without pokémon
when the player has no Pokémon in their team, wild and trainer battle commands don't do anything
2023-02-26 15:26:07 +01:00
JappaWakka
300aa87738 Fixed slideblock and waterfall 2023-02-12 18:57:20 +01:00
JappaWakka
65e9fddb6d Stop player's money from being negative 2022-12-31 22:03:25 +01:00
JappaWakka
73727edb6c Added @Player.RemoveMoney(int) 2022-12-31 21:04:11 +01:00
JappaWakka
0432aff0e7 @Player.ShowBattleAnimations(0 or 1)
Enables or disables battle animations
2022-12-26 21:02:52 +01:00
JappaWakka
7dcc423480 Added command to change the EnvironmentType
@Environment.SetEnvironmentType(ID)

This command temporarily sets the "EnvironmentType" parameter of the current map until a map change, which also changes the sky texture and sometimes adds particles. Value can be 0-5.
0 = Outside
1 = Inside
2 = Cave
3 = Dark (also makes all entities darker)
4 = Underwater (adds air bubble particles)
5= Forest
2022-12-06 19:03:23 +01:00
JappaWakka
8ea37604eb @Screen.ShowImage can now scale depending on size 2022-11-15 14:56:54 +01:00
JappaWakka
ac5fa28483 Added arg to force camera rotation (in 3rd person) 2022-11-02 11:49:46 +01:00
JappaWakka
57e145b668 Added argument to play a song that doesn't loop 2022-10-18 16:02:28 +02:00
JappaWakka
653fc249d1 Added PreventMovement property and commands
"@player.preventmovement" Makes the player unable to move, while still keeping control over the menu, interactions etc.
"@player.allowmovement" Gives the player back their ability to move.
2022-09-29 21:27:44 +02:00
JappaWakka
d2d4736039 Corrected egg hatch message 2022-09-29 20:34:18 +02:00
JappaWakka
ff35093697 Fixed daytime resetting to wrong daytime 2022-09-22 12:14:20 +02:00
darkfire006
f4691fe20d allow forms in the @battle.wild() script 2022-08-09 10:35:24 -05:00
darkfire006
bae3a28431 Revert "Remove caps from registers"
This reverts commit 7310e3cd132c000573118f3302b8239f64911b0a.
2022-08-09 10:34:56 -05:00
darkfire006
7310e3cd13 Remove caps from registers
re Strength triggers and time registers
2022-08-06 21:49:50 -05:00
JappaWakka
0695ff6491 Fixed HatchEgg command adding 2 pokémon 2022-07-31 19:59:47 +02:00
Jasper "JappaWakka" Speelman
b258139ee8 Added Egg Hatch command
Format:
@Pokemon.Hatch(PartyIndex,[CanRename],[Message])

Description:
If the Pokémon specified in the PartyIndex argument is an egg, it hatches immediately

Arguments:
PartyIndex (int) - Index of a Pokémon in the player's party. Values can range from 0-5.
CanRename (bool) - Optional. Whether the player can rename the Pokémon or not after it hatches.
Message (str) - Optional. The message to display after the Pokémon hatches.
2022-07-22 17:32:09 +02:00
darkfire006
a6070ea479 use correct shininess value for roaming mons 2022-07-12 09:14:11 -05:00
JappaWakka
1b3218bb67 Added fadein/fadeout limit argument
@Screen.ScreenFadeColor also defaults to Black if there's no argument
2022-07-07 19:32:25 +02:00
JappaWakka
0bf30358da Rival rename texture bug fix 2022-06-17 16:31:05 +02:00
JappaWakka
dab417e190 DiamondDive WaterFall fix and other fixes
Added @player.stopmovement before waterfall scripts to make sure the player doesn't move further than they should
Fixed spelling error in code: NotifcationTypes -> NotificationTypes
Added commands to ScriptLibrary that were missing
2022-06-14 18:12:29 +02:00
JappaWakka
c6c7ef236d Fix for texture bugs
Rival rename texture bug, potential Trainer texture bugs and Player rename texture bugs fixed
2022-06-11 14:46:21 +02:00
JappaWakka
c2c7033ece Added "@environment.resetregionweather" command
Resets the weather to be based on the current season.
2022-05-31 21:00:56 +02:00
Jasper "JappaWakka" Speelman
d65b7dc10b Replaced inconsistent overworldpokemon commands
The following commands has been replaced by @overworldpokemon.hide:
* @pokemon.hide
* @player.hidepokemonfollow
The following command has been replaced by @overworldpokemon.show:
* @player.showpokemonfollow
and the following unused command is now replaced by @overworldpokemon.toggle:
* @player.togglepokemonfollow
2022-04-04 19:37:40 +02:00
Jasper "JappaWakka" Speelman
11a8b632d0 Fixed going up slideblocks speed 2022-04-03 21:04:25 +02:00
JappaWakka
2c7fbf8364 DayTime, Level & PlayerSkin improvements
* Changed the DayTime enum name to DayTimes for consistency with other enums like Seasons
* Changing the EnvironmentType or WeatherType will now not reset back to the default when Reloading a map with the R key (Warping or loading a different map normally does reset those properties)
* @level.setdaytime(int) is now @environment.setdaytime(int), which sets the DayTime permanently across maps. Setting the daytime to any other value than 1 2 3 or 4 will reset the daytime to the default one
* Added command @player.setskin(name) which will permanently change the player's skin, unlike @player.wearskin(name) which only changes the skin temporarily.
2022-02-17 13:46:15 +01:00
JappaWakka
3ecc99fbd4 Added command that changes the current season: @environment.setseason(int)
Argument "int" can be:
	 0 = Winter
	 1 = Spring
	 2 = Summer
	 3 = Fall
	-1 = The default season based on the date
2022-01-07 12:27:30 +01:00
darkfire006
32dba7e878 document scripts in code 2021-10-19 14:36:47 -05:00
JappaWakka
3ce59ee458 Merge branch 'notificationspopup' 2021-10-19 20:57:24 +02:00
JappaWakka
6d30a0ebdf Added @screen.showmessagebox(text|r.g.b|r,g,b|r,g,b) command and fixed blurry scaling 2021-10-18 21:36:26 +02:00
JappaWakka
a85849a52c Added @screen.showimage(texture,[sound],[x],[y],[w],[h]) command
To show an image like with @screen.showpokemon but one that's not necessarily the texture of a Pokémon, like the fossils at Pewter City, which I've also added textures for. Arguments in the title of this commit between brackets are optional.
2021-10-17 17:44:01 +02:00
JappaWakka
78e25a85c0 Notifications Implementation Part 2 2021-10-11 21:16:39 +02:00
JappaWakka
464e1d8c31 Implemented Notification system 2021-10-09 23:05:56 +02:00
JappaWakka
cae2b61ef7 Music Fixes and other Audio-related QoL things
Fixed music playing errors

[Added Songs]
Mom (as there wasn't any music for when the mom gives you the pokégear)

PVP_Intro (PVP music didn't have an intro before and I also replaced PVP with a better sounding version)

[Added Sounds]
Emote_Exclamation (can be used when using the ! emote for NPCs)

Receive_HM (the game checks if the name of the item that was received contains "HM", if so, this sound is played instead of the regular item receive sound)
2021-10-04 01:14:55 +02:00
JappaWakka
799792e49c Various Fixes & Improvements
Fixed PlayerSkins displaying incorrectly in the new intro.

Fixed position of Pause Menu text.

Songs don't fade in by default now except with the @musicplayer.playfade(songname) command

You can now also close the Options row in the Main Menu with the "Up" or "Move Forward" keys

Improved the timing of the Battle intro screens

Renamed Badge_Aquired to Receive_Badge for consistency
2021-10-03 21:18:25 +02:00
JappaWakka
61fa959866 Fixed Rival's texture when renaming Rival 2021-10-03 11:04:11 +02: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
6f5d34f0b5 Allow for script determined roamer shinyness 2021-09-30 10:16:26 -05:00
darkfire006
bb8bf084b1 add/addtostorage shiny fix
ensure they dont accidentally shiny lock
2021-09-29 18:07:04 -05:00
darkfire006
7ead411d0a max stacks
enforce max stacks in script calls
2021-09-29 02:24:07 -05:00
Jasper "JappaWakka" Speelman
073ed91356 NPCs can get on and off chairs
The Y Position of an NPC when moving is now a Single (instead of an integer), allowing for NPCs to climb on and off chairs without their Y Position being rounded down.
2021-09-25 13:32:09 +02:00
JappaWakkaP3D
9723820427 SFX & Battle Animations
Ported Battle Animation Code
Ported Battle Animations for Tackle, Pound, Growl, Ember and Poison Sting
Normalized all SFX by Perceived Loudness (-11.0 LUFS)
Renamed and moved a bunch of the SFX so they make more sense
Added a jingle when you register a Phone Number
Added a soundeffect for when an elevator reaches its destination
2021-08-22 16:10:06 +02: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