Commit Graph

258 Commits

Author SHA1 Message Date
JappaWakka 9c611b9339 Fixed shader entity daytime behaviour 2022-09-01 22:21:33 +02:00
JappaWakka 9e86665e58 Added SaveOnly map tag
A map tag that disables the PokeGear and all of the menu options except Save while on the map
2022-08-29 13:01:56 +02:00
JappaWakka 9ebfb0c491 Current season can now be set in map tags 2022-08-21 19:29:26 +02:00
JappaWakka 336bbf4f12 Offsetmaps can now have singles for position 2022-08-21 19:27:26 +02:00
JappaWakka 3c78459f7c Improved blizzard and thunderstorm weather skies 2022-08-16 19:02:02 +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 7310e3cd13.
2022-08-09 10:34:56 -05:00
darkfire006 8bdb1e9858 Revert "Registers are now case insensitive"
This reverts commit f09cd7d644.
2022-08-09 10:34:44 -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
JappaWakka 352b80db9c Any entity can have a model, model scale improved
0.1 meter in blender is now equivalent to 1/16th of a P3D unit or 1 pixel on a 16 pixels wide/tall texture. Mt Silver will need to be updated to match this scale, making the ModelEntity obsolete.

Also added Snorlax battle model
2022-07-13 00:12:16 +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 88ac7fc687 Added some missing commands to the scriptlibrary 2022-07-07 19:03:19 +02:00
JappaWakka f09cd7d644 Registers are now case insensitive 2022-07-07 19:03:02 +02:00
darkfire006 a8920ab6fb region and regionalform envir constructs 2022-07-05 23:45:03 -05:00
darkfire006 56dff589e6 add regional form level tag 2022-07-05 23:44:43 -05:00
JappaWakka 05774b29bd Fixed incorrect lighting texture and values 2022-06-22 21:04:03 +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 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
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 3d25b132bb Fixed the daytimes
Instead of

Day = 0
Night = 1
Morning = 2
Evening = 3

it is now

Night = 0
Morning = 1
Day = 2
Evening = 3

this also affects the @environment.setdaytimeI(int) commands which have the same order but increased with 1
2022-06-11 10:46:51 +02:00
JappaWakka 542acc3c3d Fixed bug with warpblocks not moving the player 2022-06-06 14:19:05 +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
JappaWakka 5177d6c3f9 Fix for duplicate offsetmap bug 2022-05-25 20:28:08 +02:00
Jasper "JappaWakka" Speelman 6810a35dfd Shaders now independent of daytime 2022-05-14 14:45:01 +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 384c485ba5 Fix for invisible sky when graphicstyle = fast 2022-04-16 18:25:27 +02:00
JappaWakka 9058caa13a Halved the sky background rotation speed 2022-04-16 10:59:07 +02:00
JappaWakka 5e3713c6c6 Fog Colors, Lighting Colors & Interior Sky Texture
* Added customizable fog colors, ambient light and directional light colors
* Added interior sky texture
2022-04-15 16:28:17 +02:00
Jasper "JappaWakka" Speelman da37889650 Fix for clipping clouds 2022-04-07 21:21:23 +02:00
Jasper "JappaWakka" Speelman 7165cd70bc Added player walk speed commands to scriptlibrary 2022-04-04 19:38:19 +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 ae2d60eb35 Fixed unproperly working Lighting map property 2022-02-28 15:56:00 +01:00
JappaWakka 893c8acd99 Fixed warning in one of the DoInventory constructs 2022-02-27 16:40:10 +01:00
JappaWakka 6362fb871a Fixed issue with the sky model and textures 2022-02-27 16:39:26 +01:00
JappaWakka c23c5a244e Merge branch 'BattleAnimations' 2022-02-22 13:10:43 +01: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 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
JappaWakka fbba01d0c4 Added WallModel (ModelID=20) & CeilingModel (ModelID= 21) 2022-02-03 22:18:04 +01:00
JappaWakka b170071bf7 Upgraded the Sky Dome to a Sky Sphere, adjusted the textures and merged the UnderwaterGround texture into the regular Underwater texture 2022-01-28 16:52:30 +01:00
JappaWakka 2533598295 Made the brightness of the stars not be affected by the weather 2022-01-16 17:25:04 +01:00
JappaWakka b69bfbfea4 Fixed Extreme render distance still having fog 2022-01-07 12:38:48 +01:00
JappaWakka fccb4ef5b5 Improved fog colors 2022-01-07 12:29:11 +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
JappaWakka 1a1c8f209f Improved wild Pokémon encounter rate
- Caves and water get a minimum value of 15
- Grass gets a minimum value of 25
- There's an encounter multiplier of 1 by default that gets modified by various abilities
If you run, the encounter multiplier is multiplied by 1.5
Then, a random number is generated from 0-255
If the random number is below the minimum value multiplied by the encounter multiplier, a wild pokémon appears
2022-01-06 12:32:52 +01:00
JappaWakka ae6141b139 Made day and morning fog color slightly darker 2022-01-04 22:43:22 +01:00
JappaWakka 35fb69b5fd Made the fog colors for outside more neutral 2022-01-04 22:37:26 +01:00
JappaWakka ffaf50178c Revert "Made the light color more neutral"
This reverts commit 38f2f0c0f4.
2022-01-04 22:04:14 +01:00
JappaWakka 38f2f0c0f4 Made the light color more neutral 2022-01-02 22:25:26 +01:00
JappaWakka 31e00f72d6 Directional light color at night is now neutral and more subtle 2021-12-30 21:53:17 +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 b95d4d1c69 Hit Animation + Restructure of attack sound effects + Absorb animation
Attack sound effects are now in the folder of the type of their attack

Pokémon flicker briefly when hit
2021-10-22 12:21:12 +02:00
darkfire006 fe11d5fb35 Check Evaluate Construct results for more constructs 2021-10-19 19:02:59 -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 3ce59ee458 Merge branch 'notificationspopup' 2021-10-19 20:57:24 +02:00
JappaWakka 2941da57dd Structures inside structures works now, new Healing Machine & restart music when applying contentpacks fix 2021-10-19 20:40:37 +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 700016dceb Improved weather chances per season 2021-10-01 18:12:25 +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 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 7ead411d0a max stacks
enforce max stacks in script calls
2021-09-29 02:24:07 -05:00
JappaWakka b7ec88ac7e Correction for the skydome color for interiors 2021-09-27 22:59:41 +02: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
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
darkfire006 67d357c459 Mach V fixes 2020-07-23 21:02:59 -05:00
darkfire006 eeeeb18e94 fixes from Mach IV 2020-07-22 22:23:38 -05:00
JappaWakka fae7349356
Fix audio engine & contentpacks (#35)
* Replaced existing Gen 2 SFX with better sounding ones (no ugly reverb)
Replaced MediaPlayer with NAudio(and NAudio.Vorbis) for playing music in order to fix random stopping issues.
The game now directly loads .ogg files instead of the .wma/.xnb combination from before.
ContentPacks are now able to replace Music and SFX again (I haven't added a menu yet for choosing ContentPacks).
To make older GameModes work with current versions, you can add the GameMode property EnterType and set it to "1", this will make the game use the older 2D NewGameScreen.

* Delete GameController.vb

* Add gamecontroller.vb back

* Fix sfx missing

* Battleintro doodle now doesn't loop anymore (for no trainer)
Changed the shutter sound (aka Large Door sound) to something more large door-y
Made the enter sound slightly louder
The enter sound now plays when going through any warp to or from an indoor map (including falling through holes)
The flying sound effect is played earlier in the animation after selecting a location
Changed played sound effect when using the Escape Rope to "teleport" instead of "destroy"
The bump noise now also plays when bumping into something in first person
Fixed small gap between the end of the intro song and the start of the main song
Replaced some songs with better songs

* Fixed some more intro issues

* Forgot to change a thing

* Fixed an error where the main music would play, ignoring the muted musicmanager.

* fix indenting in musicmanager

* The music player will now only start playback on a new song if the music player is not muted, fixed the end time calculation of the intro of a song after muting, Music can't be unmuted now as long as a sound effect plays that stops the music.

* Fixed league restplace position, fixed sound effects sharing the volume slider of the music, sound effects are now also muted when pressing M, changed music on/off popup to audio on/off, removed bump delay in first person, added more control on whether played songs should be looping or not.

* Fixed some more scripts that turn on thirdperson mode but don't check if it was on before or set it back to what it was before afterwards, also fixed a small error in creditsscreen.vb.

* Fixed indenting error in musicmanager.vb, fixed an error of mine where the loopsong parameter would be seen as the playintro parameter.

* Added more music commands, added quite some menu select noises, will add more later

* More select sound effects!

* Fix music not resuming after soundeffect

* Trainer using item now plays the single_heal soundeffect

* Pokémon cries now sound louder

* Possibly fixing crash when playing Pokémon cry at volume higher than 0.71

* Added better quality Pokémon cries, made random overworld cries slightly less loud, added cries for 719 and 720.

* Sound effects now sound louder

* Revert "Added better quality Pokémon cries, made random overworld cries slightly less loud, added cries for 719 and 720."

This reverts commit 8c9296ed1a.

* Fixed the cause of why the title screen music plays even when the game is muted

* Tabs to spaces

* Revert

Co-authored-by: darkfire006 <blazer257@live.com>
Co-authored-by: JappaWakkaP3D <66885565+JappaWakkaP3D@users.noreply.github.com>
Co-authored-by: JappaWakkaP3D <jasper.speelman@outlook.com>
Co-authored-by: Vitaly Mikhailov <personal@aragas.org>
2020-07-09 20:59:42 +03:00
TheOmegaGhost cc2690dd9d Menu Sprite Reorganization 2020-06-19 23:47:03 -03:00
darkfire006 4213b769a7 pokemon.select fix and other embtower fixes 2019-11-12 19:58:19 -06:00
Vitaly Mikhailov ef0cecfe2e
Added <battle.caught> command 2019-10-31 23:57:27 +03:00
Vitaly Mikhailov 408c97e5d5
Update ActionScript.vb 2019-10-18 22:06:30 +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
Vitaly Mikhailov d44009819e
Merge pull request #32 from P3D-Legacy/fadecolorpatch
Added command to change Screen.Fade color
2019-10-11 21:41:48 +03:00
Vitaly Mikhailov 6e0b1d1550
Added command to change Screen.Fade color 2019-10-11 21:39:42 +03:00
darkfire006 c61dc8584e N texture and following pokemon ID 2019-10-09 21:30:06 -05:00
darkfire006 65a577c375 create @pokemon.removeattackid(int,int) 2019-10-06 22:49:06 -05:00
darkfire006 e13fce85b0 replace [] with «» for output/input of pokemon data 2019-10-06 22:24:08 -05:00
CaptainSegis e1faeb362f Hopefully fixed all time related issues 2019-08-03 18:37:07 -05:00
CaptainSegis ca5be51d4c Some minor fixes 2019-01-20 11:11:07 -05:00
CaptainSegis 28dba981db Oops 2019-01-05 02:53:34 -05:00
CaptainSegis c89c4f8121 Misc fixes:
- Fixed some screen size related issues
- Fixed crash related to indexes in TradeScreen
- Fixed @Pokemon.AddToStorage command
2019-01-05 02:47:05 -05:00
OmegaRuan 5220ec0375 badges fixarinos 2018-09-12 17:40:05 -03:00
CaptainSegis 7d8e6de8f6 small fixes 2018-09-08 22:13:27 -05:00
CaptainSegis 56619c4db9 - Added a bit of content to the basement
- Fixed an important crash related to time based registers
2018-08-31 19:45:19 -05:00
CaptainSegis 7b8e781dce - Added missing houses in Six and Seven Island.
- Implemented @NPC.dance and @Player.dance commands.
- Implemented the CameraDistanceDelta tag, which allows entity CD to be adjusted manually.
2018-08-28 19:34:58 -05:00
CaptainSegis b0f96dd2ad Added some tools for testing mega evolutions. Small fix. 2018-03-07 17:09:15 -05:00
nilllzz 5895b54eac fix file watcher crashing 2018-02-26 00:24:35 +01:00
nilllzz 01ce289fd6 change debug mode detection for file watcher 2018-02-25 11:05:40 +01:00
nilllzz b74fee0383 Fixed #7, @music.stop does not stop music 2018-02-25 11:01:45 +01:00
nilllzz fcdcbad6c9 fix music, always summer/day in main menu 2018-02-24 01:20:42 +01:00
nilllzz d9798acdc6 fix cloud alpha blending 2018-02-22 01:58:31 +01:00
nilllzz a1786d5181 literally touch every file reorganizing the solution 2018-02-21 16:34:06 +01:00