Compare commits

...

2383 Commits

Author SHA1 Message Date
JappaWakka
ba3ba50270 Fixed a dutch plural item name 2025-08-25 18:20:29 +02:00
Jasper Speelman
034fa14393 Implemented Cud Chew Ability 2025-08-22 16:52:55 +02:00
JappaWakka
9cb12a4130 Implemented Stomping Tantrum & Fixed some tokens 2025-08-22 10:09:30 +02:00
JappaWakka
bfd16300d0 Implemented Soft-Boiled Field Move + fixes 2025-08-21 19:28:44 +02:00
JappaWakka
96c2905a66 Implemented Milk Drink Field Move 2025-08-21 18:56:59 +02:00
JappaWakka
e12b5261e1 Make it possible to have different battle sprites 2025-08-20 20:25:42 +02:00
JappaWakka
9a3d451b1f Fix scripts and npcs triggering after fieldmove 2025-08-20 18:58:36 +02:00
JappaWakka
85959c927b Implement Sweet Scent + fix other FieldMoves 2025-08-20 18:54:52 +02:00
JappaWakka
38d649d4aa Fix Arena Trap activating before switching 2025-08-20 17:29:43 +02:00
JappaWakka
a28df0163b Optimize player loading a little bit 2025-08-20 17:19:57 +02:00
JappaWakka
df69d46faa Fix Johto Pokédex crash 2025-08-20 16:59:19 +02:00
JappaWakka
cacec77a67 Fix Cute Charm affecting same gender or genderless 2025-08-20 16:34:35 +02:00
JappaWakka
53b0069ab1 String Shot decreases speed by 2 stages now 2025-08-20 16:23:54 +02:00
JappaWakka
7348b166c1 Made other moves bypass minimize like in gen 6...
and give double damage
2025-08-20 12:23:59 +02:00
JappaWakka
1ce82cbc06 Fix mail crash when pressing cancel with keyboard 2025-08-20 10:35:17 +02:00
TheOmegaGhost
705ff1582c Massive OW update (pt. 1) + Badge outlines
Also includes credits update and gamemode protagonists changes
2025-07-16 01:16:48 -03:00
darkfire006
2d487492b8 list gen 9 abilities in comments 2025-07-14 22:14:41 -05:00
darkfire006
b8f67d73cc Add Annihilape, Farigiraf, and Dudunsparce data files 2025-07-14 22:14:25 -05:00
darkfire006
c578b39392 Add Murkrow to R42-43, add to johto dex, and add Gen 8-9 evos to Johto Kanto dexes 2025-07-14 12:24:41 -05:00
darkfire006
fa040c22e6 add gen 9 move evos to existing data files, fix wyrdeer moves 2025-07-14 11:45:49 -05:00
JappaWakka
d1acef9657 Added Hyper Drill & Twin Beam, fixed Rage Fist ID 2025-07-14 18:41:50 +02:00
JappaWakka
d07e75fa46 Stantler learns Psyshield Bash at 30, Wyrdeer 31 2025-07-14 11:22:33 +02:00
JappaWakka
b512557cfb Forgot to save the project again oops 2025-07-14 10:18:33 +02:00
JappaWakka
a24d07fd38 Added Psyshield Bash...
Hopefully learning the move at level 21 is alright.
2025-07-14 09:56:11 +02:00
darkfire006
32eabbef50 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2025-07-13 23:47:02 -05:00
JappaWakka
7cecdce726 Stomp bypasses accuracy check for Minimized opp 2025-07-13 17:14:18 +02:00
JappaWakka
b3ad6179bb Fix Clamp's Base PP to 15 2025-07-13 16:14:28 +02:00
darkfire006
8abe751132 mark Gen 9 dlc mons 2025-07-12 22:38:59 -05:00
TheOmegaGhost
491c4d5185 Added Frontier emblem + square GFX 2025-07-09 10:29:32 -03:00
TheOmegaGhost
5f3916a00d Updated item GFX to Gen 8 standards 2025-07-09 10:29:04 -03:00
Jasper Speelman
3758dbc6f0
Merge pull request #211 from 34673/PokemonStorageRefactors
Pokemon storage menu refactors 
Getting rid of unnecessary and duplicate lines and other stuff.
2025-07-05 16:53:47 +02:00
JappaWakka
f94a01c7b1 Merge with currently translatable parts progress 2025-07-05 14:56:17 +02:00
Eagle
504d8a175b 3rd pass refactor of storage system menu
Fixed mistakes in resolved conflict and changed signature of `TakeItemPokemon()` to optionally give the caller the responsibility of handling message logging.
Minor shrinking of logic and syntax.
Rearranged some conditional blocks for readability and terseness.
Added numerous local variables to give context to magic values and reduce line length in more extreme cases.
Changed `PokemonWrapper.GetPokemon()` to a read-only property to simplify syntax on use.
Added `DrawPokemonIcon()` to unify drawing of box/party pokemon icons.
Inlined `BoxPokemonCount()` after it was simplified.
2025-07-05 03:29:59 +02:00
Eagle
59733b10df
Merge branch 'master' into PokemonStorageRefactors
Signed-off-by: Eagle <34673@users.noreply.github.com>
2025-07-05 02:21:35 +02:00
TheOmegaGhost
53eb65a28b Fix TM color for type clarity 2025-07-03 05:37:00 -03:00
darkfire006
e0712f44bf Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2025-07-02 08:12:28 -05:00
darkfire006
ae07184364 add in the trainer files for lucy and move draco 2025-07-02 08:12:08 -05:00
JappaWakka
ed6d2d6f11 Make <system.button()> and KeyBindings consistent 2025-07-02 15:02:06 +02:00
darkfire006
71321cea42 re arrange badges 2025-07-02 07:55:10 -05:00
JappaWakka
95fb9bb952 Fix item removal msg not showing upon release pkmn 2025-07-02 10:30:49 +02:00
TheOmegaGhost
497ba78537 Update Badges image 2025-07-02 05:22:45 -03:00
darkfire006
42c04176dc add lucy and small end details 2025-07-01 12:52:36 -05:00
darkfire006
5eb5e3f942 Battle Pike challenge win stuff 2025-07-01 12:31:49 -05:00
JappaWakka
be3b5bc0b0 Add ability names and descriptions to english 2025-07-01 10:13:58 +02:00
JappaWakka
7a34977d87 Add Draining Kiss desc. + Dutch IP (HP) becomes LP 2025-07-01 09:09:32 +02:00
JappaWakka
5dd47e5b2d Made Triple Kick increase in power with each hit 2025-07-01 08:30:16 +02:00
JappaWakka
b03fa9f0fc Added BlackOutScript actions map tag
{"BlackOutScript"{str[ScriptPath]}}
will execute the specified script after blacking/whiting out
2025-07-01 08:00:54 +02:00
darkfire006
a3f733c7b6 a couple more things worked out for pike 2025-06-30 22:45:42 -05:00
darkfire006
96ffc3e85b first and biggest Pike commit!
win conditions for challenge not done, only 2/9 room types scripted and need npcs in the 3 rooms and then copied. Endless mode needs to be configured from being a copy of challenge
2025-06-29 23:12:04 -05:00
darkfire006
b542b87bad summary board typos 2025-06-29 22:14:39 -05:00
darkfire006
0ce133bb41 initial frontier centralized team verification script 2025-06-29 00:27:46 -05:00
darkfire006
cb5cdf1b5c fix kenya guy taking last pokemon 2025-06-28 16:44:57 -05:00
Eagle
3a8b37823b
Merge branch 'P3D-Legacy:master' into PokemonStorageRefactors 2025-06-28 07:34:26 +02:00
Eagle
d14bed83cd Second pass refactor of storage system menu
Unification of wallpaper (removal of `MenuEntry.TAG` as it's no longer necessary) and filtering handling as well as minor logic compacting and syntax shrinking missed in the first refactor. 1926 -> 1719 lines.
2025-06-28 07:33:56 +02:00
darkfire006
c536f700d3 prevent daily rewards system pre starters 2025-06-25 17:34:11 -05:00
Eagle
12a08025f9 First pass refactor of storage system menu
Per-function logic and syntax shrinking, inlining of single-use one-liner functions, addition of variables in some places to reduce line width and increase clarity, merging of filtering regions as they got smaller.
Vertical whitespaces have been temporarily added to help with diffing. 2712 -> 1926 lines.
2025-06-22 17:18:42 +02:00
JappaWakka
53598b94d1 Fix: Rollout should hit 5 times, not 6 2025-05-30 11:31:02 +02:00
JappaWakka
378e3f38dc Made Pokédex filters translatable 2025-05-30 11:16:16 +02:00
JappaWakka
808001ceec You can now have regional wild defeat music 2025-05-30 10:48:17 +02:00
JappaWakka
ff1d21f115 Added @System.ReplaceTextures(File) ...
With this command you can add texture replacements similar to how a content pack replaces textures.
This is especially useful when, for example, you have multiple supported languages and want to replace certain textures with localized versions.
The file that is required is in the same format as the exceptions.dat file in content packs, but only supports texture replacement entries.
The replaced texture list is cleared when quitting the current save game.
Content Packs should still work, even with the replaced textures.
2025-05-29 17:20:52 +02:00
JappaWakka
becb559498 Running shoes dutch correction + remove space 2025-05-24 15:17:08 +02:00
JappaWakka
66b78158e3 Fix spacing on TeachMovesScreen 2025-05-23 18:23:22 +02:00
JappaWakka
eed0301367 German and Polish Token updates 2025-05-23 18:19:41 +02:00
JappaWakka
1217ead8fd PokéMart/shop interface is now translatable 2025-05-23 11:01:35 +02:00
JappaWakka
12115e7d51 Map Screen fixes, Translatability + Fly dialogue 2025-05-22 19:34:55 +02:00
JappaWakka
667fab564f Make GameMode Names & Desc's Translatable 2025-05-22 19:12:36 +02:00
JappaWakka
2e49dbea07 Token fixes, updates and additions 2025-05-21 15:31:35 +02:00
JappaWakka
7a838d92b4 Make map screen location name more readable...
Added a partially transparent black box behind the name of the location that's being pointed to on the map screen to make the name better readable on white backgrounds
2025-05-04 15:43:04 +02:00
JappaWakka
206a038dbc Add some english move description tokens 2025-05-04 15:40:41 +02:00
JappaWakka
8427a5ff07 Adjust the EVs/IVs text in code too 2025-05-02 13:11:45 +02:00
JappaWakka
9a73020f23 Tweak to EVs / IVs string 2025-05-02 13:10:59 +02:00
JappaWakka
8850ecb6ec Make summary screen view switch hint box wider 2025-05-02 10:22:07 +02:00
JappaWakka
a1a17596ef Allow joystick left/right in summary screen 2025-05-02 10:21:22 +02:00
JappaWakka
d733fcda6d Added a period after Sp. Atk & Sp. Def 2025-04-29 10:18:18 +02:00
JappaWakka
bb5d825b9d Brazilian Portuguese rename screen tokens 2025-04-25 12:25:53 +02:00
JappaWakka
2625347a3d Name/Rename screen can be translated 2025-04-25 10:55:16 +02:00
JappaWakka
102ff53d70 Tweak Dutch True/False tokens 2025-04-25 09:52:43 +02:00
JappaWakka
44da17fff8 Make battle text affected by text speed setting 2025-04-25 09:47:25 +02:00
JappaWakka
8e55a7867b Continue battle if select no switchqueryobject
don't interrupt or clear battlequery
2025-04-24 19:35:25 +02:00
JappaWakka
9a571e480f Disable using view bobbing value for 3rd person 2025-04-23 08:17:48 +02:00
JappaWakka
f8d50ed35a Make Shift the default Battle Style 2025-04-20 18:22:27 +02:00
JappaWakka
3318e02c67 Don't add default berrydata on custom gamemodes 2025-04-20 18:21:55 +02:00
JappaWakka
2620084c76 Add an even faster textbox speed 2025-04-20 18:21:13 +02:00
JappaWakka
63f998bc4d Battle Intro songs should also support uppercase 2025-04-20 08:57:57 +02:00
JappaWakka
a43d9d8354 Remember dex order/filter select menu indexes 2025-04-19 19:00:06 +02:00
JappaWakka
84f200af4a Fix NPC trainers not ignoring collision 2025-04-19 18:59:35 +02:00
JappaWakka
ff50de4bdd Forgot to add IsReady to setdifficullty command 2025-04-18 14:41:46 +02:00
JappaWakka
9a6a6d7999 Fix GM move functions not taking opp in account...
When a move with an effect used by an opponent pokémon, the effect target didn't get swapped.
2025-04-18 13:07:25 +02:00
JappaWakka
41c5d35864 Add @Player.SetDifficullty(int) command 2025-04-17 19:30:56 +02:00
JappaWakka
e4dc1e2adc Prevent game from crashing on Turkish PCs 2025-04-17 18:18:12 +02:00
JappaWakka
15e71ce34d Make some battle messages more consistent 2025-04-17 18:17:01 +02:00
JappaWakka
8ab41db738 Hide HP/Status when using medicine item in battle 2025-04-17 18:16:46 +02:00
JappaWakka
e011432856 Fix GM move function crashes 2025-04-17 18:16:09 +02:00
JappaWakka
be0d5f09db Make some string offsets in dex dynamic 2025-04-12 15:05:27 +02:00
JappaWakka
aed2bec9a8 Loamy Soil should not have snow on it 2025-04-06 11:22:35 +02:00
JappaWakka
57e7eb2935 Attacks fail if PP is 0 before subtraction 2025-04-06 10:42:13 +02:00
JappaWakka
38c0d9368f Fix GM Moves sharing properties between PkMn (PP) 2025-04-06 10:20:00 +02:00
JappaWakka
297821dfd7 Fix incorrect Battlemenu "Battle" token reference 2025-04-06 10:18:53 +02:00
JappaWakka
e83a77d23f Fix Main Menu GM assets load from options actually
it didn't do so before
2025-04-04 14:26:52 +02:00
JappaWakka
de6a9fd411 Fix gamemode custom music not reloading/replacing 2025-04-04 14:26:01 +02:00
JappaWakka
bdd9761d53 Adjust space width one more time and tweak screens 2025-03-31 19:13:31 +02:00
JappaWakka
e7c3281a34 Show correct location name in habitat dex 2025-03-31 19:12:53 +02:00
JappaWakka
a3e44cd510 Fix OT & ID No. usage to make more sense 2025-03-28 18:48:06 +01:00
JappaWakka
6eff647b8f Fix Main Menu GameMode assets load from options...
When clicking on a save profile while in the options submenu, the gamemode wasn't loaded immediately
2025-03-28 18:37:01 +01:00
JappaWakka
f9949ae6d0 Make space character wider to improve readability 2025-03-28 18:34:57 +01:00
JappaWakka
c002a20453 Fix trap ability textbox close delay in battlemenu 2025-03-28 18:33:08 +01:00
JappaWakka
17c559d723 Forgot a thing 2025-03-28 14:32:35 +01:00
JappaWakka
dab71b95f7 Some better catchmethod and catchlocation grabbing 2025-03-28 14:32:03 +01:00
JappaWakka
e6c32dc8a1 Grab correct localized map name for catchlocation 2025-03-28 14:07:27 +01:00
JappaWakka
8ec0e71675 Translations update 2025-03-28 12:04:57 +01:00
Jasper Speelman
a146dde118
Update Tokens_ptbr.dat
Added save screen and missing game interactions as well as correcting the receiving of the Pokéballs on the apricorn screen

Signed-off-by: Jasper Speelman <jjlspeelman@outlook.com>
2025-03-27 02:15:34 +01:00
JappaWakka
190eb2bae0 Add type icons to project 2025-03-25 10:17:07 +01:00
JappaWakka
87937a371d Polish wip, tokens fixes, italian type icons 2025-03-25 10:14:18 +01:00
JappaWakka
bfa8e2cef7 Fixed a space in misdreavus's dex entry 2025-03-24 17:37:23 +01:00
JappaWakka
4c20805d75 Reload the tokens a little more often...
in the main menu so that the correct location name immediately shows up on gamemode saves.
2025-03-23 16:03:58 +01:00
JappaWakka
071301432b Make Save Screen Localizable 2025-03-23 16:02:46 +01:00
JappaWakka
1aed676e6b Fix unneccesary clog for pokeinteraction icons 2025-03-22 13:30:33 +01:00
JappaWakka
43528154c4 Update and improve Fonts (mainly for accent chars) 2025-03-22 13:29:10 +01:00
JappaWakka
6509fe1cb0 Two Brazilian Portuguese tokens 2025-03-20 17:40:22 +01:00
JappaWakka
af89b308c7 Fixed some buttons and bumpers/triggers...
Back/Select instead of Y button as Y button doesn't work and Triggers instead of Bumpers to make sure the chat box doesn't open during Voltorb Flip or PC Box switching
2025-03-20 17:40:01 +01:00
JappaWakka
1c9effb03f Handing over items is localizable 2025-03-17 19:15:37 +01:00
JappaWakka
fe6098fc7b Properly fix the BattleAnim Memory Leak now...
I didn't do it right the first time lol
2025-03-17 17:48:54 +01:00
JappaWakka
3b298ba2b5 Dutch token tweak 2025-03-17 17:34:30 +01:00
JappaWakka
62fbec7c43 Don't log music missing when checking night music 2025-03-17 17:34:20 +01:00
JappaWakka
5012313ca8 Fix Battle Animation Memory Leak 2025-03-17 17:33:50 +01:00
JappaWakka
cff7dd2083 Fix required exp. number text position 2025-03-15 10:21:31 +01:00
JappaWakka
5fd6ca1e38 Fix Battle Box crash when taking item 2025-03-15 10:07:21 +01:00
JappaWakka
fcff6fe74e Removed some duplicate/unused tokens 2025-03-14 15:45:04 +01:00
JappaWakka
ba3c3c7f23 Remove duplicate yes/no tokens 2025-03-14 15:24:02 +01:00
JappaWakka
9be1e7838b Clean up trading screen a little 2025-02-28 11:03:36 +01:00
JappaWakka
a7bb36f10c Fix some music memory leaks 2025-02-28 11:01:53 +01:00
JappaWakka
2400d68fb6 Fixes for Selling Items in TradeScreen...
The base price of a sellable item can now be set as well, even if an item is not in stock.
2025-02-22 19:00:06 +01:00
JappaWakka
d01af0ad9d Prevent crash if clearing nonexistent scriptdelay 2025-02-22 12:41:38 +01:00
JappaWakka
0b82f53032 Spanish fixes 2025-02-21 21:02:39 +01:00
JappaWakka
831af723f6 Remove unused descriptions 2025-02-21 20:47:09 +01:00
JappaWakka
306a9894fc Spanish fixes by Matiarguello 2025-02-21 20:46:41 +01:00
JappaWakka
407cf76546 Token tweak 2025-02-21 15:45:36 +01:00
Jasper Speelman
a759fc9cb0
Merge pull request #210 from jianmingyong/fix-inventory-overworld-bug
Fix the overworld rendering when inventory is opened.
2025-02-21 15:38:42 +01:00
JappaWakka
253e4b50f3 Failsave for money command 2025-02-21 15:28:41 +01:00
Yong Jian Ming
fb368e0f2d
Fix the overworld rendering when inventory is opened. 2025-02-21 22:27:01 +08:00
Jasper Speelman
4d5173fab4
Merge pull request #209 from maxrigout/master
added night theme for wild battles
2025-02-21 12:42:19 +01:00
Max Rigout
d9da71c812 cleanup 2025-02-20 16:43:31 -05:00
Max Rigout
e6d78d1d3b added flexibility to the night theme system, removed metadata from the night themes, added night themes to the project files 2025-02-20 16:40:55 -05:00
Max Rigout
644d2c64ef
Merge branch 'P3D-Legacy:master' into master 2025-02-20 14:34:10 -05:00
Max Rigout
d7735f33ba fixed bug with kanto wild battle music at night 2025-02-20 12:50:11 -05:00
Max Rigout
396f2b37ee updated IsNight definition so that it considers Evening and Night 2025-02-20 12:27:30 -05:00
JappaWakka
20ce172674 Update Spanish 2025-02-20 10:23:24 +01:00
JappaWakka
9fce336574 Make some room for summaryscreen translations 2025-02-19 18:44:17 +01:00
JappaWakka
8b560a0dcc Fix Attack.GetDamage() for GM Moves 2025-02-19 17:45:31 +01:00
JappaWakka
438fff5e54 Tokens 2025-02-19 17:45:05 +01:00
Max Rigout
7a920335d4 added night theme for wild battles 2025-02-18 16:55:56 -05:00
JappaWakka
cee683452e Pokémon Properties translatable
* Summary Screen
* Catch Method & Location
* Ability Names & Descriptions
2025-02-16 10:51:54 +01:00
JappaWakka
d9b7e2258b Revert "Use [ ] instead of < > for pkmn catchinfo tokens.."
This reverts commit 2fa95df3e7dc573c925cd02c3a7b96fb07b924dc.
2025-02-15 19:10:09 +01:00
JappaWakka
2fa95df3e7 Use [ ] instead of < > for pkmn catchinfo tokens..
If you use <system.token()> for the CatchMethod and CatchLocation values, they would get permanently replaced with the token values but by using [system.token()] you can make them change based on the current language even when you change.
2025-02-15 18:53:52 +01:00
JappaWakka
b6f19fb764 Missing/Fixed Option Screen tokens 2025-02-15 16:08:53 +01:00
JappaWakka
742c43ac4d Gamepad Control tokens + Remap some Buttons
Y button doesn't work so sometimes Y and X get swapped and the one that would be Y gets mapped to Select
2025-02-15 15:49:06 +01:00
JappaWakka
1fd932d43f Forgot some tokens 2025-02-15 14:00:38 +01:00
JappaWakka
d529b58409 More PkMn Selection translatability 2025-02-15 13:48:22 +01:00
JappaWakka
b50af8744b PkMn Selection & Battle Menu translatable 2025-02-15 13:30:33 +01:00
JappaWakka
2fd98316fe Fix PacksMenu sound volume and freeze 2025-02-15 11:34:02 +01:00
JappaWakka
01a2487839 Made PokéBalls not holdable 2025-02-13 10:06:30 +01:00
JappaWakka
e03827880e Fix crash when giving items 2025-02-13 10:06:18 +01:00
JappaWakka
574a3eb8eb Fix for pokédex descriptions and species 2025-02-13 09:50:50 +01:00
JappaWakka
206dcc5dae Johto Town Map fix 2025-02-13 09:50:16 +01:00
JappaWakka
cb0a693a11 Token Fixes 2025-02-13 09:49:36 +01:00
JappaWakka
8f5c040441 Split Nidoran Female and Nidoran Male tokens 2025-02-12 18:58:33 +01:00
JappaWakka
e62791ca05 Did the Pokédex entries and species the right way 2025-02-12 15:51:12 +01:00
JappaWakka
52bd699e34 Pokédex entries and species are now translatable 2025-02-12 13:30:45 +01:00
JappaWakka
995f46d716 Scroll Pokédex through seen/caught pkmn...
It is now possible to go to the next seen/caught pokémon in the pokédex from the info screen instead of being unable to if there's an unseen pokémon between the current and next seen/caught one
2025-02-12 11:24:38 +01:00
JappaWakka
3d4ccb5e58 Use some unused tokens + some new 2025-02-12 11:22:06 +01:00
JappaWakka
491080871f Dutch token tweaks 2025-02-11 17:29:37 +01:00
JappaWakka
28f87c422b A button on title screen auto adjusts X position 2025-02-11 14:18:30 +01:00
JappaWakka
bf4a94927a Move language menu scroll index to current...
language if the current language has to be scrolled to when opening the language menu
2025-02-11 13:50:30 +01:00
JappaWakka
0083f5a10c Include controller in summary screen hint 2025-02-11 13:42:47 +01:00
JappaWakka
19d01ed0df Fix crash in party screen 2025-02-11 13:41:52 +01:00
JappaWakka
41278e06ab Make pokédex search Select instead of Y...
and adjust the hint for searching
2025-02-11 13:41:36 +01:00
JappaWakka
f79ccb2a20 Fix Exp. All state not loaded when load game 2025-02-11 11:21:53 +01:00
JappaWakka
f4f8a63d93 Make paralysis actually fail moves too 2025-02-11 11:01:37 +01:00
JappaWakka
96276520e3 Fix Self Destruct 2025-02-11 11:00:49 +01:00
JappaWakka
96984213b1 Fix Infatuation....
Moves that were supposed to fail because of infatuation didn't get the fail function triggered
2025-02-11 10:58:04 +01:00
JappaWakka
b1c09a3ebb Reset Bad Poison counter when cure status 2025-02-11 09:52:37 +01:00
JappaWakka
7ee85091f2 Dutch Type Icons + ptBr tokens 2025-02-08 13:21:42 +01:00
JappaWakka
f1fb11fa1f A whole bunch of tokens + add Tokens_de to project 2025-02-07 17:16:46 +01:00
JappaWakka
e66bf6ae2a Add german types + fix ??? icon 2025-02-06 19:19:58 +01:00
JappaWakka
82604aa024 Add the new Type image to the project 2025-02-05 20:16:53 +01:00
JappaWakka
26e2f2d279 Rename Types icon to be localizable 2025-02-05 19:37:18 +01:00
JappaWakka
2cc74f7631 German tokens update + small fr ptBr fixes 2025-02-05 17:15:35 +01:00
JappaWakka
b7e6ff3381 Also update french and brazilian portuguese 2025-02-05 15:55:00 +01:00
JappaWakka
359afde27d Add some missing options menu tokens 2025-02-04 12:52:15 +01:00
JappaWakka
885f7f80d6 Reset textcolor upon game exit, update Scr.Library 2025-02-03 17:38:04 +01:00
JappaWakka
3a0887023b Use correct effectiveness for attacking type 2025-02-03 14:52:09 +01:00
JappaWakka
940059013c Last move index is remembered in battle menu 2025-02-03 14:43:50 +01:00
JappaWakka
ef770de841 Full Heal should cure confusion for trainer too 2025-02-03 14:40:55 +01:00
JappaWakka
6a4615f1e1 GM Attack CopyMove needs to copy Type too 2025-02-01 18:07:07 +01:00
JappaWakka
540186d2ea Jump Ledge sound plays later depending on speed 2025-02-01 18:05:38 +01:00
JappaWakka
1cdb83545e Controller Left Joystick is now more reliable
The direction that is pressed is now calculated based on the angle of the joystick, which is more reliable than using Buttons.LeftThumbstickUp and such.
2025-02-01 11:33:58 +01:00
JappaWakka
74f03692d2 Remove duplicate ping sounds for controller...
in the Main Menu. For some reason, pressing B on the gamepad played the select sound twice.
2025-02-01 11:29:37 +01:00
JappaWakka
68a3317536 Fix select sound being played too many times...
in the Pokédex screen when exiting a selectmenu
2025-02-01 09:35:24 +01:00
JappaWakka
8e0372da30 Fix Metronome and Mirror Move Issues 2025-01-31 16:13:26 +01:00
JappaWakka
98ee3d48eb Implement metronome-like effect for GM moves 2025-01-31 14:27:17 +01:00
JappaWakka
e9a8a89856 Fix issue trainer and wild at same time...
When a wild and trainer encounter happen at the same time, they no longer cancel each other out (hopefully)
2025-01-31 13:13:45 +01:00
JappaWakka
1db6f81cb3 Check if attack args not "" before CInt() 2025-01-30 09:51:59 +01:00
JappaWakka
aa7dbc3f20 Don't save RunToggled as true if in hold mode 2025-01-29 09:26:18 +01:00
JappaWakka
b85e6162d9 Make the game remember if running was toggled 2025-01-28 11:55:52 +01:00
JappaWakka
84a925b120 Added hint how to switch Pokémon summary page 2025-01-28 11:51:07 +01:00
JappaWakka
37cc3a7556 Fix some pokédex constructs and add 2 new ones...
Also update the scriptlibrary for dopokedex.
`<Pokedex.PokemonCaught(ID)>` Returns if the specified Pokémon has been caught.
`<Pokedex.PokemonSee(ID)>` Returns if the specified Pokémon has been seen.
2025-01-28 11:17:53 +01:00
JappaWakka
0022bf7455 Fix crash if selecting disabled move 2025-01-28 09:10:27 +01:00
JappaWakka
568d7d62f3 If standing still return don't return bobbing...
A user reported the camera shaking when they pressed the run key while standing still. The cause of this was the difference in amplitude between head bobbing while walking and running. So I made it return 0 always if you're standing still, only returning the bobbing when moving.
2025-01-27 18:34:49 +01:00
JappaWakka
b3f8811503 Enable D-Pad in First Person Mode 2025-01-27 18:32:03 +01:00
JappaWakka
c7c5155c80 Optimize the music stopping before battle music 2025-01-25 19:11:49 +01:00
JappaWakka
a13b0c50ae Fixed crash when using last item in inventory 2025-01-25 14:10:20 +01:00
JappaWakka
2e0110ae40 Fixed item name ~ not replaced in detail screen 2025-01-25 14:10:04 +01:00
JappaWakka
536874888a Reset Camera Focus after blackout. 2025-01-25 13:42:39 +01:00
JappaWakka
8d9a8e63f2 Added translations for new tokens 2025-01-25 13:17:49 +01:00
JappaWakka
7dfdf7eebd Add apostrophy to king's rock and king's shield 2025-01-25 11:54:39 +01:00
JappaWakka
df0e3ad85c Prevent use pkmn or move items if no pkmn in party 2025-01-25 11:20:05 +01:00
JappaWakka
736af58545 Arena Trap and similar abilities don't use turn...
when trying to run away.
Also added some french tokens I forgot to add.
2025-01-25 10:45:43 +01:00
JappaWakka
57803d7266 Make the second back key bind to backspace 2025-01-25 09:46:20 +01:00
JappaWakka
f33eb9b3cd Add money symbol to save screen 2025-01-25 09:33:22 +01:00
JappaWakka
83c6cc7027 Set NPC collision to true if no tag 2025-01-25 09:32:55 +01:00
JappaWakka
3a47a87735 Make the popup icon be in the correct spot 2025-01-24 14:49:45 +01:00
JappaWakka
69f70919b6 Make NotificationPopup work at different scales 2025-01-24 14:05:52 +01:00
JappaWakka
021d79d08d Update some german tokens 2025-01-23 10:20:11 +01:00
JappaWakka
e132a2500c Translated some attack names into Dutch 2025-01-20 17:40:51 +01:00
JappaWakka
75f9914bb4 Make models not scale based on the pokédex size 2025-01-18 13:34:48 +01:00
JappaWakka
7214556dda Fix battle model offsets 2025-01-18 13:33:38 +01:00
Jasper Speelman
4621ecbb12
Merge pull request #208 from jianmingyong/model_importer_fix
Use custom shader for 3d model
2025-01-18 13:04:40 +01:00
JappaWakka
666fbf7007 Fix dutch contentpack menu tokens 2025-01-18 11:22:17 +01:00
Yong Jian Ming
f9d1076086
Additional Fixes 2025-01-18 17:35:07 +08:00
Yong Jian Ming
c6e101bd3f
Use custom shader for 3d model. 2025-01-17 23:17:38 +08:00
JappaWakka
d2ef0e708d Make it possible for NPCs to have no collision 2025-01-16 15:46:16 +01:00
JappaWakka
7e37e1c382 Fix Evo Conditions for Driffloon & Minccino 2025-01-10 11:19:35 +01:00
JappaWakka
44ce38ccef Noticed I forgot a token 2025-01-06 18:31:47 +01:00
JappaWakka
aba304e5d4 Add Safari Balls & optional Steps counter to menu 2024-12-29 10:28:08 +01:00
JappaWakka
2e2af670e3 Possibly prevent a future crash 2024-12-29 10:26:53 +01:00
JappaWakka
a8dd94a7e6 Made some GUI stuff scale with interfacescale
* Trainer Card
* Save Screen
* MessageBox (like when your files are invalid)
2024-12-29 10:26:15 +01:00
JappaWakka
8b7363364c Added missing option tokens (french not yet) 2024-12-28 19:30:04 +01:00
JappaWakka
9b942ab977 Expanded @Script.Delay with ItemCount DelayType
Also made each Script Delay be defined with an identifier so you can have multiple delays running at the same time!

* arg0 = Identifier
* arg1 = Script Path
* arg2 = Delay Type (Steps, ItemCount)
// Steps
* arg3 = Amount of steps
* arg4 = Whether to display the remaining steps in the start menu
//ItemCount
* arg3 = Item ID
* arg4 = Compare Type (Equal, Below, EqualOrBelow, Above, EqualOrAbove)
* arg5 = Item Amount

With the ItemCount type you can run a script when you do or do not have a certain amount of items
2024-12-28 19:26:01 +01:00
JappaWakka
d49217ff95 Fix unnecessary space in screenshot token 2024-12-27 12:10:34 +01:00
JappaWakka
e74ff7cc50 Don't scale randomness of level 0 by difficulty 2024-12-25 11:18:29 +01:00
JappaWakka
3a4535dd57 Change Trainer AI level values to be less random
* 0 = bigger chance to choose a random move
* 1 = smaller chance to choose a random move
* 2 = can switch pokémon to better matchup
2024-12-25 10:54:03 +01:00
JappaWakka
d70887c319 Update for brazilian portugeuse translation by DMB 2024-12-20 16:08:08 +01:00
JappaWakka
369cd8a187 Make Keyboard key names translatable
For the <system.button()> construct
2024-12-20 11:34:34 +01:00
JappaWakka
13a47b5276 Fixed bug where construct didn't return anything
Forgot to add Return to ReturnBoolean() for <Level.LoadOffsetMaps>
2024-12-16 16:32:09 +01:00
JappaWakka
a70c4e39dd Give the other vs intro colors names as well 2024-12-14 13:31:01 +01:00
JappaWakka
e5c979b9ac Dutch token correction 2024-12-10 14:06:55 +01:00
JappaWakka
aef9bf78f7 Make Trainer Card screen translatable & fix token 2024-12-09 19:17:51 +01:00
JappaWakka
a5550404e0 Small tweak to dutch token 2024-12-09 18:54:29 +01:00
JappaWakka
787cd5358e Added and fixed tokens for main menu, inventory...
... and the title of the join server screen.
2024-12-09 18:46:02 +01:00
JappaWakka
052f32a5de Reload apply/cancel buttons too on language select 2024-12-09 17:16:27 +01:00
JappaWakka
5a546db127 Reset windowsize x/y if they're 0 when saving 2024-12-09 17:15:23 +01:00
JappaWakka
1812c4914d Location in the save menu shows localized value 2024-12-08 13:59:05 +01:00
JappaWakka
a3277e47e6 Forgot to fix the german file 2024-12-05 19:02:30 +01:00
JappaWakka
a68dd860a5 Missing tokens added and token errors fixed 2024-12-05 18:47:02 +01:00
darkfire006
e2a3be2096 fix thaw effects of moves 2024-11-30 23:51:54 -06:00
JappaWakka
a049998b44 Put Rotom forms in the order of their icon sprites 2024-11-30 11:46:54 +01:00
JappaWakka
2640ec070f Make it possible to scale + rotated pkmn models
PokeModelScale|Value - Scale all Pokémon models in battle by value (sng), default  = 1
PokeModelRotation|xRot,zRot - Rotate all Pokémon models by the specified radians. Y rotation is dynamically controlled by the game so I didn't want to mess with that.
2024-11-30 11:45:59 +01:00
JappaWakka
0415df9ee3 Fix Sleep Talk & Snore not working while asleep 2024-11-30 11:39:21 +01:00
JappaWakka
4edb20faae Trainers don't walk through NPCs or objects...
....unless you want them to which you can accomplish by adding "|0" to the end of the AdditionalValue
2024-11-10 13:57:59 +01:00
JappaWakka
c19a7b06cd Scriptlibrary tweaks 2024-11-03 19:36:07 +01:00
JappaWakka
66de1ce8c9 Fix walkthrough objects overriding collision...
...of solid objects when it comes to the movement of the player.
2024-10-10 09:58:35 +02:00
JappaWakka
15dd897e9a Fix Straight NPC movement better 2024-09-28 17:05:03 +02:00
JappaWakka
3649717883 Tweak NPC interaction time frame 2024-09-28 11:12:38 +02:00
JappaWakka
e7153fdc4f Fixed Pause Screen quit confirmation text position 2024-09-28 10:07:31 +02:00
JappaWakka
9522656df9 Added <Player.LastRestPlace> construct
Returns the last rest location the player has visited in the following format: "map.dat,x,y,z".
2024-09-28 10:06:55 +02:00
JappaWakka
d02763959f Fix Moving NPC bugs see desc.
Fixed Straight Moving NPC from stopping if the player stands next to it.
Hopefully fixed the bug where if you time it right you could walk into the path of a moving NPC.
2024-09-26 19:44:32 +02:00
JappaWakka
4fca486fab Add RandomFollowItemPickup GameRule
This controls the random item pickup for all follower pokémon
2024-09-20 19:33:19 +02:00
JappaWakka
10cc749328 Add @NPC.SetScale(npcID,X,Y,Z)
Works the same way as @Entity.SetScale()
2024-09-20 10:55:06 +02:00
JappaWakka
3f6f8a57f2 Disable shade on backdrops when lighting disabled 2024-09-18 13:59:00 +02:00
JappaWakka
a51f0dc27a Disable shaders when lighting is disabled 2024-09-18 13:57:40 +02:00
JappaWakka
db6d04174f Make shaders also visible on offsetmaps 2024-09-17 20:39:33 +02:00
JappaWakka
221bdd6b9c Models are now affected by shader objects 2024-09-17 19:11:08 +02:00
JappaWakka
2b1c2a9145 Make PokeInteract show the right icons 2024-09-15 10:36:45 +02:00
JappaWakka
b6f356a6ba Give catching charm to player at vermilion docks 2024-09-14 15:37:35 +02:00
JappaWakka
27e940f117 Also remove safari balls when blacked out 2024-09-14 14:36:32 +02:00
JappaWakka
9739e6eecd Fix PokeInteract Parsing Crash 2024-09-14 14:35:53 +02:00
JappaWakka
11f8f9cc5c Work in progress French tokens by Hainy 2024-09-02 16:34:17 +02:00
JappaWakka
8fd32c031b Made it possible for GameMode moves to flinch 2024-09-02 16:31:04 +02:00
JappaWakka
d94bb95d0c Update Brazilian Portuguese 2024-08-31 20:50:29 +02:00
JappaWakka
254c829b61 Add Exp. All to Project 2024-08-31 20:50:10 +02:00
JappaWakka
04ae735b18 Added some .ToLower to Player savedata readings 2024-08-31 16:33:56 +02:00
JappaWakka
2c9a1ebc61 Implement Exp. All Key Item 2024-08-31 16:32:35 +02:00
JappaWakka
16a88c1c22 Make it possible to exclude poke file from PokéDex 2024-08-31 14:42:25 +02:00
JappaWakka
eaa0c8d2c3 Make it possible to use pkmn data when spawning 2024-08-26 13:19:15 +02:00
darkfire006
a96c13f123 Add trainers to v road that show up post E4 2024-08-25 17:53:16 -05:00
JappaWakka
79b23efe92 Fixed incorrect DecSeparator thing in GamemodeItem 2024-08-25 20:05:50 +02:00
JappaWakka
e81237bd64 Support for forms in cries and interactions 2024-08-25 18:32:06 +02:00
JappaWakka
ebbe37413e Make it possible to add constructs to interactions 2024-08-25 18:09:17 +02:00
JappaWakka
3cf7687348 Add CatchingCharm to project 2024-08-24 19:24:53 +02:00
JappaWakka
8fa1f76cf4 Aide or Oak give the Catching Charm with Sevii Dex 2024-08-24 16:26:35 +02:00
JappaWakka
58d9acc96f Implement Catching Charm, fix Exp. Charm 2024-08-24 16:06:24 +02:00
JappaWakka
d3ad439226 Map Fixes 2024-08-24 15:39:53 +02:00
JappaWakka
eeb0ba84c2 Fix Warp 2024-08-24 15:35:48 +02:00
JappaWakka
7188108444 Added Alph Unown Dex scientist + house update 2024-08-24 15:33:33 +02:00
JappaWakka
de15767ce3 Fixed some typos and extra spaces 2024-08-24 15:32:11 +02:00
JappaWakka
1c3e30d59e Implemented Exp. Charm 2024-08-24 15:31:51 +02:00
JappaWakka
90b13caf94 .poke level and pokeID can contain constructs 2024-08-23 19:10:58 +02:00
JappaWakka
73fc0bc916 Fix BattleMenu highlighted move after Transform 2024-08-23 10:19:27 +02:00
JappaWakka
6f450b12e6 Fix issues when using Transform while transformed 2024-08-23 10:18:21 +02:00
JappaWakka
6759aba500 Make player face correct direction for npc insight 2024-08-20 12:30:50 +02:00
JappaWakka
0738507791 Disable backwardsmovekey in first person 2024-08-20 12:30:14 +02:00
JappaWakka
1e0fb98359 Fix wild encounters skipping trainer battles 2024-08-20 12:29:11 +02:00
JappaWakka
0bf698e9c2 Properly align bottom-most options buttons 2024-08-17 15:37:02 +02:00
JappaWakka
aae35a8724 Fixed Main Menu crash 2024-08-17 15:36:22 +02:00
JappaWakka
93f8d63aaf ModelPath can be parsed for constructs 2024-08-14 14:47:44 +02:00
JappaWakka
e065eb575a Added <Level.LoadOffsetMaps>
(Bool) Returns if OffsetMaps are being loaded (based on the Offset Map Quality option in the Options Menu).
2024-08-14 14:10:18 +02:00
JappaWakka
f5feba5e99 Fix abilities etc. activating before opp switched 2024-08-12 15:15:53 +02:00
JappaWakka
ad49e7af7b Changed SandboxSwitch to F3+O (B was boundingbox) 2024-08-10 11:07:55 +02:00
JappaWakka
90464e6530 Fix the typo in Dutch too 2024-08-10 10:46:06 +02:00
JappaWakka
da7b534aa0 Partially update German, include spanish, fix typo 2024-08-10 10:43:33 +02:00
JappaWakka
89b111536f Add brazilian portuguese tokens by DMB/Dark Mario 2024-08-10 10:42:48 +02:00
JappaWakka
cbe568a6f8 Changed SandboxSwitch to F3+B 2024-08-10 09:20:53 +02:00
JappaWakka
b802531748 Added key to switch SandboxMode on and off
the key to press is Right Ctrl
2024-08-09 17:28:42 +02:00
JappaWakka
27bd072946 Fixed the Storage System filter issues 2024-08-09 17:11:56 +02:00
JappaWakka
1c6f8cf00f Fix incorrect old stats when leveling up 2024-08-07 11:32:13 +02:00
JappaWakka
9fae5d2dfc Update Victory Road textures 2024-07-31 19:23:46 +02:00
JappaWakka
689ce95c49 OW PkMn spawns close after press R to reload LvL 2024-07-31 18:36:06 +02:00
JappaWakka
97387050c7 Fix transformed pkmn level up wrong stats & icon 2024-07-29 10:35:05 +02:00
JappaWakka
a0bcce2809 Fix Level Multiplier (decimal sep bug) 2024-07-25 10:55:53 +02:00
JappaWakka
6908c4a72d Fix battle intro music looping + command fix 2024-07-25 10:43:16 +02:00
JappaWakka
46cb18974d Fix warp sound for 2 arguments in command 2024-07-21 14:48:55 +02:00
Jasper Speelman
2e1418af8f
Merge pull request #205 from HamtaroSama/master
Fix Rotom Wash Form Display Sprite
2024-07-19 20:31:06 +02:00
Daniel S. Billing
09d9c51aa1
Merge branch 'master' into master 2024-07-19 19:24:54 +02:00
JappaWakka
c2bb993a40 Prevent freeze if error in overworldpokemon cmd 2024-07-16 12:45:41 +02:00
JappaWakka
36ba9c6875 Added some missing commands to the scriptlibrary 2024-07-14 18:37:27 +02:00
JappaWakka
b53ee169e5 Added command @Player.RemoveItemData()
@Player.RemoveItemData(LevelPath,ItemIndex)
Makes the specified item index of the specified map spawn again after it has been found.
LevelPath (str) - Path to the map file (including .dat) relative to "Content\Maps\"
ItemIndex (int) - Index of the ItemObject on the map (first argument in the object's AdditionalValue)
2024-07-14 17:29:13 +02:00
JappaWakka
facfbc9f4e Stop walk anim when rival pushes you in new bark 2024-07-12 06:43:05 +02:00
darkfire006
f985bf5952 remove unused stairs 2024-07-07 23:07:08 -05:00
JappaWakka
fef6ff28df Fix WarpBlock 2024-07-05 11:16:49 +02:00
JappaWakka
5c9faa6710 Remove unnecessary metadata from sfx 2024-07-05 11:12:04 +02:00
JappaWakka
15ee853001 Added additional Warp SFX, fixed HoleBlock + sfx 2024-07-05 11:11:33 +02:00
Pak Lam Ip
49ba9c9294
Update forms.dat
Made correction for Rotom Wash form displaying in team menu
2024-07-05 04:21:22 -04:00
Pak Lam Ip
6afb1fdd00
Update forms.dat
Made correction for Rotom Wash form displaying in team menu
2024-07-05 04:16:08 -04:00
darkfire006
7de8cb3973 switrch to holes 2024-07-05 01:22:18 -05:00
JappaWakka
549d313509 Added HoleBlock Entity
Additional Value
* MapPath,X,Y,Z,DropDistance,WarpTurns,[FallSpeed=1],[ValidAccessRotations]

ActionValue:
* MessageBulb Index + 1

DropDistance argument might be redundant if the camera doesn't follow the falling player
2024-07-04 19:45:27 +02:00
JappaWakka
6f41946e21 Added @Player.DoWalkAnimation(bool)
Enables or disables the player's walking animation when walking or during a @player.move command.
2024-07-04 19:43:05 +02:00
darkfire006
17c87d1b53 updated vroad to HGSS layout 2024-07-03 01:57:39 -05:00
darkfire006
a049abea81 add closed rocket gamecorner 2024-06-27 12:59:10 -05:00
darkfire006
3d52f4fa94 Fix TR trio scripts 2024-06-25 17:28:12 -05:00
JappaWakka
12a61f5dae More dutch move names 2024-06-22 10:36:01 +02:00
darkfire006
9578265fb5 add _alola in wild data 2024-06-20 09:03:30 -05:00
JappaWakka
5a0243644f More Dutch tokens 2024-06-20 11:17:20 +02:00
JappaWakka
7d80fda0b3 Fix Token error 2024-06-20 10:36:31 +02:00
JappaWakka
d87a6cf18d Dutch tokens update & English tokens fix 2024-06-17 19:51:36 +02:00
JappaWakka
1241a11611 Fix Full Screen screenshot corruption 2024-06-14 09:30:46 +02:00
JappaWakka
caf99db33f Fix BattleMenu wrong position 2024-06-14 09:30:20 +02:00
JappaWakka
d9b5b35006 Remove unused Options.dat property 2024-05-22 21:16:05 +02:00
JappaWakka
34fc3ffbbe Fix OnlyCaptureFirst GameRule's implementation 2024-05-22 19:23:48 +02:00
JappaWakka
afee85c4ac Add Level Multiplier 1.2 to the right gamerules 2024-05-22 19:00:00 +02:00
darkfire006
ee7c0e5b94 fix line wrap 2024-05-20 18:34:53 -05:00
JappaWakka
100ba59891 Update Natu & Xatu's Moveset to ORAS 2024-05-20 19:31:22 +02:00
JappaWakka
f22403795b Fix some NPC move, interact and animation issues
* NPCs with straight MovementType (and 2 or 3 frames) will now alternate animation frames instead of resetting after every step
* NPCs with walk or straight MovementTypes won't move into the player anymore when interacting with the NPC as they're about to walk
* NPCs with straight MovementType will now continue to walk in the direction they were heading before the player interacted with the NPC
* NPCs with walk MovementType won't walk into network players anymore
2024-05-20 13:48:45 +02:00
JappaWakka
25bcc154a2 Make ShinyRate & LevelMultiplier GameRules 2024-05-19 19:26:16 +02:00
JappaWakka
f346a32495 Split HardGameRules into Hard and SuperHard 2024-05-19 13:08:53 +02:00
JappaWakka
7ea152fbe5 Make it possible to remove pokegear phone/worldmap 2024-05-18 17:18:23 +02:00
JappaWakka
6c065abfdd Revert "Add model vertices to entity vertex count"
This reverts commit ce52888a0df5355aec14e4a06fcb01db371e9861.
2024-05-16 15:25:20 +02:00
JappaWakka
ce52888a0d Add model vertices to entity vertex count 2024-05-16 15:05:21 +02:00
JappaWakka
b48debe4e2 Prevent next song playing before fade done 2024-05-15 17:08:45 +02:00
JappaWakka
873411d40e Prevent Music from deleting playlistsong if fading 2024-05-15 17:03:42 +02:00
darkfire006
7c2ff10f33 fix wrong day care 2024-05-14 17:24:38 -05:00
JappaWakka
f4354a9922 Make it possible to check if pkmn can learn attack
@pokemon.select has an extra argument. If it is set to an attack ID, it will be visible which Pokémon can learn that move while selecting.

Added @Pokemon.CanLearnAttack(PartyIndex,AttackID)
Returns if the Pokémon can learn the specified move.
2024-05-14 11:02:47 +02:00
JappaWakka
14dd28290c Fix Music skipping intro and only playing intro 2024-05-13 19:00:20 +02:00
JappaWakka
3d7eb3bd66 Fix Attack CopyMove 2024-05-12 12:38:29 +02:00
JappaWakka
f2a9babcd7 Fix Camera bug 2024-05-10 19:06:20 +02:00
JappaWakka
813e939090 Fix Pause Screen 2024-05-10 18:55:42 +02:00
JappaWakka
8479bd0fc3 Added some more text replacements 2024-05-10 18:07:31 +02:00
JappaWakka
260cf6aa66 Improve Character Selection Screen 2024-05-10 18:06:30 +02:00
JappaWakka
72702a2c61 Fix Choosebox not working in NewNewGameScreen 2024-05-10 18:02:54 +02:00
JappaWakka
65fd7dc53e Draw fade before gui 2024-05-10 15:35:23 +02:00
JappaWakka
c3254073f3 Added High Jump Kick to Lopunny's learnset 2024-05-09 15:22:54 +02:00
JappaWakka
b8fcb31484 Revert "Fix battle frontier on kanto/johto world map"
This reverts commit 0d442e54ef390c249b780fc2e73846dad3a6bb77.
2024-05-09 15:13:57 +02:00
JappaWakka
0d442e54ef Fix battle frontier on kanto/johto world map 2024-05-09 13:18:33 +02:00
JappaWakka
2e43afbbc2 Made PokéGear user screen selectable with mouse 2024-05-06 13:34:57 +02:00
JappaWakka
60c1030659 Fix layout of Direct Trade Screen 2024-05-06 13:34:26 +02:00
JappaWakka
cbc09b8358 Prevent impossible CropStringToWidth freeze 2024-05-05 21:18:40 +02:00
JappaWakka
dad278e810 Fix Safari Zone sky area skybox 2024-05-05 18:13:40 +02:00
JappaWakka
4a16501926 Prevent BattleMenu from softlocking pvp battle...
...so that the BattleMenu can't be used until there are no more text messages displaying.
2024-05-05 15:13:15 +02:00
JappaWakka
eca6a70ed6 Added MaxVisibleVertices to debug display
Show how many of the maximum amount of vertices are actually being drawn (which only happens when they're visible)
2024-05-05 13:17:06 +02:00
JappaWakka
0fb05ba815 Update SafariZone PowerPlant Area 2024-05-05 10:52:21 +02:00
JappaWakka
e400c49d7d Fire Punch animation 2024-05-05 10:24:22 +02:00
JappaWakka
c2f3eeff22 Don't show textbox if not lost item after battle 2024-05-05 09:39:10 +02:00
JappaWakka
56e436d69e Remove battle screen resetting weather for safari 2024-05-05 09:19:13 +02:00
JappaWakka
f74f1212dd Fix nuget package sources 2024-05-02 16:09:19 +02:00
JappaWakka
cab4e66cea Fix Item Finder and hidden item fading issues 2024-05-02 15:10:11 +02:00
JappaWakka
9873f15aa5 Fix items lost if switch pokémon after knocked off 2024-05-01 13:26:29 +02:00
JappaWakka
1a7e08d361 Added "DisableMenus" map tag
When set to 1, prevents the player from opening the start menu or accessing the PokéGear.
2024-04-29 16:56:47 +02:00
JappaWakka
ee05af333c Added an exclamation mark at the end 2024-04-29 16:49:27 +02:00
JappaWakka
844bf81eb8 Changed the message for counter/mirror move fail 2024-04-27 17:30:08 +02:00
JappaWakka
4717d097e7 Fix Counter & Mirror Coat 2024-04-27 17:01:56 +02:00
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
6360c93368 Fix Nilllzz' dialogue 2024-04-26 09:32:17 +02:00
JappaWakka
9eb32c6b59 Fix Parasol Lady Mikaela 2024-04-25 19:52:05 +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
9d912e939b Fix various Pokémon Type check errors 2024-04-23 17:29:41 +02:00
JappaWakka
c0b3fe06d0 Fix battle tower walk script when camera turned 2024-04-23 16:55:14 +02:00
JappaWakka
064c99a4f3 fix shieldon's normal ow sprite 2024-04-23 11:37:56 +02:00
JappaWakka
224f9c87d7 Fix certain forms crashing pokédex 2024-04-23 11:00:32 +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
3318a6accc Reduce wait time before clickable MainMenu msgbox 2024-04-22 13:47:33 +02:00
JappaWakka
fabbc958d9 Fix Remove NPC data crash if < 4 args 2024-04-22 13:10:13 +02:00
JappaWakka
fa52bddf96 Fix PokéFan Beverly crash 2024-04-22 11:06: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
9f7b722bcf Just to be sure 2024-04-20 10:19:36 +02:00
JappaWakka
eac90b82d9 Update Apricorn Screen 2024-04-19 20:23:40 +02:00
JappaWakka
045a299826 Fix Trade Screen crash 2024-04-19 15:08:36 +02:00
JappaWakka
11001f69d0 Fix text errors (out of bounds, newlines) 2024-04-19 15:08:14 +02:00
JappaWakka
e37b4ed2da Fix wrong cursor position for scrollbars 2024-04-17 20:11:49 +02:00
JappaWakka
754d88d05b Enable Gain EXP after Catch for Kolben GameMode 2024-04-17 15:54:35 +02:00
JappaWakka
ccd1b9bb7d Update Trainer Intros 2024-04-17 15:54:00 +02:00
JappaWakka
8451718d14 New GameRule - GainExpAfterCatch
When this is set to true, you gain EXP after you catch a Pokémon, just as if you defeated it.
2024-04-15 15:06:17 +02:00
darkfire006
399c00daf7 add wilds at olivine dock 2024-04-12 20:48:54 -05:00
darkfire006
628e3816ef include some stuff in project 2024-04-09 20:04:20 -05:00
JappaWakka
82fee7a434 Make Fly attack animation possible 2024-04-07 19:51:37 +02:00
JappaWakka
a0fd0f061a Fix @pokemon.setstatus to none 2024-04-07 19:49:27 +02:00
JappaWakka
730e3ad766 Fix egg watch text outside box 2024-04-07 15:04:07 +02:00
JappaWakka
59a8a2e502 fix missing : 2024-04-07 12:25:36 +02:00
JappaWakka
afb752ee4f Prevent stuck in fly mode when gravity active 2024-04-07 12:19:43 +02:00
JappaWakka
e47f20ef35 Fix crash damage not happening when blocked 2024-04-07 12:17:18 +02:00
JappaWakka
6ca5a5442c Multiturn moves don't skip turns 2024-04-07 11:58:28 +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
darkfire006
2c2271f733 making static encounters repeatable when E4 cleared 2024-04-07 01:47:32 -05:00
JappaWakka
58a12e5edb Follower idle animate always 2024-04-06 19:46:05 +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
4c5bd0b7f6 Fix player not change to surf pokémon on load 2024-04-04 12:33:34 +02:00
JappaWakka
2cbe35552c Roamers can have forms now 2024-04-04 09:48:25 +02:00
JappaWakka
59f1fd2361 Fix wrong music played when surf or ride 2024-04-03 09:20:31 +02:00
JappaWakka
6c49740ba2 Prevent scrolling while script active 2024-04-02 11:47:47 +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
fdd015a8b4 Fix Frontier Brain to Frontier Head 2024-04-01 20:07:26 +02:00
darkfire006
142fd4d3cf fix pokemon registers 2024-04-01 12:36:21 -05:00
darkfire006
275201de44 fixing frontier pokemon movesets 2024-04-01 12:33:44 -05:00
darkfire006
1c73ca3a5a work around saving behind a rock puzzle 2024-04-01 11:54:36 -05:00
JappaWakka
e2cfd5207a Fix some trainer text 2024-04-01 13:34:45 +02:00
JappaWakka
88b963b8d5 Fix another trainer 2024-04-01 13:33:23 +02:00
JappaWakka
cb2bc3aad1 Fix Fisherman Wilton phone call script 2024-04-01 13:31:53 +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
darkfire006
1e231196f0 refixed perrserker in the frontier pool 2024-03-29 01:40:54 -05:00
JappaWakka
f1c1558c28 Made fullscreen borderless 2024-03-28 20:12:47 +01:00
JappaWakka
49d1c6c73e Chat on-screen keyboard only when using gamepad 2024-03-28 19:19:17 +01:00
JappaWakka
b04e869783 Show correct buttons on map screen 2024-03-28 19:13:43 +01:00
JappaWakka
582e934b80 Fix gamepad start button not unpausing 2024-03-28 19:13:24 +01:00
JappaWakka
255fc12aee Forgot a thing 2024-03-28 18:58:28 +01:00
JappaWakka
38acb8955b Fix Beat Up no damage for wild Pokémon 2024-03-28 18:58:01 +01:00
JappaWakka
67f4a63273 Trainers can't cheat level at high difficulty 2024-03-28 18:51:09 +01:00
JappaWakka
04055651ac Fix Bide PP consumption 2024-03-28 18:40:21 +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
9fe5f00e2a If the exact NPC register exists, no add to save 2024-03-28 17:58:30 +01:00
JappaWakka
5f54709231 Fix trainer text 2024-03-26 18:14:55 +01:00
JappaWakka
6d9138ee38 Fix PokedexScreen crash after catch 2024-03-26 18:13:07 +01:00
JappaWakka
5b774623c5 Position Trainer Intro texture better 2024-03-26 13:13:49 +01:00
JappaWakka
e7e6ba8d0c Fix some Battle Tower trainer dialogue 2024-03-26 13:13:32 +01:00
JappaWakka
619f1b3d93 Fix Mold Breaker 2024-03-26 13:13:07 +01:00
JappaWakka
9bb85df200 Fix Confuse Ray Battle Animation 2024-03-23 17:47:59 +01:00
JappaWakka
d239ad0b84 Block Perrserker from spawning in Frontier 2024-03-22 17:49:08 +01:00
JappaWakka
b0149c7604 Fix another missing linebreak 2024-03-22 17:44:47 +01:00
JappaWakka
ceaf5e50a6 Fix icon/text offsets in Apricorn Screen 2024-03-22 17:42:09 +01:00
JappaWakka
d0e1d670ad Fix missing line break 2024-03-22 17:03:52 +01:00
JappaWakka
fe23d5f4b4 Fix map item index for Pinsirite 2024-03-22 10:33:52 +01:00
darkfire006
3ab16fdf3e various fixes 2024-03-21 22:14:47 -05:00
darkfire006
88f1f64838 fix some registers 2024-03-21 21:34:05 -05:00
darkfire006
4992a87b09 0.60.1 wrap up 2024-03-21 12:16:04 -05:00
JappaWakka
5e58d4d249 Increase performance VoltorbFlip w/ ContentPacks 2024-03-20 15:26:06 +01:00
JappaWakka
fb4d9d15d5 Fix some accidental VoltorbFlipScreen errors 2024-03-20 15:20:30 +01:00
JappaWakka
f1d7bc81c5 Fix incorrect npc remove and league map error 2024-03-20 15:01:27 +01:00
JappaWakka
e217895a20 Make it possible to quit voltorbflip w/ open memo 2024-03-20 13:29:04 +01:00
JappaWakka
24e1335caa Fix crash when you can't switch (shadow tag etc.) 2024-03-18 14:32:29 +01:00
JappaWakka
5f826a799a Fix VoltorbFlip ChooseBox bug 2024-03-15 09:31:07 +01:00
JappaWakka
402fc4d64c Fix Trainers and other Pokémon acting like Roamers 2024-03-14 10:14:21 +01:00
JappaWakka
979b3f68c9 Fixed Bird Keeper Jose's phone text 2024-03-12 20:18:03 +01:00
darkfire006
1816038a63 Revert "Update NAudio"
This reverts commit 5221fcf25b757a970eca337716142b361cb50e86.
2024-03-11 13:28:06 -05:00
darkfire006
fe712bbcdc update bug fix scripts for dog releases 2024-03-10 23:38:44 -05:00
JappaWakka
5221fcf25b Update NAudio 2024-03-10 14:19:52 +01:00
JappaWakka
823e26afd7 Fix some cries 2024-03-10 11:03:07 +01:00
JappaWakka
b1695d6751 Fix Fisherman Tully not giving phone number 2024-03-10 10:05:01 +01:00
JappaWakka
c708d9eaab Fix Meowstic texture errors 2024-03-10 10:01:24 +01:00
JappaWakka
2398cccd20 Tweak the speed of the NotificationPopup 2024-03-07 19:56:14 +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
36b226d8bb Fix some more ilex forest commands 2024-03-07 14:57:44 +01:00
JappaWakka
b41ac535cd Fix turn commands turning 1stperson players wrong 2024-03-07 14:33:04 +01:00
JappaWakka
8532fd6169 Fix Thief crash 2024-03-07 12:11:09 +01:00
JappaWakka
8dd81c6dc1 Added missing dialog for buying RageCandyBar 2024-03-07 10:46:58 +01:00
JappaWakka
a0425be424 Fix Mahogany NPC taking more money than you have 2024-03-07 10:45:16 +01:00
JappaWakka
6685465b90 Fix Covet crash 2024-03-07 10:44:08 +01:00
darkfire006
aeb1a1829d small fix to rock tunnel layout 2024-03-05 18:28:52 -06:00
darkfire006
7ba709eaaa hiker anthony wrong file path 2024-03-05 16:49:44 -06:00
JappaWakka
de102f4aa7 Fixed Encore & make disabled moves gray in menu 2024-03-05 11:31:33 +01:00
JappaWakka
35355174cc Fix ContentPack menu button crash 2024-03-04 18:06:10 +01:00
JappaWakka
537fcd93af Fix items not being removed from maps 2024-03-03 20:13:24 +01:00
JappaWakka
833916cafb Force important phone calls 2024-03-03 10:09:14 +01:00
darkfire006
6ed27c3721 0.60 wrap up commit 2024-03-01 20:17:54 -06:00
JappaWakka
344b65fe7e Fix @Music.Stop not working 2024-02-29 12:38:33 +01:00
JappaWakka
32be5bbb67 Fix Knock Off Crash 2024-02-28 21:04:02 +01:00
JappaWakka
2551f0d5c7 Fixed multiple evolution softlock 2024-02-27 09:54:47 +01:00
JappaWakka
bb78bb3543 Fix battle music crashes 2024-02-25 18:52:28 +01:00
JappaWakka
50dd29d601 Fix Typos 2024-02-24 09:29:30 +01:00
JappaWakka
d546c7348d Fix Overworld music bugs 2024-02-24 09:26:54 +01:00
JappaWakka
20b2ac35ea Fix Evolutionscreen softlock 2024-02-24 09:26:24 +01:00
JappaWakka
542d1084e0 Fix some errors with Hall of Fame 2024-02-21 18:04:10 +01:00
JappaWakka
86d6f706e9 Fix crash when ID for Item.getItemByID = "" 2024-02-21 17:46:27 +01:00
JappaWakka
48af8b91d7 Fix Pokemon not learn move at evolution 2024-02-21 17:33:36 +01:00
JappaWakka
b36a1f2bd3 Fix many screens not playing levelmusic when exit 2024-02-21 17:07:31 +01:00
JappaWakka
29a790c477 Fix EvolutionScreen crash when able to learn moves 2024-02-20 11:02:37 +01:00
JappaWakka
e2933f78e7 Fix battle music not looping 2024-02-20 11:02:04 +01:00
JappaWakka
e4cb8dfc91 Fixed wondertrade not playing levelmusic when end 2024-02-20 11:01:26 +01:00
JappaWakka
67b2d55e85 Make it all actually work 2024-02-19 20:42:39 +01:00
JappaWakka
af0b31b567 Fix some errors 2024-02-19 20:18:31 +01:00
JappaWakka
6f62a77d0f Updated World Map Visible Tag & added Register Tag
"3", "register"
Name and icon are always visible as long as the string in the Register Tag has been registered with the player
e.g.: {"Visible"[Register]}{"Register"[ShowThisMap]}
2024-02-19 20:11:52 +01:00
JappaWakka
8661684927 Temporarily Disable Chat during PVP 2024-02-19 19:30:53 +01:00
JappaWakka
69e8455cda Revert "Encore fix"
This reverts commit 0091704f4cd4a5a35da7b24d41c8a61960a3cff6.
2024-02-19 18:44:25 +01:00
JappaWakka
0091704f4c Encore fix 2024-02-19 18:33:14 +01:00
JappaWakka
f56dba35cc Implement Visible Tag for World Map
"0", "always"
Name is always visible

"1", "temporary"
Name is visible when player is currently on one of the maps

"2", "unlock"
Name is always visible if the player has visited one of the maps before
2024-02-19 18:09:48 +01:00
JappaWakka
290d400823 catch should despawn roamers though 2024-02-18 09:44:32 +01:00
JappaWakka
8b483a636b Fixed roamers despawn without catch/defeat/flee 2024-02-18 09:42:33 +01:00
JappaWakka
1d26954eab Added <system.language> construct...
...that returns the current language suffix
2024-02-17 18:50:08 +01:00
JappaWakka
f49eba341e Fix achievements not being loaded before checking 2024-02-17 11:40:38 +01:00
JappaWakka
fcac15b0bd Pokémon & Pokédex fixes 2024-02-17 10:51:32 +01:00
JappaWakka
dcfe88a811 Sort GTS Pokémon by number 2024-02-14 17:19:24 +01:00
JappaWakka
8fb00475af Hopefully fix some potential music crashes 2024-02-14 12:12:07 +01:00
JappaWakka
0a218527b3 Fix Pokémon Learn Move Bugs 2024-02-14 12:08:59 +01:00
darkfire006
ac07ee10ea fix 2 more phone trainers 2024-02-11 16:57:30 -06:00
darkfire006
0b23cfb63e more phone fixes 2024-02-09 17:57:12 -06:00
darkfire006
513bcd61a2 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2024-02-09 13:23:13 -06:00
darkfire006
5df626dbfc more phone fixes 2024-02-09 13:23:11 -06:00
JappaWakka
4d629139aa Refresh inventory after attaching mail 2024-02-09 18:40:01 +01:00
JappaWakka
1fbe0a14ad Move MailMan check to Player.Inventory.AddItem 2024-02-09 17:51:09 +01:00
JappaWakka
3e7f2f1cd3 Fix Pokémon level not being parsed crash 2024-02-09 17:07:15 +01:00
darkfire006
dc8df01e3f fix ratatta v raticate mentions 2024-02-09 10:02:11 -06:00
darkfire006
b96f38c8a2 cut not getting the pokemon name 2024-02-08 13:48:08 -06:00
darkfire006
03dfdfeadd phone fixes 2024-02-08 13:47:56 -06:00
JappaWakka
582500171e Fix menu index crash 2024-02-06 19:56:38 +01:00
JappaWakka
2394117aba Align WonderTrade Pokémon to center of screen 2024-02-03 17:19:35 +01:00
JappaWakka
5db9814099 Fix extra period in override text 2024-02-03 17:13:23 +01:00
JappaWakka
0d26a24826 Fix Route 26 Hidden Grotto crash 2024-02-03 16:51:45 +01:00
darkfire006
f2a68b20fd small phone call fixes 2024-02-02 10:19:38 -06:00
JappaWakka
9850a9b888 Fix phone rematch trainers crashes 2024-02-01 17:56:08 +01:00
JappaWakka
3d7dbe2156 Fix Shellos HiddenGrotto form 2024-01-29 12:09:59 +01:00
darkfire006
6932819c21 fix dex evaluations bc unown dex was listed too early 2024-01-29 02:10:11 -06:00
darkfire006
5f2d815e42 fucked up a keyword 2024-01-29 01:52:02 -06:00
darkfire006
beff99d985 end->endif 2024-01-28 20:53:31 -06:00
darkfire006
dff7a0ae49 get old format frontier emblems 2024-01-28 20:53:21 -06:00
darkfire006
27b130914e logic typo 2024-01-26 08:58:26 -06:00
darkfire006
cbda6172bf fix simisear shiny sprite 2024-01-25 21:34:13 -06:00
JappaWakka
50c7125f71 Added Exp calc changing GM Item property
ExpMultiplier|sng,[bool]
optional second argument overrides the exp boost pokémon get when traded if set to true/1
2024-01-24 17:27:59 +01:00
JappaWakka
c50c645654 Display correct GameMode name in main menu 2024-01-24 15:20:57 +01:00
JappaWakka
8ab0da3f38 GameModes in Saves use directory name for check 2024-01-24 12:58:54 +01:00
darkfire006
7a1ab528aa typo 2024-01-19 22:28:19 -06:00
darkfire006
27410cb283 make shops actually prevent buying items you can afford 2024-01-19 22:28:14 -06:00
darkfire006
be184a85ed prevent perrserker and obstagoon from spawning in the frontier 2024-01-16 23:47:51 -06:00
darkfire006
28ec2aa1ab fix pokemon texture errors 2024-01-16 23:35:57 -06:00
darkfire006
07bc005c47 secret give back the berry before a logic split instead of after on one branch 2024-01-16 01:50:39 -06: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
darkfire006
87ad7562f7 reset select item screen every time 2024-01-14 01:40:55 -06:00
darkfire006
83318c4607 make berry usage behavior make sense 2024-01-14 01:40:39 -06:00
darkfire006
c21d040dc1 make berries useable only when appropriate 2024-01-14 01:14:00 -06:00
JappaWakka
6b0a6cbab1 Fix form Pokémon in hiddengrottos not working 2024-01-11 10:12:08 +01:00
JappaWakka
2874b71aac Prevent berries with no usage from being used 2024-01-11 09:54:02 +01:00
JappaWakka
1f23b95827 Fix TradeScreen crash with limited stock 2024-01-11 09:47:09 +01:00
darkfire006
e9a234d30c adjust some odds for the rare drinks 2024-01-09 18:50:44 -06:00
darkfire006
7663f5eb21 typed the wrong thing for the color 2024-01-09 18:49:28 -06:00
darkfire006
d329e00af5 include new files in proj 2024-01-08 21:42:02 -06:00
darkfire006
dc3281dcb7 small typo 2024-01-08 21:41:48 -06:00
darkfire006
acb37ab7c3 custom drinks now remove berries 2024-01-08 19:16:43 -06:00
JappaWakka
16a83441d9 Fixs some music bugs...
Fixed delay when unpausing the game while current level has no musicloop defined
Fixed silence (caused by undefined musicloop) overriding currently playing song when unpausing
2024-01-07 13:35:17 +01:00
darkfire006
9129ae0675 fix daily juice generation 2024-01-07 00:06:46 -06:00
darkfire006
d1656f8f22 fix typo 2024-01-06 18:16:17 -06:00
darkfire006
d5b62e90b3 remove unimplemented items 2024-01-06 18:16:11 -06:00
darkfire006
507b9216d9 fix minor gate stuff 2024-01-06 18:16:02 -06:00
darkfire006
9335cf64a4 shoveled some snow 2024-01-06 18:06:23 -06:00
darkfire006
da660052c8 npcs in the frontier centers 2024-01-04 23:27:20 -06:00
JappaWakka
3d046255d5 Fix lighting issues in battle frontier exterior maps 2024-01-01 19:12:46 +01:00
darkfire006
af390034b9 small phone related fixes 2023-12-29 20:47:30 -06:00
darkfire006
2a96fa4d7d remove random leftover npcs 2023-12-29 20:40:13 -06:00
JappaWakka
e8da25f6bd Make fishing rods usable while riding/surfing 2023-12-27 20:49:08 +01: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
35f321bf7a Fixed some battle hall text errors 2023-12-27 17:15:02 +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
168255e1a0 If level RideType = 3, no stop once riding/biking 2023-12-27 17:09:25 +01:00
darkfire006
5eefdf9d1c remove unneeded speed setting 2023-12-26 10:58:04 -06:00
darkfire006
65e711f15c remove reference to an unneeded script 2023-12-22 16:21:29 -06:00
JappaWakka
46026e8de0 Fix attack desc not fitting in ChooseAttackScreen 2023-12-22 15:34:38 +01:00
JappaWakka
c1cadd3078 Fix CopyMove using wrong GetAttackByID function 2023-12-22 14:48:14 +01:00
JappaWakka
8a3a9dbe9b Add cries for new Pokémon 2023-12-22 11:04:57 +01:00
JappaWakka
8e13910d57 Fix item selection screen 2023-12-22 10:26:51 +01:00
JappaWakka
92f3832416 Fix entity constructs return sng instead of str 2023-12-22 10:12:14 +01:00
JappaWakka
2538b835b9 Fix sea plane ticket check 2023-12-22 10:11:19 +01:00
darkfire006
8e47716c06 open up weather in BF 2023-12-21 00:20:24 -06:00
darkfire006
2c14eef239 fix daily juice giving 2023-12-21 00:09:59 -06:00
darkfire006
f655939510 fix shops with registers 2023-12-21 00:09:49 -06:00
darkfire006
26ea58df47 fix world maps inside factory 2023-12-21 00:09:18 -06:00
darkfire006
10b6587ac5 minor fixes to factory 2023-12-20 22:29:28 -06:00
darkfire006
60e86c41c3 plane now requires ticket 2023-12-20 20:11:00 -06:00
darkfire006
f4d3a717fe misc frontier fixes 2023-12-20 19:54:46 -06:00
darkfire006
6f40767147 moved soon bots 2023-12-20 19:18:26 -06:00
JappaWakka
4325351320 Fix localized field moves not working 2023-12-19 13:17:14 +01:00
JappaWakka
da7339cd79 Fix crash with Schoolkid Alan on route 36 2023-12-19 12:39:17 +01:00
JappaWakka
ee6fa0d67a Fix typo in Violet City map 2023-12-19 12:24:32 +01:00
JappaWakka
b2b34966db Make PP Up & PP Max not usable in battle 2023-12-19 12:23:41 +01:00
JappaWakka
830a11d696 Fix some errors in pallet\evaldist script 2023-12-19 12:20:27 +01:00
JappaWakka
40e7fe2a34 Fix typo in Ruins of Alph PC text 2023-12-19 12:16:16 +01: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
b40dde8904 Added CopyMove property for GM Moves 2023-12-15 18:21:24 +01:00
JappaWakka
0dad856a14 forgot to fix an error 2023-12-12 10:00:54 +01:00
JappaWakka
459ce005d0 Fix crashes and errors related to custom types 2023-12-12 09:57:53 +01:00
JappaWakka
09051e0cba Make spelling of Paralyze consistent for AIField 2023-12-11 18:28:44 +01:00
JappaWakka
5857a05eb9 Add Type example.dat to project 2023-12-11 17:55:15 +01:00
JappaWakka
13fa3f52d2 Fix dive checking the wrong canhit move property 2023-12-11 17:52:32 +01:00
JappaWakka
63c7f96cb8 Added example.dat for GM Types 2023-12-11 14:38:28 +01:00
JappaWakka
bd2d2f2c3d RaiseStat and LowerStat functions show msg if fail 2023-12-11 14:04:53 +01:00
JappaWakka
58eba766ac Added GM Move property to copy anims of other move 2023-12-11 13:48:20 +01:00
JappaWakka
3c01312fd6 Add AIField property for GM Moves 2023-12-11 13:39:26 +01:00
JappaWakka
84df4d7ccc Forgot a thing 2023-12-10 20:20:23 +01:00
JappaWakka
a5e68a153a Implement Custom Types 2023-12-10 20:19:14 +01:00
JappaWakka
705e0b9725 Implemented random TimesToAttack move property 2023-12-10 15:32:54 +01:00
JappaWakka
0e5c260f42 Update Example Move 2023-12-10 15:21:02 +01:00
JappaWakka
2c3ca27c2d Implemented RandomStatus GM move function 2023-12-10 14:53:59 +01:00
JappaWakka
68a64fde7d Fix conflict in properties 2023-12-10 14:36:12 +01:00
JappaWakka
250bc9899f Implement BasePower calc mods for GameModeMoves 2023-12-10 14:27:47 +01:00
JappaWakka
58d438f179 Fix Rare Candy healing before checking evolution 2023-12-10 13:13:06 +01:00
JappaWakka
e2d0996ffd Make it possible to reset the Pokémon status 2023-12-10 13:11:48 +01:00
JappaWakka
5e87f04d73 Fix magnitude basepower 2023-12-10 10:43:01 +01:00
JappaWakka
8295bbffcc Added a chance variable to LowerStat & RaiseStat 2023-12-10 10:10:06 +01:00
JappaWakka
b8941b92a1 Fixed Peat Block item icon (removed two pixels) 2023-12-08 09:53:48 +01:00
JappaWakka
3e9c1cde9c Fixed setDayTime value not returning 2023-12-08 09:53:17 +01:00
darkfire006
453c041199 remove archaic hotfixes and up OT clamp to 6 digits 2023-12-07 01:18:11 -06:00
JappaWakka
f6447b5552 Fix Pokémon Menu Icon offsets for #906 and higher 2023-12-06 11:56:06 +01:00
JappaWakka
4b2bd53e36 Fix hiddengrotto Pokémon Y Offset 2023-12-06 11:54:42 +01:00
darkfire006
4e2068949a set up the daily juice stuff correctly 2023-12-06 00:25:13 -06: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
1c7ce33a73 Added negative Place/Env.Type evo conditions 2023-12-04 18:01:15 +01:00
JappaWakka
bd36bbfad0 Allow multiple Places/EnvironmentTypes 2023-12-04 17:07:07 +01:00
JappaWakka
34a856e1a3 Forgot a thing 2023-12-04 16:37:23 +01:00
JappaWakka
860241e774 Add EnvironmentType Evolution Condition 2023-12-04 16:36:22 +01:00
JappaWakka
48c7d9b214 fixed some interactions 2023-12-04 16:07:53 +01:00
JappaWakka
cf8e3c63b2 Added some cancelindexes 2023-12-04 15:23:21 +01:00
JappaWakka
76dcb2a9a1 Fix Battle Frontier Juice Shop 2023-12-04 15:08:32 +01:00
JappaWakka
4f1a940d9e Fix Mega forms not resetting after battle 2023-12-04 13:31:37 +01:00
JappaWakka
f3777e3130 Implement Strange Steam attack 2023-12-04 09:22:09 +01:00
JappaWakka
d9c26c8550 Implemented Rage Fist attack 2023-12-03 19:34:24 +01:00
JappaWakka
bc8ad24353 Added Status EvolutionCondition 2023-12-03 15:58:07 +01:00
JappaWakka
864fa7f508 Implement fade into the next song in command 2023-11-28 09:53:20 +01:00
JappaWakka
a8b022c613 Fix default credits and skydome 2023-11-27 17:40:21 +01:00
JappaWakka
cb5b6bb63a Remove username from credits example 2023-11-27 17:09:55 +01:00
darkfire006
79f2662e6f full name OR username, not both, also pad timing if no GJ save 2023-11-26 16:23:58 -06:00
JappaWakka
a4f3268b6c Credits example file tweak 2023-11-26 18:16:41 +01:00
JappaWakka
e4e8c06119 Credits Localization & Continue Hint 2023-11-26 15:45:23 +01:00
JappaWakka
926f0dac9b Implement custom Credits background maps 2023-11-26 15:14:47 +01:00
JappaWakka
22edf29445 Fix bug with music that shouldn't loop still does 2023-11-26 15:14:03 +01:00
JappaWakka
53304990f8 Added example credits.dat & functionality 2023-11-26 11:46:37 +01:00
JappaWakka
571aa11310 Fixed text colors in Hall Of Fame screen 2023-11-26 10:38:56 +01:00
JappaWakka
5d34878932 Fix Hall of Fame Screen fade not filling screen 2023-11-25 19:52:56 +01:00
JappaWakka
5616eb87a5 Updated Jasper credits 2023-11-25 19:52:19 +01:00
JappaWakka
aeaddf3f79 Updated Jasper Speelman credits 2023-11-25 19:51:59 +01:00
darkfire006
dc5627e85f add jasper again 2023-11-25 00:37:10 -06:00
JappaWakka
bc88f130d0 Fix incorrect effect on Muddy Water 2023-11-24 11:54:44 +01:00
JappaWakka
94f03e833a Fixed flinch moves being affected by King's Rock 2023-11-24 11:54:29 +01:00
JappaWakka
a7e723f720 Add Selected Player Skin Name & Gender constructs 2023-11-23 15:09:39 +01:00
JappaWakka
6a33432cdd Fix Waterfall Animation Speed 2023-11-19 20:43:31 +01:00
JappaWakka
03df3e36a0 Make it possible to change Hall Of Fame background 2023-11-13 20:27:02 +01:00
JappaWakka
3bd6f1af5b Prevent crash when no Data\Contacts.dat 2023-11-13 15:20:09 +01:00
JappaWakka
d516a1e152 Fix water textures not rotating on fast graphics 2023-11-13 12:59:19 +01:00
JappaWakka
fef6b689ea Liquid Ooze now also affects Leech Seed 2023-11-13 12:19:56 +01:00
JappaWakka
1e8c1bf9b8 Apply 0 damage fix for Bide only 2023-11-08 15:00:55 +01:00
JappaWakka
5019a59c0d Fix moves being able to do 0 damage 2023-11-08 10:14:18 +01:00
JappaWakka
96a47d3418 Fixed snow under buildings 2023-11-06 09:13:38 +01:00
JappaWakka
a8c8479ead Fix Pokédex radio 2023-11-05 18:37:41 +01:00
JappaWakka
1e16a5dcc4 Pokémon forms play the right cry in battle now 2023-11-04 15:16:25 +01:00
JappaWakka
6d83167a8d Fix some wrong phone call script paths 2023-10-30 13:50:38 +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
c76ee70b08 WaterSpeed can now also be set by GameModes 2023-10-29 13:52:48 +01:00
JappaWakka
30d3929154 Allow linebreaks in GameMode description 2023-10-28 12:39:49 +02:00
JappaWakka
0860f3b63c Small tweak to Mist weather 2023-10-27 11:58:54 +02:00
JappaWakka
7b7b23260a Fix cave fog + added Mist weather 2023-10-27 11:48:56 +02:00
JappaWakka
7136346b18 Fix Coin Case description 2023-10-27 11:48:21 +02:00
JappaWakka
30d89a4b42 Fix crash in Cerulean Cave Proton encounter 2023-10-22 13:05:26 +02:00
JappaWakka
0119103942 Add headbutt encounters to route 38 2023-10-18 20:16:45 +02:00
JappaWakka
5543a70c84 Add headbutt encounters to route 34 & 49 2023-10-18 19:14:58 +02:00
JappaWakka
fce1309183 More AnimatedBlock issues fixed 2023-10-17 20:30:22 +02:00
JappaWakka
bc4e42d1f3 Fix crash related to AnimatedBlocks 2023-10-13 09:50:20 +02:00
JappaWakka
8a39146e3e Fix Peat Block 2023-10-12 19:33:23 +02:00
JappaWakka
721b7d992c Implemented InterfaceScale option 2023-10-12 18:25:43 +02:00
JappaWakka
5c3adbcb2a Fix Walk NPC Movement...
Now an NPC with the Walk MovementType will no longer face a direction that is not in its MoveRectangles. When blocked in all directions, it will turn towards a place where it would otherwise have moved towards. Also slightly changed the chance for the NPC to walk or change direction.
2023-10-11 11:30:49 +02:00
JappaWakka
3d44bf61f3 Fix Animatedblock not updating with seasons 2023-10-10 11:33:01 +02:00
JappaWakka
f7fd221ce9 Fix ForceCameraTurn 2023-10-10 09:47:05 +02:00
JappaWakka
d2673ed435 Debug compass tweak 2023-10-09 19:20:00 +02:00
JappaWakka
de2c6c829e Added a debug compass for mapping purposes 2023-10-09 19:15:00 +02:00
JappaWakka
30ea882315 Fix Kleavor OW textures 2023-10-09 16:08:15 +02:00
JappaWakka
3468db7f21 Allow for different animated backdrops 2023-10-05 13:36:02 +02:00
JappaWakka
ecc0b8400a
Fixed typos 2023-10-03 15:59:46 +02:00
JappaWakka
241cb8af9c Fix NPCs updating too often 2023-10-03 09:43:58 +02:00
JappaWakka
eff7029411 Fix OffsetMap NPCs not updating 2023-10-02 20:26:24 +02:00
JappaWakka
f55f910f3b Prevent usage of berries that can't be used 2023-10-01 14:28:32 +02:00
JappaWakka
d08b472b35 Fix for custom water bug with GraphicsStyle 2023-09-30 19:07:47 +02:00
darkfire006
f0a9a9359b small fixes 2023-09-29 09:37:44 -05:00
JappaWakka
6bb8d2107f Make attack descriptions localizable 2023-09-22 12:23:04 +02:00
JappaWakka
25bda8826a Make wild pkmn uncatchable if catchrate = -1 2023-09-22 11:09:35 +02:00
JappaWakka
ca3ddfa441 Make it possible to define custom itemdata mapname 2023-09-21 17:46:12 +02:00
JappaWakka
dce892eda9 Correct Pokémon name length Name Rater 2023-09-20 18:24:36 +02:00
JappaWakka
e87f7953e0 Fix EXP bar position 2023-09-20 16:52:53 +02:00
JappaWakka
61b92076c9 Fix bracket error 2023-09-20 09:07:01 +02:00
JappaWakka
ecb644b974 Let sandbox mode saves use field moves too 2023-09-20 09:06:09 +02:00
JappaWakka
4460ac9f52
Allow trainers to use non Integer itemids 2023-09-17 10:37:35 +02:00
JappaWakka
135f0cdd4e
Fix trainer money crash 2023-09-15 20:04:51 +02:00
JappaWakka
3d13d90b63 Make the dept. store floor signs blend in better 2023-09-13 10:58:12 +02:00
JappaWakka
b5668f2f23 update dialogue referring to slots vs voltorb flip 2023-09-13 10:48:16 +02:00
JappaWakka
863e77508a Fixed some typos 2023-09-13 10:46:31 +02:00
JappaWakka
04f971e8df Remove need for unnecessary register variable 2023-09-11 18:42:07 +02:00
JappaWakka
8d2eb864c1 NPCs no longer walk or turn away when paused 2023-09-10 17:39:05 +02:00
JappaWakka
5b18669000 Add new server port to default serverlist 2023-09-07 20:38:17 +02:00
JappaWakka
b66be1637c Added camera battleanims & earthquake anim &...
...fixed the timing system to be consistent
2023-09-07 13:05:20 +02:00
JappaWakka
eccda481b9 Implemented flash move animation 2023-09-06 12:13:24 +02:00
JappaWakka
5747c2f1ce Added pkmn gender constructs + fix hidden grotto 2023-09-03 18:47:15 +02:00
JappaWakka
552548b5ad Fix for pokédex radio 2023-09-03 16:40:18 +02:00
JappaWakka
d9eb12d341 Fix for softlocks and other battle bugs 2023-09-03 16:39:48 +02:00
JappaWakka
d878559df2 Correct variable name case 2023-08-31 16:39:40 +02:00
JappaWakka
062b14220c More effectively parse pkmn add commands 2023-08-31 16:39:07 +02:00
JappaWakka
0eddb70011 Bring back fading out music with switching maps 2023-08-29 19:20:54 +02:00
JappaWakka
5429ad9e15 Only use models from the active gamemode 2023-08-29 11:28:53 +02:00
JappaWakka
18e020bfdf Partially fixed switch moves 2023-08-22 20:55:32 +02:00
JappaWakka
4a4a2133ee Fix positions and scale of pvp results text 2023-08-22 20:14:07 +02:00
JappaWakka
e23ba807eb Fix camera facing the wrong way in PVP switch 2023-08-22 20:13:24 +02:00
JappaWakka
12c7068bd6 Battle/Trade request player texture position fix 2023-08-21 18:49:14 +02:00
JappaWakka
ecd46961e2 PVP Lobby ready text background size fix 2023-08-21 18:48:34 +02:00
JappaWakka
fa8c8cef74 Header background color fix 2023-08-21 18:48:11 +02:00
JappaWakka
888371c914 Some battle fixes & move implementations
* Baton Pass, Volt Switch, Parting Shot and U-Turn technically work, however the camera is aimed at the wrong pokémon
* Fixed softlock when the PVP client selects a move before the host has finished the battle intro dialogue
2023-08-21 18:43:40 +02:00
JappaWakka
0b183bb5f8 Texture and color fixes in menus 2023-08-15 20:37:05 +02:00
JappaWakka
03bdf93468 Change button textures when switching gamemodes 2023-08-15 18:57:51 +02:00
JappaWakka
944e42cadd Fixed Baton Pass, PVP needs testing 2023-08-15 18:36:02 +02:00
JappaWakka
c007d0d6f4 Removed unnecessary gamemode item properties 2023-08-14 18:40:52 +02:00
darkfire006
f5d2f66c75 why dafuq did this happen 2023-08-11 17:02:38 -05:00
JappaWakka
13493287ba Fix localization bugs 2023-08-11 12:06:07 +02:00
JappaWakka
6b4e8941d2 Fix registered trainers still do in sight check 2023-08-11 11:39:26 +02:00
JappaWakka
464c317d2f Revert "Fix registered trainers still do in sight check"
This reverts commit b7a045e37c2c055c83f7eca9c7d2db7a595b51c6.
2023-08-10 19:45:14 +02:00
JappaWakka
b7a045e37c Fix registered trainers still do in sight check 2023-08-10 19:44:06 +02:00
JappaWakka
edf225189d Fix for item messagegive 2023-08-10 10:31:57 +02:00
JappaWakka
f92373d447 Add @Entity.SetModel(ID,ModelPath) 2023-08-09 20:22:36 +02:00
JappaWakka
cbce5512cc Fix model lighting bug 2023-08-09 19:33:53 +02:00
JappaWakka
35c8e8f4c5 Translated plural item names + fixes 2023-08-09 16:59:37 +02:00
JappaWakka
15f57d8bc5 Make plural names localizable + item found 2023-08-09 16:20:16 +02:00
JappaWakka
49f54471b6 Prevent possible wrong jingle 2023-08-09 15:58:50 +02:00
JappaWakka
4b399a1892 Dutch localization tokens JoinServerScreen 2023-08-09 15:57:02 +02:00
JappaWakka
e3c3a53e85 Localization for Join Server Screen 2023-08-09 15:50:56 +02:00
JappaWakka
3ff8161a7b Don't reset language when no tokens file 2023-08-09 14:54:49 +02:00
JappaWakka
d7b08ca349 Don't forget item categories in receive message 2023-08-09 14:54:17 +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
128556196e New Dutch tokens 2023-08-09 14:37:00 +02:00
JappaWakka
9ffd923e56 Fix gamemode splash again (forgot other menus) 2023-08-09 14:36:04 +02:00
JappaWakka
f8c63948d4 Localizable receive items and berries messages 2023-08-09 14:26:26 +02:00
JappaWakka
e8650f8d18 Reset Main Menu GameModeSplash on click too 2023-08-09 10:59:26 +02:00
darkfire006
a5c6144ebf fix crashes related to forms in the dex 2023-08-06 19:59:25 -05:00
darkfire006
39017d57bf use system.scripttrigger 2023-08-06 19:58:49 -05:00
JappaWakka
8d8e02a274 Fix incorrect skin scaling in pokégearscreen 2023-08-06 16:17:12 +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
darkfire006
d9473e5454 reset call flag to blank after script 2023-08-06 00:17:43 -05:00
darkfire006
28070fa083 fix juice script 2023-08-06 00:04:39 -05:00
JappaWakka
4e23c9f9da Fix background & splash scaling 2023-08-05 15:14:38 +02:00
JappaWakka
593c5731a1 Update gamemode splash + added mainmenu GM splash 2023-08-05 14:47:35 +02:00
JappaWakka
73edefdd4b More localization stuff 2023-08-05 13:42:56 +02:00
JappaWakka
36294f8647 Add line break for bicycle use text 2023-08-05 13:26:48 +02:00
JappaWakka
915293431e Dutch Pokédex tokens 2023-08-05 10:43:16 +02:00
JappaWakka
e2320d8f07 Localizable Pokédex Screen 2023-08-05 10:28:18 +02:00
JappaWakka
c68b55de91 Localizable can't save text 2023-08-05 09:58:42 +02:00
JappaWakka
a3f7bcaef0 Make menu screen localizable 2023-08-05 09:55:00 +02:00
JappaWakka
e576f50c19 Fix frontier flag 2023-08-05 09:54:37 +02:00
JappaWakka
6e8067b30b Fix battlescreen interaction while in chatscreen 2023-08-04 10:15:18 +02:00
JappaWakka
5a7304c6fd Remove female Hisuian Sneasel from project 2023-08-04 09:55:54 +02:00
JappaWakka
3ba2ef6b58 Remove female Hisuian Sneasel 2023-08-03 19:40:43 +02:00
JappaWakka
14d284bb1e Finished Dutch item name tokens 2023-08-02 15:43:31 +02:00
JappaWakka
02f627b6d6 Fix small color difference in icons 2023-08-02 15:00:13 +02:00
JappaWakka
9ab54ac8ff Update GameModeItem example 2023-08-02 14:41:30 +02:00
JappaWakka
f336731d0e Some more Dutch tokens 2023-08-02 14:36:39 +02:00
JappaWakka
8f396d0a7a GameMode Items can also be Mail now 2023-08-02 14:36:19 +02:00
JappaWakka
acee085383 Tokens and Corrections 2023-08-02 11:27:12 +02:00
JappaWakka
43f66368b9 Localization line splits voltorbflip + inventory 2023-08-02 10:52:12 +02:00
JappaWakka
f128382597 Added cancelindex to voltorbflip menus 2023-08-01 20:20:35 +02:00
JappaWakka
694acb7730 Fix other languages not working 2023-08-01 20:06:20 +02:00
JappaWakka
d504a4961e Added a space 2023-08-01 20:06:01 +02:00
JappaWakka
e8e27c727e Voltorb Flip coin case cap won't prevent game 2023-08-01 20:05:52 +02:00
JappaWakka
2e85705bf8 Voltorb Flip coin case cap won't quit game 2023-08-01 18:54:00 +02:00
JappaWakka
ac18f79d99 Don't show unread icon when taken from party 2023-08-01 18:38:42 +02:00
JappaWakka
0cdd7445c3 "Send to PC" also fits 2023-08-01 18:34:19 +02:00
JappaWakka
cbd8bc5046 View taken mail before sent to pc + can reattach 2023-08-01 18:24:31 +02:00
JappaWakka
7aa38cd921 Implement Encore correctly 2023-08-01 13:53:10 +02:00
JappaWakka
df17680e97 Fix daycare thing 2023-08-01 13:19:34 +02:00
JappaWakka
3273b44315 Fix position text and inputbox 2023-08-01 13:18:58 +02:00
JappaWakka
c9b2bdfe62 Make it possible to write mail from inventory 2023-08-01 13:17:09 +02:00
JappaWakka
783e401c39 Fix catch animation 2023-08-01 12:24:35 +02:00
JappaWakka
3e51436c0e Make Mailman Trophy achievable 2023-08-01 11:17:54 +02:00
JappaWakka
1419419d65 Fix mail shop 2023-08-01 10:08:12 +02:00
JappaWakka
66a9ea8eec Pokémon OW fixes 2023-07-31 14:53:15 +02:00
JappaWakka
6fc78444f4 Remove headbutt tree badge requirement 2023-07-30 18:17:19 +02:00
JappaWakka
8a478fa3c8 Reset run toggle when quit save 2023-07-30 18:17:01 +02:00
JappaWakka
e497776ecd Localized field moves and switching 2023-07-30 18:16:27 +02:00
JappaWakka
d66da7f1e8
Merge pull request #201 from jianmingyong/BasicEffectWithAlphaTest
Add BasicEffectWithAlphaTest
2023-07-30 13:28:06 +02:00
JappaWakka
5c13283445 Fix big map screen player icon offset 2023-07-30 12:39:17 +02:00
Yong Jian Ming
7cd60cc3ad
Add BasicEffectWithAlphaTest 2023-07-30 18:05:08 +08:00
JappaWakka
84313dc429 Fix some things related to pokémon commands 2023-07-30 10:39:48 +02:00
JappaWakka
3076bf5bc5 Draw name after texture so it's not covered 2023-07-30 09:45:25 +02:00
darkfire006
0a2324b12a event, mandatory phone calls 2023-07-29 23:32:52 -05:00
JappaWakka
ce565d7925 Fix Berserker Gene functionality 2023-07-29 09:58:12 +02:00
JappaWakka
191fc26cae Remove from incorrect sprites from project 2023-07-28 18:46:31 +02:00
JappaWakka
b42add2307 Added hisuian party icons 2023-07-28 18:33:14 +02:00
JappaWakka
93bf259edb Remove incorrect sprites 2023-07-28 18:13:09 +02:00
JappaWakka
73e5cb97f8 Add OWs for hisui forms and 899-901 2023-07-28 18:10:47 +02:00
JappaWakka
d911935dfb Fixed BattleAnimation bug, updated moves 2023-07-28 15:51:16 +02:00
JappaWakka
6fe581dff9 Add @player.removefrontieremblem(str,bool) 2023-07-28 13:06:04 +02:00
JappaWakka
d23fc9a37d Pokégear shows BP on frontier screen 2023-07-28 13:05:32 +02:00
JappaWakka
49b0ad9103 Made texturemanager log missing textures better 2023-07-28 12:35:25 +02:00
JappaWakka
bded481df8 Customizable Frontier Emblems 2023-07-28 12:35:00 +02:00
JappaWakka
d5bcb336dd Update forms 2023-07-27 20:12:56 +02:00
JappaWakka
5c3cbe89c1 Last argument notificationpopup forces accept
Also you can't move or turn the camera when a notificationpopup is forced
And you can't pitch the camera up and down anymore while in a script
2023-07-27 15:50:45 +02:00
darkfire006
41e4889e10 daycare calls update 2023-07-26 16:47:35 -05:00
darkfire006
66fea25d44 new contacts 2023-07-26 15:23:18 -05:00
darkfire006
339b7ae277 ace trainer beth update 2023-07-26 15:22:54 -05:00
darkfire006
a02c4e3405 update ace trainer gaven 2023-07-26 15:01:03 -05:00
darkfire006
8c27ec5fba ace trainer reena update 2023-07-26 13:38:46 -05:00
darkfire006
e9dc031b68 bird keeper jose update 2023-07-26 12:12:01 -05:00
JappaWakka
e78cabb598 Add confusion to gamemode move functions 2023-07-26 18:53:14 +02:00
darkfire006
6305acfdb5 small route 47 fixes 2023-07-26 11:03:46 -05:00
JappaWakka
3d50fe8059 Added galar OWs, fixed some others 2023-07-26 17:17:57 +02:00
JappaWakka
5a447b8f01 Include in Project 2023-07-26 14:39:33 +02:00
JappaWakka
5b464af881 Added missing poké front + back + menu sprites
not all have their respective shiny yet
2023-07-26 14:28:29 +02:00
JappaWakka
1c27620e13 Show shiny in dex if caught 2023-07-26 14:26:56 +02:00
JappaWakka
02475bb24a Fix typos in battlefield maps 2023-07-26 11:03:57 +02:00
JappaWakka
93a0a2a76d Fix end break crash 2023-07-26 10:49:46 +02:00
JappaWakka
3c21a672c0 Stop Player from animating when game paused 2023-07-26 10:33:53 +02:00
JappaWakka
bda8fbc833 Fix BattleMapOffset hopefully 2023-07-26 10:33:21 +02:00
JappaWakka
72bdc2976a Fixed @entity.setscale for entities with model 2023-07-26 09:30:47 +02:00
JappaWakka
52696d0fa3 Be able to fly from top of tin tower 2023-07-26 09:29:50 +02:00
darkfire006
32b5092aa2 picknicker erin update 2023-07-26 01:06:54 -05:00
darkfire006
ff6cff82d6 hiker perry update 2023-07-26 00:54:11 -05:00
darkfire006
b7d2aef787 clear extra in vance 2023-07-26 00:47:00 -05:00
darkfire006
3848cd7e96 memorial boat fix part 2 2023-07-26 00:43:30 -05:00
darkfire006
e8530768df fix memorial boat 2023-07-26 00:42:25 -05:00
darkfire006
8371dd72eb wrong held item for cherubi 2023-07-26 00:27:19 -05:00
darkfire006
20dba9e218 blackbelt kenji update 2023-07-26 00:23:12 -05:00
darkfire006
9468972e78 fisherman wilton and some fixes 2023-07-26 00:11:47 -05:00
darkfire006
7d81b96679 small call fixes 2023-07-25 23:39:08 -05:00
darkfire006
12927f986b birdkeeper vance update 2023-07-25 23:38:52 -05:00
darkfire006
8ea0371e5e update pokemaniac brent 2023-07-25 22:59:22 -05:00
darkfire006
bb72f7ab6d picknicker tiffany update 2023-07-25 22:31:42 -05:00
darkfire006
120eaceb12 fisherman tully update 2023-07-25 22:31:20 -05:00
darkfire006
5c80210e77 beverly 4 2023-07-25 22:30:26 -05:00
darkfire006
1b7565849f sailor huey update 2023-07-25 20:42:26 -05:00
darkfire006
92ab5f2ccd gentleman alfred update 2023-07-25 20:05:56 -05:00
JappaWakka
96284cf40e Burmy & Wormadam sprite fix 2023-07-25 18:22:36 +02:00
JappaWakka
07a388dd31 Typo fix 2023-07-25 18:19:40 +02:00
JappaWakka
7263509579 Revival Herb is now a medicine item 2023-07-25 18:18:53 +02:00
JappaWakka
abe69efb07
Merge pull request #200 from P3D-Legacy/mailsystem
Mailbox screen updated and polished
2023-07-25 18:17:46 +02:00
JappaWakka
3761524fba Header polish 2023-07-25 18:14:44 +02:00
JappaWakka
d390e72c69 Route 32 Spearow quest update 2023-07-25 18:02:07 +02:00
JappaWakka
af2831673e Mail sender name and ot constructs 2023-07-25 14:11:41 +02:00
JappaWakka
fdcbdfa62b Add mail delete menu + modern buttons 2023-07-25 12:48:43 +02:00
darkfire006
9c861fc0b4 beverly round 3 2023-07-25 00:46:27 -05:00
darkfire006
80428d0751 pokefan derek updates 2023-07-25 00:46:13 -05:00
darkfire006
8bb162ff13 school kid chad update 2023-07-25 00:23:47 -05:00
darkfire006
72d7c311bb lass dana update 2023-07-25 00:10:56 -05:00
darkfire006
2ff0e8d1e8 school kid alan update 2023-07-24 22:51:15 -05:00
darkfire006
4939a715c1 update beverly 2 2023-07-24 22:29:26 -05:00
darkfire006
20a173874b update school kid jack 2023-07-24 22:29:17 -05:00
darkfire006
bd522ffcff small fix 2023-07-24 22:15:04 -05:00
darkfire006
f78c739f9b pokefan beverly update 2023-07-24 22:14:46 -05:00
darkfire006
e25bcace3e lass krise update 2023-07-24 20:48:19 -05:00
darkfire006
76de1152a9 firebreather walt update 2023-07-24 20:09:21 -05:00
darkfire006
f04332016e juggler irwin update 2023-07-24 19:37:11 -05:00
darkfire006
ecbd410e5b bug catcher arnie update 2023-07-24 19:36:06 -05:00
darkfire006
e44441df9a missed thing 2023-07-24 19:20:13 -05:00
darkfire006
260c3a3b06 youngster ian update 2023-07-24 18:47:01 -05:00
darkfire006
3d4bef33ff picnicker gina update 2023-07-24 17:48:32 -05:00
darkfire006
8adf5a1079 hiker anthony update 2023-07-24 17:31:35 -05:00
JappaWakka
970feaefbc Progress trying to make mailscreen prettier 2023-07-24 19:47:26 +02:00
darkfire006
7c245946f0 fisherman ralph update 2023-07-24 12:10:38 -05:00
darkfire006
25b3d620b6 found the call sfx :P 2023-07-24 11:46:06 -05:00
darkfire006
5893036e92 update picnicker liz 2023-07-24 11:45:46 -05:00
darkfire006
7d1ffba691 update bug catcher wade 2023-07-24 09:59:26 -05:00
darkfire006
b6924b8a6c remove extra joey file 2023-07-24 09:37:40 -05:00
darkfire006
cf10f54515 update joey 2023-07-24 09:36:06 -05:00
JappaWakka
9749ba72bc Mouse support added to mailscreen 2023-07-24 16:22:44 +02:00
darkfire006
3d11732bfb updated payout 2023-07-24 09:14:52 -05:00
darkfire006
db93909252 camper todd phone stuff incl bargain shop 2023-07-24 01:33:10 -05:00
darkfire006
0e37e99016 wrong map check 2023-07-23 22:08:42 -05:00
darkfire006
77a322360c add elm and oak phone numbers 2023-07-23 19:24:06 -05:00
darkfire006
716d3a9f8f use a different logic for the list of dexes 2023-07-23 17:31:23 -05:00
JappaWakka
5ed44da99b Mail system progress
Made it possible to attach already written mail to a pokémon
Added a taken item message if the pokémon that the mail gets attached to already has an item
Replaced the MiniFont and InGameFont on the mail screen with MainFont
Working on mouse support
2023-07-23 20:53:21 +02:00
JappaWakka
a1b1df55c6 Fix Squirtle script in pallet town 2023-07-23 19:53:04 +02:00
JappaWakka
da19fb4571 fix mega stone GameModeItem 2023-07-23 18:39:26 +02:00
JappaWakka
6032fbb6f4 Can take items from pc poké + release message 2023-07-23 18:27:52 +02:00
JappaWakka
c4fd9f19a7 Show accept also when popup has no delay 2023-07-23 16:14:35 +02:00
JappaWakka
36d14ec3d3 Fix exiting new bark without prof elm pokémon 2023-07-23 10:10:49 +02:00
JappaWakka
5b537f9631 Fix Pokédex navigation bugs 2023-07-23 10:04:52 +02:00
JappaWakka
b73023e416 Forgot to actually set the pokedexdata 2023-07-22 21:17:37 +02:00
JappaWakka
22cedcd6c7 Added @Pokedex.ChangeEntry(str,int,bool)
@Pokedex.ChangeEntry(PokeID,EntryType,ForceChange)

PokeID [str] = the Pokémon ID: number (e.g. 19) + optionally Data File Suffix (e.g. 19_alola) or AdditionalValue (201;0)
EntryType [int] = the type that the entry needs to be set to: 0 (undiscovered), 1 (seen), 2 (seen + caught) or 3 (seen + caught + shiny)
ForceChange [bool] = if this is set to true, the game doesn't check whether the Pokédex entry is lower than EntryType before setting it
2023-07-22 20:47:07 +02:00
JappaWakka
5e4f5d830c Correct vb name 2023-07-22 12:32:22 +02:00
JappaWakka
bf2a8aebc6 Return a random move when no attacking moves 2023-07-22 12:06:03 +02:00
JappaWakka
bce86162ef Fix Battle Music being played in the overworld 2023-07-22 11:43:06 +02:00
JappaWakka
7b06b2571a Fix @Player.TurntoAsync for thirdperson 2023-07-22 11:23:27 +02:00
JappaWakka
25e850ccd5 Fix yaw when locking camera 2023-07-22 11:22:48 +02:00
JappaWakka
7691d33a65 Hopefully fixed the water edge battle bug 2023-07-22 10:44:01 +02:00
JappaWakka
ea558ae187 Take item from released Pokémon in PC if any 2023-07-22 10:17:07 +02:00
JappaWakka
0e9623c557 Fix stealth rock 2023-07-21 20:11:17 +02:00
JappaWakka
71bd0eaaef Hopefully fix a music volume bug 2023-07-21 19:30:18 +02:00
JappaWakka
916c69d2b0 Dex form switch and cry tweak 2023-07-21 19:06:43 +02:00
JappaWakka
d200669998 More pokédex tweaking 2023-07-21 18:56:50 +02:00
JappaWakka
c353b9c396 Pokédex tweaks 2023-07-21 18:42:23 +02:00
JappaWakka
fab813c799 Form dex access fix 2023-07-21 17:32:20 +02:00
JappaWakka
d9fe5cdb09 Fix localization tokens for catchlocation/method 2023-07-21 16:32:08 +02:00
JappaWakka
c3fb81a4c4 Pokédex evo/form screen progress 2023-07-21 16:30:12 +02:00
darkfire006
cc60a782f4 line breaks for the shops 2023-07-19 23:49:34 -05:00
darkfire006
d44bc8fd11 connect shop scripts 2023-07-19 23:04:17 -05:00
darkfire006
859e3d27fd mints and gems files 2023-07-19 23:03:57 -05:00
darkfire006
201108ae53 one more shop to include in the proj 2023-07-19 20:59:56 -05:00
darkfire006
a514d4bd61 evo page fixes 2023-07-19 15:10:31 -05:00
darkfire006
a6f02a71ea eeveelution evo screens 2023-07-19 15:00:01 -05:00
JappaWakka
bd67179e6d Switch to pokémon by clicking on them progress 2023-07-19 18:50:58 +02:00
JappaWakka
3176c6b9cb Fix Pokedex switch entry 2023-07-19 17:29:10 +02:00
darkfire006
3f6f42bd8c fix basculin spacing 2023-07-19 00:30:13 -05:00
darkfire006
0d66848c27 allow pokemon with no evos but several forms to have dex screens 2023-07-19 00:25:55 -05:00
darkfire006
1ad3aefb54 tighten spacing for deoxys 2023-07-19 00:25:38 -05:00
JappaWakka
7163093bbc Crash fix and switch tip positioning/color 2023-07-18 19:38:42 +02:00
JappaWakka
51359c7233 Storage System fix 2023-07-18 19:16:31 +02:00
JappaWakka
7f530ab8b7 Forms can now also be traded on GTS 2023-07-18 19:16:19 +02:00
JappaWakka
1a4de5bc97 Form name only when mega evolve or in pokedex
Also:
Added form switch tip in pokedex
Turned some single positions into integers in pokedex
2023-07-18 18:38:36 +02:00
JappaWakka
19cea35bed Pokédex polishing 2023-07-18 17:46:07 +02:00
JappaWakka
338b22fdfd Form switch in pokédex controller controlled + fix 2023-07-18 17:45:47 +02:00
JappaWakka
de6001a97d Switch between forms and dex entries 2023-07-18 13:51:14 +02:00
JappaWakka
47e0594bb5 Improve spacing 2023-07-18 11:17:06 +02:00
darkfire006
fdfc952ac8 forms only, on the evolution page 2023-07-17 22:09:19 -05:00
darkfire006
e6898945e6 split evos 2023-07-17 21:36:37 -05:00
darkfire006
64b54feb76 regional forms manual evo families 2023-07-17 20:36:08 -05:00
darkfire006
3cadf51c31 increase max size of the dex for Gen 9 pre DLC 2023-07-17 17:05:41 -05:00
darkfire006
a6129051da fix sunny day give 2023-07-17 15:35:41 -05:00
JappaWakka
b3d0ef87d4 Forgot some slowpoke evo line stuff 2023-07-17 18:55:01 +02:00
JappaWakka
1c5d45b7ee Slowpoke Evo Line 2023-07-17 18:53:53 +02:00
JappaWakka
dae28c537a Dex Evo/Form Screen Progress + Pichu form fix 2023-07-17 18:46:06 +02:00
JappaWakka
d80a9170c1 Fix Party index resetting when it shouldn't 2023-07-17 18:01:48 +02:00
darkfire006
06a76218c7 fly based on map files contained, not based on if the fly target map is visited 2023-07-16 23:30:39 -05:00
darkfire006
104a504c13 updated tms 2023-07-15 16:30:08 -05:00
darkfire006
ec06fce779 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2023-07-15 16:24:56 -05:00
JappaWakka
6520377758 DexForm progress 2023-07-15 16:12:17 +02:00
JappaWakka
7699621036 Fix Whirlwind move logic 2023-07-15 14:18:00 +02:00
JappaWakka
6440ff0466 Hopefully fix berrydata bugs with new saves 2023-07-15 14:17:40 +02:00
darkfire006
4b6057332f zigzagoon, and evos galarian 2023-07-14 23:32:42 -05:00
darkfire006
29a9ec6ebb gen 9 menu icons, form tests, and new evos 2023-07-14 22:02:56 -05:00
JappaWakka
3065c1960a Pokédex Form Progress 2023-07-14 20:48:32 +02:00
JappaWakka
0b69b854b9 More Pokédex form support progress 2023-07-13 16:15:19 +02:00
JappaWakka
fad33eaa4a Pokédex form support progress 2023-07-12 20:09:06 +02:00
JappaWakka
d2d937e336 Fix form names 2023-07-09 11:55:07 +02:00
JappaWakka
6764062c79 Hopefully get rid of example.dat error messages 2023-07-07 12:05:57 +02:00
JappaWakka
4b97c2ca24 Fixed environment forms 2023-07-07 11:53:35 +02:00
JappaWakka
cb37645746 Fixed gender forms 2023-07-07 11:35:34 +02:00
JappaWakka
e1be26284f Fix season forms 2023-07-07 10:56:16 +02:00
JappaWakka
a90ef6e6d8 A lot of progress on the softcode forms 2023-07-06 20:14:44 +02:00
darkfire006
d88974c617 forgot a bf shop 2023-07-04 15:11:35 -07:00
darkfire006
8a962136cf final items for coin shops 2023-07-04 15:09:33 -07:00
darkfire006
51636194f8 BF shops 2023-07-04 15:08:24 -07:00
JappaWakka
9aec7b9161 Update forms.dat 2023-07-04 14:08:45 +02:00
JappaWakka
8b0a91dfa0 Softcoded forms file filled 2023-07-03 21:02:44 +02:00
JappaWakka
c8c748ad1a Progress of creating softcoded forms 2023-07-03 20:54:32 +02:00
JappaWakka
0ff7969ba2 Nidoran & Basculin fixes 2023-07-03 20:53:57 +02:00
darkfire006
18d7ed6f35 berry store scripts frontier 2023-07-02 03:15:04 -05:00
JappaWakka
b6ba893a5d Coin Case Cap is now a GameRule 2023-07-01 20:47:06 +02:00
JappaWakka
4a7c89cf53 Update ScriptLibrary 2023-06-30 17:56:26 +02:00
JappaWakka
d190ef524d @Player.AddCoins max 50000 + voltorb flip bugfix 2023-06-30 15:45:44 +02:00
JappaWakka
ba4a377d23 Tweak tackle, correct line breaks 2023-06-30 09:55:09 +02:00
JappaWakka
7112b7cdf1 Tweak animations 2023-06-30 09:43:19 +02:00
JappaWakka
581a2c696c Correct tokens for trainer switch prompt 2023-06-29 20:30:10 +02:00
JappaWakka
7e35801db0 Fix PvP battle switching softlock 2023-06-29 20:29:49 +02:00
JappaWakka
20e456ead8 Return regular pokémon name if no nickname 2023-06-27 15:50:57 +02:00
JappaWakka
9035d28a1b Fix being able to surf when a trainer sees you 2023-06-27 14:23:35 +02:00
JappaWakka
f1aeb43b75 Fix Pokémon not falling in battle 2023-06-27 14:23:12 +02:00
JappaWakka
4d65d4bbc8 Fix some commands & script library 2023-06-26 19:23:13 +02:00
JappaWakka
df992888a2 Animation fixes 2023-06-26 18:18:19 +02:00
JappaWakka
a005b60ad9 Fixed some colors in VoltorbFlip tutorial image 2023-06-26 16:37:22 +02:00
JappaWakka
af937955b9 New BattleAnimation type + Confuse Ray animation..
And some fixes
2023-06-26 16:36:52 +02:00
darkfire006
9d024c93df uncomment active items 2023-06-26 09:23:23 -05:00
darkfire006
e0f17269c8 update item description 2023-06-26 09:21:31 -05:00
darkfire006
698d367285 remove wrong shaders 2023-06-26 09:21:21 -05:00
JappaWakka
7a4b03ad3b First half of Confuse Ray done 2023-06-23 11:05:00 +02:00
JappaWakka
d96152d133 Fix EntityMove Battle Animation Type 2023-06-23 11:03:39 +02:00
JappaWakka
030f5a5c74 Fix a wrong color 2023-06-22 14:28:24 +02:00
JappaWakka
a24568cd41 Added @Pokemon.LevelUp(LevelAmount)
This command levels a Pokémon up by the amount of levels (integer) specified in LevelAmount.
If a Pokémon could learn one or more moves on any of the levels between its original level and its level after the command, the command will allow the player to teach each of those moves.
2023-06-22 14:28:12 +02:00
JappaWakka
4b2138d3b2 Fix Background anim fadeout + tweak psychic anim 2023-06-22 10:40:29 +02:00
JappaWakka
1d535bc14d Tweak Psychic background anim speed 2023-06-21 20:02:07 +02:00
JappaWakka
ab55d4d1d7 Reset setDaytime and setSeason on quit 2023-06-21 19:31:39 +02:00
JappaWakka
3200dd9d15 Fix Daytimes when set by command 2023-06-21 19:28:35 +02:00
JappaWakka
a386be5eb6 Added psychic anim & made background anims work
and also added Ice Punch assets to project
2023-06-21 19:24:43 +02:00
JappaWakka
62fea61236 Fix battlescreen having wrong daytime sky 2023-06-21 19:22:24 +02:00
JappaWakka
a6d9a21b72 Fix some GameMode Item stuff 2023-06-21 19:21:34 +02:00
JappaWakka
5d8ae1b1b9 Added Ice Punch Move Animation 2023-06-20 15:56:05 +02:00
JappaWakka
592420abac Fixed rotate BattleAnimation & enddelay...
EndDelay for BattleAnimations is now correctly calculated
Rotate BattleAnimation now actually ends when it's done rotating
2023-06-20 15:55:47 +02:00
JappaWakka
f93fc668c6 Fix Alex's script and sprite 2023-06-18 09:50:19 +02:00
darkfire006
83aa835341 preliminary juice shoppe scripts 2023-06-17 23:15:57 -05:00
darkfire006
8de3030558 increase BP payouts from tower and factory 2023-06-17 22:57:27 -05:00
JappaWakka
7b41b1fa16 Added AlexCorruptor to the Kolben Tower 2023-06-17 19:51:06 +02:00
JappaWakka
9971ed1d5f Added @Pokemon.AddEV(pokeIndex,evStat,evValue)
Adds the evValue argument to the Effort Value stat of a Pokémon in the player's party and makes sure it's legal.
2023-06-17 11:51:35 +02:00
JappaWakka
0e8170a449 @Music.ForcePlay(song) & @Music.Unforce
@Music.ForcePlay(song)
Changes the currently playing music to a new one and prevents the music from being changed by warps or surfing/riding and such.

@Music.Unforce
Allows warps and surfing/riding etc. to change the music again.
2023-06-17 11:37:08 +02:00
darkfire006
3c5f5ee889 fix vb proj furfrou 2023-06-16 14:29:49 -05:00
JappaWakka
ec7392aa22 Fix Furfrou OW texture name 2023-06-14 19:17:19 +02:00
JappaWakka
5617e94f6f Remove unnecessary .ToString 2023-06-14 19:10:27 +02:00
JappaWakka
db35572eb1 Limit Pokémon names to 12 and others to 20 chars 2023-06-14 19:10:04 +02:00
JappaWakka
cda0c79160 Added Bicycle Item for custom GameModes 2023-06-14 10:07:58 +02:00
JappaWakka
a0aa947c5c Added a GameMode Move property and 2 functions
* Fixed an issue with GameMode Items in battles
* Updated the example files for GameMode Items and GameMode Moves
* Maybe fixed something audio volume related

* Made it possible to disable the reduction of PP using the DeductPP (bool) property for GameModeMoves
* Added the new functions "SetTrigger" and "RemoveTrigger" for GameModeMoves:

Function "SetTrigger" checks if a Pokémon does or does not have a certain Status and prevents functions after it from executing if the Pokémon does not have the desired Status.
The function is formatted like this: Function|SetTrigger,Target,Triggers
* "Target" determines which Pokémon's Status is checked and has to be either 0 or 1 (0 = check own Pokémon, 1 = check opponent's Pokémon)
* "Triggers" determines the status effect(s) that should or should not be on the target Pokémon. You can add multiple possible status effects to check for by separating them with a semicolon (;), the values can be: "burn", "freeze", "paralyze", "poison", "badpoison", "anypoison", "sleep", "noburn", "nofreeze", "noparalyze", "nopoison", "nobadpoison", "nopoison", "nosleep"
Function "RemoveTrigger" removes such a trigger so that functions after it are executed
2023-06-13 20:22:35 +02:00
JappaWakka
7bffd5df72 Updated and added Pokémon name tokens 2023-06-13 19:58:37 +02:00
JappaWakka
31834572b0 Reset level when exiting voltorb flip screen 2023-06-12 18:08:25 +02:00
JappaWakka
c287e2ce36 Fix incorrect Voltorb Flip rules 2023-06-12 16:15:45 +02:00
JappaWakka
7be2275050 Reset VoltorbFlip on Pause Menu quit 2023-06-12 15:27:30 +02:00
darkfire006
3074bb8285 fix factory exit warp 2023-06-11 21:55:08 -05:00
darkfire006
16b8b030eb trainer fixes 2023-06-11 21:52:38 -05:00
JappaWakka
a69f5b3f49 Maybe fix a pvp thing 2023-06-11 20:37:19 +02:00
JappaWakka
2e0966dd04 Reset Camera speed for run or ride in scripts 2023-06-11 20:36:41 +02:00
JappaWakka
b91a5f586f Removed unused tokens 2023-06-09 12:11:03 +02:00
darkfire006
71e34ea4c0 add missing texture 2023-06-08 09:20:35 -05:00
JappaWakka
09be466c3c Fixed the build error because of script v1 2023-06-08 16:14:48 +02:00
JappaWakka
f627d9dd55 Update ScriptLibrary 2023-06-08 11:02:48 +02:00
JappaWakka
2e26b2d0c8 Argument for registering amount of bought items
@screen.trade(storeData {itemID,amount,price}{...},canBuy [bool],canSell [bool],currencyIndicator [str],shopIdentifier [str])

shopIdentifier is the value to register to (e.g. if the shopIdentifier = apple then it will register apple_110 if you bought item 110 (pearl) from that shop)
2023-06-08 10:54:51 +02:00
darkfire006
4de02d4b67 add break room script 2023-06-07 21:35:48 -05:00
JappaWakka
512dad9529 Fix incorrect music crash in BattleFactory 2023-06-07 20:44:02 +02:00
JappaWakka
a9ab50f472 Fix invalid menu option crash 2023-06-07 20:36:58 +02:00
JappaWakka
92e611adcb Update battle while in chat 2023-06-07 20:36:41 +02:00
JappaWakka
dc744ea02a Make HM GameMode items possible 2023-06-06 20:35:05 +02:00
JappaWakka
f9602e0a07 Fixed Aragas' poster 2023-06-06 10:11:18 +02:00
darkfire006
741e0c1442 fix npc movement 2023-06-06 00:35:05 -05:00
JappaWakka
ee2a304be2 Forgot a thing 2023-06-05 17:30:19 +02:00
JappaWakka
fb63697ebd Fixed freeze 2023-06-05 17:29:17 +02:00
JappaWakka
c6caf0dbbb Actually fix the water reset this time 2023-06-05 16:12:22 +02:00
JappaWakka
ef0e2709f4 Polished Celadon GameCorner VoltorbFlip map 2023-06-05 15:49:56 +02:00
JappaWakka
228cc77755 Fix water not being reset between gamemodes 2023-06-05 13:50:41 +02:00
darkfire006
840bd17aba add endless break room 2023-06-04 16:32:44 -05:00
darkfire006
67f1f9afcd allow optional breaks 2023-06-04 16:23:08 -05:00
darkfire006
bc69bb36ac update factory maps 2023-06-04 16:05:43 -05:00
darkfire006
00341dff77 slight re order of tower break start camera stuff 2023-06-04 16:05:25 -05:00
JappaWakka
4805bb2836 Made NPC Trade CatchMethod & Location localizable
Also fixed catchlocation with Pokémon add commands
2023-06-04 18:18:33 +02:00
JappaWakka
5b6c902f65 Fix frozen animation 2023-06-04 14:58:39 +02:00
JappaWakka
65ca21139b Fixed wrong item when swapping from pokémon 2023-06-04 14:05:41 +02:00
JappaWakka
63b2134ef6 Added PM chat button for PSS 2023-06-04 12:09:03 +02:00
JappaWakka
aee6d641b1 Accept with mousebutton on PSS 2023-06-04 11:48:24 +02:00
JappaWakka
0600eb4d35 Quit battle if versions don't match 2023-06-04 11:47:52 +02:00
darkfire006
9aa43a95a4 add tents outside the pike 2023-06-04 02:21:11 -05:00
JappaWakka
90810667c9 StrengthRocks can be like wallbills with ModelID 3 2023-06-02 18:36:36 +02:00
JappaWakka
3cc76934e9 Added period after item daily reward messages 2023-06-02 18:35:55 +02:00
JappaWakka
6e1d409a9d Made CatchLocation And CatchMethod Localizable 2023-06-02 10:56:58 +02:00
JappaWakka
522196367a Stop NPC from dancing after done 2023-06-01 16:04:59 +02:00
JappaWakka
315d250405 Added <player.name> to the pokemon add commands 2023-06-01 16:02:04 +02:00
JappaWakka
098feb8e0d Fix TM GameMode Item crashes 2023-06-01 12:40:58 +02:00
JappaWakka
771540a4a0 Make GameMode Items able to be TMs 2023-05-31 20:37:02 +02:00
TheOmegaGhost
36b4800690 Added Sea Plane Ticket and Frontier Stairs 2023-05-31 12:17:53 -03:00
JappaWakka
1467b907f4 Made GameMode Items able to start scripts on use 2023-05-31 16:25:38 +02:00
JappaWakka
ac4e5801c2 CInt(-1).ToString -> "-1" correction 2023-05-31 12:34:22 +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
a6170d0e01 gate exterior 2023-05-30 15:11:45 -05:00
darkfire006
094b90d4c0 line breaks added 2023-05-30 15:10:30 -05:00
JappaWakka
57e0bf2f15 Added pluralnames to gamemode item tokens 2023-05-30 17:56:47 +02:00
JappaWakka
bb68e96bd5 Inventory Screen tweaks 2023-05-30 16:36:32 +02:00
JappaWakka
551a1f3659 Evo Items and Stones now get removed when used
from the inventory
2023-05-30 15:38:13 +02:00
JappaWakka
2d0ad05048 Fixed GameMode evolution items crash 2023-05-30 15:23:18 +02:00
JappaWakka
451115d7aa GameMode Items properties work now 2023-05-30 14:51:43 +02:00
JappaWakka
9b702bd1bc Include example in project 2023-05-30 13:32:03 +02:00
JappaWakka
5363db90cf Added example and fixed some small things 2023-05-30 12:00:18 +02:00
JappaWakka
e30d5b017d Implemented GameMode Item Use, needs testing 2023-05-30 11:38:59 +02:00
JappaWakka
a5a8162f5f Adjusted token and position coin counters 2023-05-30 10:39:17 +02:00
JappaWakka
5cd5e00587 Change order of VoltorbFlip messages 2023-05-30 09:59:03 +02:00
JappaWakka
a2718ac639 Added missing Back token for VoltorbFlip 2023-05-30 09:23:23 +02:00
darkfire006
37e1c62ff5 add celadon gamecorner 2023-05-30 02:09:31 -05:00
darkfire006
8808c8f9f8 small typo 2023-05-30 02:09:03 -05:00
darkfire006
5bacef9eee looping logic fix 2023-05-30 02:00:46 -05:00
darkfire006
a11f46dcd6 coin scripts 2023-05-29 20:33:16 -05:00
darkfire006
ddbbd21043 allow coins to be used in shops and track as stats 2023-05-29 20:32:57 -05:00
darkfire006
2e1b66a45d add back from info screen and fix a line wrap 2023-05-29 20:32:31 -05:00
darkfire006
40b844e4d9 allow for saving and loading of coins 2023-05-29 20:31:42 -05:00
JappaWakka
d13b5eb8d3 GameMode Item Preparations
Implemented GameMode Mega Stones
2023-05-29 15:33:57 +02:00
JappaWakka
ba98f40394 Mouse wheel can reach every item in bag now 2023-05-29 10:37:32 +02:00
JappaWakka
ca29595d25 Fix project 2023-05-29 10:26:27 +02:00
JappaWakka
b8535774aa Merge branch 'VoltorbFlip' 2023-05-29 10:18:56 +02:00
JappaWakka
2a3579f684 Added menu with tutorials, removed gradients
Also improved some tokens and fixed the quit button on the How To Play tutorial image
2023-05-29 09:57:39 +02:00
darkfire006
efba920dda sea plane scripts 2023-05-29 02:26:21 -05:00
darkfire006
45cc53a6ef update level tags 2023-05-29 00:22:53 -05:00
darkfire006
a0e04eda44 add sea plane item 2023-05-28 23:18:08 -05:00
darkfire006
13c0c56f2b frontier gate scripts 2023-05-28 22:53:40 -05:00
darkfire006
21fef0dca0 remove frontier gate from R40 and remake as g/s layout 2023-05-28 19:28:39 -05:00
darkfire006
6d3b35a831 remove fake shadows from tower lobby 2023-05-28 19:26:03 -05:00
darkfire006
66bdbe5b7f new gate in frontier 2023-05-28 19:21:37 -05:00
darkfire006
e5a1a7d1f0 frontier gate scripts 2023-05-28 19:16:44 -05:00
JappaWakka
3b1f3075e8 Added New Level Menu and Game Info stuff
still need to test
2023-05-28 21:34:20 +02:00
darkfire006
24f47ebbbf remove pal park from map 2023-05-28 14:08:15 -05:00
darkfire006
02824d1609 battle tower endless break room 2023-05-28 14:06:32 -05:00
JappaWakka
37580a3336 Make sure quit question reappears 2023-05-28 18:52:51 +02:00
JappaWakka
630cf4f9c9 New Level Menu preparations 2023-05-28 09:58:33 +02:00
JappaWakka
1a1e8bcf9b Fix token and quit button text 2023-05-28 09:54:20 +02:00
JappaWakka
088bb1ceb2 Incorrect Quit Correction + Localizable QuitButton
And some corrected tokens
2023-05-27 19:27:48 +02:00
JappaWakka
7d9db111d2 Missing tokens and better total coins counter 2023-05-27 17:48:32 +02:00
JappaWakka
348ba89b15 Add localization for Voltorb Flip and Coin Case 2023-05-27 16:52:36 +02:00
JappaWakka
e2793e6a03 Fix TotalFlips 2023-05-27 16:23:21 +02:00
JappaWakka
39ce4458f1 Fix Consecutive Wins 2023-05-27 16:10:30 +02:00
JappaWakka
966525b14d Textbox always drawn on top, position tweak 2023-05-27 15:44:01 +02:00
JappaWakka
2314ce6834 Sound effects, jingles and some minor fixes 2023-05-27 15:40:38 +02:00
JappaWakka
4aeecc99d1 Do move memo cursor even when tile = flipped 2023-05-27 15:14:35 +02:00
JappaWakka
bd38e5c2ab VoltorbScreen fully implemented! 2023-05-27 15:09:41 +02:00
JappaWakka
99bf455a6e It doesn't work perfectly but something happens 2023-05-25 18:37:37 +02:00
darkfire006
50c102fe89 add battle dome 2023-05-25 00:12:30 -05:00
darkfire006
f071823869 Battle Hall added 2023-05-24 23:43:07 -05:00
JappaWakka
046df24c43 Gave the VoltorbFlipFont the right color 2023-05-24 20:48:21 +02:00
JappaWakka
791104ee49 Adjust positions row & column counters 2023-05-24 15:42:09 +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
8bf3c7daf3 Fix level drop system, adjust font, more drawing 2023-05-24 11:49:18 +02:00
darkfire006
8747596a60 frontier map and fly points 2023-05-24 00:55:29 -05:00
darkfire006
7afa1a916c add battle castle maps 2023-05-24 00:55:03 -05:00
darkfire006
0a9e7f07e7 battle tower new exterior 2023-05-23 17:28:14 -05:00
JappaWakka
732103bab8 Coin counter amount animation + row & column Font 2023-05-23 15:11:22 +02:00
JappaWakka
5656e75778 Draw cursor, memo menu + button and memos on tiles 2023-05-23 14:14:15 +02:00
darkfire006
ce4261445b battle pike maps 2023-05-22 22:28:55 -05:00
JappaWakka
68c210b344 Forgot to include in project 2023-05-22 20:33:13 +02:00
JappaWakka
e25295ae48 Prepared some textures 2023-05-22 20:32:22 +02:00
JappaWakka
ce6d8344a6 A lot of progress on Voltorb Flip 2023-05-22 19:33:09 +02:00
darkfire006
6e0dd748d8 add signs and a few npcs to central plaza, connect to factory 2023-05-21 22:12:07 -05:00
darkfire006
bbacf12cd5 make battle factory exterior map 2023-05-21 22:11:34 -05:00
darkfire006
20d52471ad remove battle frontier flag collision 2023-05-21 22:11:04 -05:00
darkfire006
d5c3e33947 move battle frontier fly point and add inset map reference 2023-05-21 22:10:48 -05:00
darkfire006
4b48b8104f add frontier turning sign structure 2023-05-21 22:10:00 -05:00
darkfire006
c2d6d70d43 frontier main exterior nearly done 2023-05-21 17:53:53 -05:00
JappaWakka
956c6147cd Generate sums of voltorbs & coins, rows & columns 2023-05-21 20:40:12 +02:00
JappaWakka
5ab3fe7d5b Working on the controls and cursor positioning 2023-05-19 17:02:59 +02:00
JappaWakka
ff0111ecdc Started Development on Voltorb Flip
I think... if I've done everything I did so far correctly, I should have a level 1 grid of tiles, it's just not visible yet and you can't interact with it in any way, so I have no idea if it actually does what I want it to do yet XD
2023-05-18 20:25:38 +02:00
JappaWakka
0fef783154 Use correct name for OpenMenu keybinding 2023-05-18 17:14:19 +02:00
darkfire006
148be15388 fix gen 6 trade evos 2023-05-13 20:42:20 -05:00
JappaWakka
4363f3f4ed Hopefully fix egg being able to switch by move 2023-05-13 20:03:23 +02:00
JappaWakka
333873fdae Fix dancing NPCs rounding off position when done 2023-05-13 19:58:51 +02:00
JappaWakka
c8cf5caeac Fix Structure offset inside another structure 2023-05-13 19:58:12 +02:00
JappaWakka
ba2a970b11 Make it possible to spawn NPC w/ rival/playerskin 2023-05-09 18:27:27 +02:00
darkfire006
a7013a19bc 0.59.3 wrap up 2023-05-07 17:09:33 -05:00
JappaWakka
5a296234f4 Fix shadow and text positions of map screen 2023-05-03 16:28:19 +02:00
JappaWakka
b3becd5653 Fix no full restore message at full hp 2023-05-03 16:03:56 +02:00
JappaWakka
a62c78e9ee Fix Full Restore not healing opp confusion 2023-05-03 15:59:30 +02:00
JappaWakka
afb5271e34 Fix Max Ether 2023-05-03 15:53:21 +02:00
JappaWakka
d14ec56323 Get rid of Minifont in Map Screen 2023-05-02 19:15:20 +02:00
JappaWakka
cf437a1e88 Only play poison sound with poisoned pokémon 2023-05-02 13:36:57 +02:00
JappaWakka
77cfefd598 Play sound when poison pokémon lose hp when walk 2023-05-02 13:31:20 +02:00
JappaWakka
b23c0455e6 Added missing run key from <system.button(str)> 2023-05-02 11:26:14 +02:00
darkfire006
9c9ae00f39 oh wait new year.... 2023-05-02 00:56:42 -05:00
JappaWakka
52ee3da1a2 @npc.spawn has argument for moverectangles now 2023-04-28 09:21:04 +02:00
JappaWakka
b02542ff67 Fix offline savegames not reset when quit new game 2023-04-28 09:20:27 +02:00
JappaWakka
2689467a7c Moves can't be learned twice after level ups 2023-04-28 09:18:41 +02:00
JappaWakka
fc1ff4854d Custom Phone Contacts are possible in GameModes 2023-04-28 09:17:10 +02:00
JappaWakka
09da089212 Fix overworldpoison 2023-04-28 09:13:04 +02:00
darkfire006
cec5c0c172 0.59.2 wrap up commit 2023-04-26 12:26:16 -05:00
JappaWakka
489af57626 Hopefully fix waterfalls this time 2023-04-20 15:54:53 +02:00
JappaWakka
46c814410c Fix (destiny knot) IV inheritance 2023-04-19 14:56:57 +02:00
JappaWakka
2dcd9a69b9 Forgot to include Destiny Knot in project 2023-04-15 11:14:21 +02:00
JappaWakka
f82f001026 Fixed Waterfall 2023-04-15 11:14:06 +02:00
darkfire006
80468415f2 make bill's PC visible only after having pokemon 2023-04-11 09:26:02 -05:00
darkfire006
76648bd5ba
Merge pull request #192 from djg2008/patch-2
Mystery Events should appear on all Pokecenter PCs
2023-04-11 09:18:23 -05:00
darkfire006
9988993c54
Merge pull request #193 from djg2008/patch-3
Your Room PC is now a normal PC
2023-04-11 09:16:27 -05:00
JappaWakka
1bdd6e1c55 Check if opponent is frozen before defrosting 2023-04-08 20:12:42 +02:00
JappaWakka
ccad3e1f21 Implemented Destiny Knot item and added to route27 2023-04-08 17:36:22 +02:00
djg2008
11cd9432db
Your Room PC is now a normal PC
You can also combine with the script committed above to keep Mystery Events on the PC menu (and thus keep Mystery Events in Your Room).

But now, if you can access Bill's PC, you can also access the Storage System from Your Room (amongst other PC menu options!)
2023-04-07 20:29:46 +01:00
djg2008
e93ee4a2f8
Mystery Events should appear on all Pokecenter PCs
So you can enable/disable your mystery event bonuses from any Pokecenter nearby.
2023-04-07 20:20:43 +01:00
JappaWakka
f34ddccb94 Tweak Ember 2023-04-04 15:28:38 +02:00
JappaWakka
54215c80ea Fixed backdrops not rendering and being stretched 2023-04-04 11:32:11 +02:00
JappaWakka
b12ae2026d Fix namerater inconsistencies 2023-04-03 19:22:42 +02:00
JappaWakka
17ef30605c Fixed wrong bugcatchingconstest item pickup type..
By adding the IsOutside map Property
2023-04-01 09:15:57 +02:00
JappaWakka
ba07491069 Fix backdrop water 2023-04-01 08:58:23 +02:00
JappaWakka
aa105b38a2 Fix scald not defrosting opponent...
Also added defrosting the opponent as a gamemode attack function
2023-04-01 08:58:01 +02:00
JappaWakka
f90152c506 Implemented Torment move 2023-03-27 17:59:57 +02:00
JappaWakka
ae5a26f8e3 Fix defrosting moves not working
By putting the move defrost check before the freeze animation/move cancelation check
2023-03-27 17:26:07 +02:00
JappaWakka
f1484c77ca Fix for PP items in battle not starting round 2023-03-27 17:09:08 +02:00
darkfire006
cc582b21fd
Merge pull request #175 from djg2008/patch-1
Update barktown.poke
2023-03-26 14:14:03 -05:00
JappaWakka
779fda3885 Backdrop improvements...
Un-mirrored texture mapping
Added dynamic texture size based on the height of the backdrop texture
Backdrop color matches the daytime now
2023-03-26 19:40:25 +02:00
JappaWakka
b2f6c98f8e Fix Infinite PP for opponents 2023-03-23 12:06:17 +01:00
JappaWakka
734ab3f4e9 Fix Strength Rocks 2023-03-23 11:40:16 +01:00
djg2008
88fdeffdd1
Update barktown.poke
Removed a duplicate Tentacool spawn from Old Rod encounter-group.
2023-03-22 21:43:29 +00:00
JappaWakka
ce165c1e57 Fix for battlemaps with scriptblocks on them
like battle\underwatercave\underwater.dat
2023-03-19 19:11:12 +01:00
JappaWakka
774125da9e Fix struggle naming the wrong pokémon 2023-03-18 20:50:34 +01:00
JappaWakka
b9f6637365 Made trainer battle intros look better
And also made it so that the battleintros get skipped if the _intro music is equal to or smaller than 1 second (useful for silent intros)
I also made sure trainer sprite scaling and positioning is correct
2023-03-18 20:47:12 +01:00
JappaWakka
5819ca30fe Fix for crash related to TrainerAI and using items 2023-03-18 19:56:52 +01:00
JappaWakka
a806284149 Fix cancel pp changing items skipping battle turn 2023-03-15 15:40:46 +01:00
JappaWakka
390d8086dd Fix protean change with struggle 2023-03-15 15:39:59 +01:00
JappaWakka
2987cbb177 Pokémon no longer choose taunted status moves
but instead pick another move. if there are no usable moves left, the pokémon uses struggle
2023-03-09 20:00:20 +01:00
JappaWakka
66046800d3 Pokémon will no longer choose disabled moves...
but instead pick another move. if there are no usable moves left, the pokémon uses struggle
2023-03-09 19:36:47 +01:00
JappaWakka
9a7543fb33 Fix for StrengthRock softlock 2023-03-09 17:14:56 +01:00
darkfire006
ad6c008a98 missing a 0 2023-03-07 17:52:29 -06:00
darkfire006
7ccfe3184f fix alolan related evos from allowing all relevent conditions 2023-03-03 09:11:24 -06:00
JappaWakka
e5ee6cb145 Temporarily comment out opponent switching 2023-03-03 12:28:30 +01:00
JappaWakka
628528b018 Fix daycare pokémon not showing correct form 2023-02-27 21:03:36 +01:00
JappaWakka
0ae62ceaef Have both double trainer npcs show up in battle 2023-02-27 20:25:16 +01:00
JappaWakka
19d88a3bda Tweak horizontal camera speed for controllers 2023-02-27 20:12:18 +01:00
JappaWakka
734ece683c Fix battle transition from displaying twice 2023-02-27 20:01:57 +01:00
JappaWakka
ffefa421c4 Fix faint Pokémon message showing twice 2023-02-27 20:01:28 +01:00
JappaWakka
611e9688b9 Fix faint Pokémon message not showing...
when the Pokémon faints due to effects not caused by attacks/moves
2023-02-27 19:41:57 +01:00
JappaWakka
1114c3ae36 Fix TM/HM bootup sound effect 2023-02-27 19:19:07 +01:00
JappaWakka
f5143a710a Mapped Pokégear to Back button on controllers
And enabling/disabling controller input to F6
2023-02-27 12:49:52 +01:00
darkfire006
2d92359734 prevent shiny related crashes for lapras and Mewtwo 2023-02-26 20:41:41 -06:00
darkfire006
0670fb54d7 fix surges rematch galvantula moveset 2023-02-26 20:39:47 -06:00
JappaWakka
9e991c88e4 Fix for forms getting wrong hidden ability 2023-02-26 17:40:25 +01:00
JappaWakka
2f0cccb052 Entering battle without pokémon triggers blackout 2023-02-26 17:16:39 +01:00
JappaWakka
022597262c Fixed replace fainted pokémon twice bug 2023-02-26 16:05:47 +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
94247a7754 Fix GameModeSelectionScreen accent colors 2023-02-26 15:21:36 +01:00
JappaWakka
bd647ef071 Forgot to save Player.vb 2023-02-26 12:48:42 +01:00
JappaWakka
a371268441 Remove Pokémon if it faints due to poison damage..
with the DeathInsteadOfFaint GameRule set to 1
2023-02-26 12:38:25 +01:00
JappaWakka
4a38a43e1f Fix CanUseHealItems GameRule 2023-02-26 12:37:29 +01:00
darkfire006
6dd4750770 fix shiny suicune causing vermilion crashes 2023-02-25 21:32:48 -06:00
JappaWakka
ec5f551bd2 Fixed empty line before message with rare candy 2023-02-23 21:17:51 +01:00
JappaWakka
42e625b5f4 Fix tackle attack animation softlocking 2023-02-23 21:14:01 +01:00
JappaWakka
f50a62d3fc Consistency in SwitchPokemonQueryObject 2023-02-23 21:13:46 +01:00
JappaWakka
36a5ebf936 Fix opponent switching shenanigans 2023-02-23 12:58:43 +01:00
JappaWakka
5a6711f126 Prevent renaming issues with spaces 2023-02-23 12:30:24 +01:00
JappaWakka
d9e21e0b6d Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2023-02-23 12:29:10 +01:00
JappaWakka
b75de6fe5e Fixed BattleMapOffset not being set to 0 2023-02-23 12:27:48 +01:00
JappaWakka
75378268c0 Fix item usage when 0 remaining 2023-02-23 12:09:53 +01:00
JappaWakka
ca410ee53b Fix Protean ability 2023-02-23 12:09:22 +01:00
darkfire006
de45805b89 actually break the rock 2023-02-20 23:18:34 -06:00
darkfire006
e75edaa7ff the only remaining / are for script math 2023-02-20 11:15:26 -06:00
darkfire006
91fc1bd1b9 fix caps in a map path 2023-02-20 11:02:28 -06:00
darkfire006
a3444d53e0 swap / with \ in script/map paths 2023-02-20 11:02:12 -06:00
darkfire006
cf0ec7f69d 3 more wrong silence keywords 2023-02-14 22:17:38 -06:00
darkfire006
c39f834ff9 fix nilllzz script lock up 2023-02-14 22:17:13 -06:00
darkfire006
24ba4b4378 fix enethil text 2023-02-13 18:26:02 -06:00
JappaWakka
300aa87738 Fixed slideblock and waterfall 2023-02-12 18:57:20 +01:00
JappaWakka
10a2faa62c Remove the word Berry from the Berry names 2023-02-12 16:20:47 +01:00
JappaWakka
f77c45d102 Prevent walking into slideblocks from the back 2023-02-12 12:05:45 +01:00
darkfire006
9c7b511be4 change no music keyword for champ battles 2023-02-09 08:58:23 -06:00
JappaWakka
940cfb91ad Include Emblem Background 2023-02-09 13:44:54 +01:00
JappaWakka
3414d31b62 Failsafe for no usable audio devices 2023-02-09 13:44:35 +01:00
darkfire006
96f6bc2a42 fix Mt moon moon stone not repeating 2023-02-07 17:21:15 -06:00
darkfire006
15a34ad711 fix alolan raichu type 2023-02-07 17:21:02 -06:00
JappaWakka
72d653f65f Fix incorrect character list in rename screen
Also added space and a failsafe for if the name ends with a space
2023-02-02 15:59:26 +01:00
darkfire006
b27136d6bf Revert "Make Eevee stone evolve into Glaceon & Leafeon"
This reverts commit 4042783c4cb84a48abe1fa79aebb1abe44a3d99e.
2023-02-02 08:42:50 -06:00
darkfire006
614c5fcdac vermilion fixws 2023-02-02 08:42:24 -06:00
JappaWakka
1c0ba6b803 Fix Ember Rotation Direction 2023-02-02 14:58:49 +01:00
JappaWakka
fabab5e32e Finally fixed protean not resetting types 2023-02-02 14:58:33 +01:00
JappaWakka
f30ed7af8f Fix some multiturn moves using pp every time
Outrage, Petal Dance, Thrash, Uproar & Rollout now only use pp the first time
2023-02-02 13:54:33 +01:00
JappaWakka
4042783c4c Make Eevee stone evolve into Glaceon & Leafeon 2023-02-02 12:14:50 +01:00
JappaWakka
628f379a28 Fix opponent switching errors bug 2023-02-02 11:19:51 +01:00
JappaWakka
4d1899037b Fix item swap bug 2023-02-02 10:32:26 +01:00
JappaWakka
74d5981c22 Fixed items not being removed from inventory 2023-01-30 19:45:36 +01:00
JappaWakka
1503cecb1a Fix rare candy blank textbox 2023-01-30 19:22:24 +01:00
darkfire006
09fec864e7 fix her pokemon 2023-01-28 23:56:31 -06:00
JappaWakka
4464766202 Removed unnecessary checks for battlemapoffset 2023-01-27 18:31:48 +01:00
JappaWakka
5b7147c720 Added Able/Unable label when using evolution stone 2023-01-27 18:21:27 +01:00
JappaWakka
9b7e52e9e6 Fixed items usable when none are left 2023-01-27 18:20:45 +01:00
JappaWakka
32bd5ed36e Fix rare candy blank textbox bug 2023-01-27 17:48:10 +01:00
JappaWakka
a15414bf24 Fix roar not ending wild battle
Made ability suction cups prevent Roar from hitting
2023-01-27 17:43:02 +01:00
darkfire006
7d300c93d5 improve sticky descriptions 2023-01-27 10:32:19 -06:00
darkfire006
f95034531b fix some trainer typos 2023-01-27 10:32:06 -06:00
JappaWakka
8f372b16f2 Fix item swap duplication (for real hopefully) 2023-01-27 13:17:25 +01:00
JappaWakka
cf5ee111be Improved emblem display including popup
Text is now somewhat more readable
2023-01-26 20:21:53 +01:00
JappaWakka
55106f8450 Can't switch if not in original position 2023-01-23 12:27:36 +01:00
JappaWakka
48d3a0505b Weather render distance and color tweaks 2023-01-23 12:17:57 +01:00
JappaWakka
c94f7a2b1b Fix requests not being blocked in bug contest 2023-01-23 12:12:43 +01:00
JappaWakka
d3bde7eef0 Fixed some visual bugs related to pvp and trading
and replaced some fonts
2023-01-23 12:12:08 +01:00
JappaWakka
4f2513dac9 Fix no switching softlock 2023-01-23 11:31:21 +01:00
JappaWakka
72fceebcb0 Fix repels not being removed from bag 2023-01-23 11:15:54 +01:00
JappaWakka
2b0531ed8a Hopefully fix egg hp > maxhp 2023-01-23 11:15:30 +01:00
darkfire006
4c165742b9 fix name case 2023-01-19 08:56:25 -06:00
JappaWakka
ed20fd14e8 Fixed Frillish & Jellicent & Spiky-Eared Pichu
and others
2023-01-18 20:54:17 +01:00
JappaWakka
b8ffdb73c3 Teleport doesn't fail anymore if opp is faster 2023-01-18 20:13:04 +01:00
JappaWakka
7e7dae0d20 Fixed trick/item duplication and protean 2023-01-18 20:06:21 +01:00
JappaWakka
686cef84fe Tweaked weather colors and chances 2023-01-17 19:27:15 +01:00
JappaWakka
02aef02183 Adjust White Flute description 2023-01-17 18:37:08 +01:00
JappaWakka
6d5c798321 Remove Disable when ResetTemp is called
At the end of battle
2023-01-17 18:22:18 +01:00
JappaWakka
d839b64689 Can't choose a move if it's disabled anymore 2023-01-17 18:21:30 +01:00
JappaWakka
f77961afff Remove battlescreen update from InventoryScreen 2023-01-17 18:20:52 +01:00
darkfire006
074ee8bbfe remove single use TMs from hard mode 2023-01-15 18:53:32 -06:00
JappaWakka
7dedbb7ec2 Fix for non-HM field moves not visible in menu 2023-01-15 20:46:26 +01:00
JappaWakka
15b974fe3f Fixed walkthrough table 2023-01-15 20:40:56 +01:00
JappaWakka
a494f19dbb Pokémon misspelt as Pokemon fixed 2023-01-15 20:22:29 +01:00
JappaWakka
529e95ad2e Fixed Fishing Rod encounter crash 2023-01-15 20:01:59 +01:00
JappaWakka
aa982addbe Fixed Pokémon still encountering with debugwalk 2023-01-15 19:45:29 +01:00
JappaWakka
6562aba3de move learn Able/Unable overlapping text fix 2023-01-15 19:45:03 +01:00
JappaWakka
4b0cfde2fc Replaced font in BattleMenu 2023-01-15 19:26:05 +01:00
JappaWakka
2e9d7bdd26 Fix bridge appearing in front of player 2023-01-15 14:43:58 +01:00
JappaWakka
0d3041d1d7 RepelItem not displaying a message fixed 2023-01-15 14:39:25 +01:00
JappaWakka
724ddabc88 Remove battlescreen update from party view 2023-01-15 14:34:44 +01:00
JappaWakka
748a6e8bcc Fix for Pichu and spiky-eared variant 2023-01-15 14:33:13 +01:00
JappaWakka
d5e46df65e Revert Recycle change 2023-01-15 11:53:34 +01:00
JappaWakka
cdccbfcc67 Fix for Trick and Recycle 2023-01-15 11:40:43 +01:00
JappaWakka
678cd35fde Forgot a period in the exp. share name 2023-01-15 09:58:30 +01:00
JappaWakka
94541ab68e Removed period after Route 30 on sign 2023-01-15 09:36:56 +01:00
JappaWakka
cc2d46153d Disable Shift BattleStyle in PvP 2023-01-15 09:34:42 +01:00
JappaWakka
ffdc28dd85 Fix for Protean Ability not resetting 2023-01-15 09:28:29 +01:00
JappaWakka
89d074e1e5 Fix Battle Spot intro music 2023-01-14 22:01:10 +01:00
JappaWakka
2ce18dbc97 Fix item localization & missing item name 2023-01-14 21:50:41 +01:00
JappaWakka
3a4a4693be Hopefully fix opponent texture not displaying 2023-01-14 21:05:09 +01:00
JappaWakka
d0ea913902 Added GameRule for forgetting HM moves
CanForgetHM
0 = HM moves can't be forgotten
1 = HM moves can be forgotten
2023-01-14 21:04:16 +01:00
JappaWakka
e14e4c660c Added gamerule for Single Use TMs
SingleUseTM
0 = Use TMs as many times as you like
1 = TMs can only be used once
2023-01-14 21:03:12 +01:00
JappaWakka
229b36a90b Added missing space to Guard Swap text 2023-01-14 21:01:19 +01:00
JappaWakka
88807bf0aa Visual fixes for chat windows 2023-01-14 21:01:03 +01:00
JappaWakka
77271a4b67 Forgot some battle animation things 2023-01-14 20:58:17 +01:00
JappaWakka
5a8fdf1058 Fix GameRule crash 2023-01-14 14:21:24 +01:00
JappaWakka
3273cf8edc Added HardGameRules to Kolben data file 2023-01-13 17:42:53 +01:00
JappaWakka
4054e7bcaa Added Harder Difficulty Gamerules + Fix OW Poison 2023-01-13 17:35:54 +01:00
JappaWakka
2de791ab2b Fixed blackoutscreen font 2023-01-13 17:31:17 +01:00
JappaWakka
53e77a1c98 Added blackoutscreen when all fainted by poison 2023-01-13 17:30:44 +01:00
JappaWakka
7723db708b Added missing GameRules to Kolben GameMode 2023-01-13 16:39:49 +01:00
JappaWakka
594addda47 frontier\battletower\88.trainer intro fix 2023-01-13 15:05:51 +01:00
JappaWakka
dfbaaf2b33 BattleScreen + BattleCatchScreen softlock fixes 2023-01-13 14:46:44 +01:00
JappaWakka
9970d892de Added a line break to catch message 2023-01-13 14:15:43 +01:00
JappaWakka
f2e093072e Added failsave to fix missing Level music crash 2023-01-13 14:13:44 +01:00
JappaWakka
450b060271 Made missing intro song only log on debug 2023-01-13 14:12:46 +01:00
JappaWakka
dc454d2a68 Temporarily disabled animations for pvp battles 2023-01-13 14:09:21 +01:00
JappaWakka
7ae9ebaa50 Multimove Bug Fixed 2023-01-13 14:07:35 +01:00
darkfire006
342f3924b1 disable pokegear in contest 2023-01-08 21:29:05 -06:00
darkfire006
2feb3052db remove extra dive patch 2023-01-08 21:28:44 -06:00
JappaWakka
554569d45d Chatscreen battle softlock fix 2023-01-08 15:44:18 +01:00
JappaWakka
f260ec0900 Fix for trainer skins and pokégear trade buttons 2023-01-08 15:43:57 +01:00
darkfire006
3ea6b65cac remove annoying case insenetivity 2023-01-08 01:49:10 -06:00
darkfire006
9d65d60d30 fixes for kolben tower trainers 2023-01-08 01:48:55 -06:00
darkfire006
0719deb7c2 fix pokegear contact typos 2023-01-08 01:48:31 -06:00
darkfire006
d8bd964b3f wix pathing issue for eastern entrance contest start 2023-01-08 01:48:18 -06:00
JappaWakka
728739760d Added GameRule "OverworldPoison"
if set to 0, no overworld poison (default)
if set to 1, overworld poison until fainted
if set to 2, overworld poison until 1 hp, then it's cured
2023-01-06 12:16:41 +01:00
JappaWakka
a1a84bbe40 Fixed escape rope and teleport not stopping surf 2023-01-04 20:14:38 +01:00
JappaWakka
260ff56150 Fixed HealingMachine CameraDistanceDelta 2023-01-04 20:14:04 +01:00
JappaWakka
7c74e541be Fixed certain front sprites not being found 2023-01-03 19:57:19 +01:00
JappaWakka
353224f269 Replaced Tao_Legend_Battle music 2023-01-03 13:13:15 +01:00
JappaWakka
add7f4ac6f Fixed item name not being found with localizations 2023-01-02 15:27:59 +01:00
JappaWakka
30c368f9be Replaced all songs with higher quality ones
Also changed the tao trio music to the Black&White Legendary Theme (if not desired, I can change it back to the tao trio theme, but I'll have to go look for a better sounding gbc remix than we had before)
2023-01-02 13:51:49 +01:00
darkfire006
ca6d063e2c put all possible attack variables in pound for demonstration purposes 2023-01-01 22:26:37 -06:00
darkfire006
1456f6e71a fix missing blocks 2023-01-01 22:13:31 -06: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
2328ca5c67 Fixed EndRound custom move effect 2022-12-31 13:16:32 +01:00
darkfire006
eeae37a495 fix RT desk collision 2022-12-29 21:23:10 -06:00
darkfire006
3db8b79528 Fix Picknicker liz 2022-12-29 21:08:32 -06:00
darkfire006
3a4adda6ba Implement Lum Berry 2022-12-29 21:08:20 -06:00
darkfire006
6c6eba362f fix Luck description 2022-12-29 20:49:18 -06:00
darkfire006
33a9d0ad5b added default message for BSOD script 2022-12-29 20:47:20 -06:00
darkfire006
e95de32ad9 fix move capitalization 2022-12-29 20:47:07 -06:00
JappaWakka
0432aff0e7 @Player.ShowBattleAnimations(0 or 1)
Enables or disables battle animations
2022-12-26 21:02:52 +01:00
JappaWakka
68a9d197e5 Improved the Custom Move commands 2022-12-26 20:54:00 +01:00
JappaWakka
8338c385ee Added Switch & EndRound for Custom Moves 2022-12-26 13:05:22 +01:00
JappaWakka
a0ee905c85 Improved ShowImage scaling with smaller resolution 2022-12-24 14:21:05 +01:00
JappaWakka
f7c97ec7c9 Implemented Disable move & fixed Cursed Body turns
When Cursed Body successfully executes, it now always disables moves for 4 turns too
2022-12-22 14:48:06 +01:00
JappaWakka
b3422ba82a EggCreator only colors spots if not enough colors 2022-12-21 21:29:57 +01:00
JappaWakka
8547c26a3e Fixed Sky Attack crit chance 2022-12-21 17:21:58 +01:00
darkfire006
ce1b178a2c add extra wind and slicing moves
these are mostly moves that are not in SV so are left a maybe on if they are these, also fixed caps for SilverWind
2022-12-21 01:26:31 -06:00
darkfire006
fe8ef2351d G9 cresselia stat change 2022-12-21 01:15:45 -06:00
darkfire006
f2ca0927e0 Update for G9
reduce healing move PP to 5
2022-12-20 17:11:56 -06:00
darkfire006
b538376a1e Updated mechanics from SwSh
3 terrains are a +30%  instead of +50%
Defog removes terrains
Kings Shield is only a single atk red
2022-12-20 16:58:57 -06:00
darkfire006
e5b1242384 mark changes for P3D 2022-12-20 11:04:33 -06:00
darkfire006
ca5b22a143 remove erroneous attributes 2022-12-20 11:03:20 -06:00
darkfire006
44ccaa20f9 Mark wind moves 2022-12-20 11:02:14 -06:00
darkfire006
d5dbac8ec3 add sound attribute 2022-12-20 10:57:50 -06:00
darkfire006
92a3e62520 Mark slicing moves 2022-12-20 10:53:00 -06:00
darkfire006
1c9c0ef5ba add punching category 2022-12-20 10:46:20 -06:00
darkfire006
f92b2962dc 2 more impacted 2022-12-20 10:40:50 -06:00
darkfire006
3cad814d5d move clean up
moves reference attributes that they arent changing, removed 2 from all
2022-12-20 10:40:04 -06:00
darkfire006
e25d67384a mouth moves was only important for pmd 2022-12-20 10:31:56 -06:00
darkfire006
7a0b4a6a21 mark explosive moves 2022-12-20 10:30:50 -06:00
darkfire006
f9e5f32382 Mark dancing moves 2022-12-20 10:28:31 -06:00
darkfire006
6d3667be9f all are bullet moves 2022-12-20 10:23:48 -06:00
darkfire006
49ff0f8827 Sort categories and add a few 2022-12-20 10:23:12 -06:00
JappaWakka
01ada51a96 Fixed rooftop in celadon 2022-12-20 11:43:31 +01:00
JappaWakka
040f876c94 Lavender is now always night
Somehow it wasn't before?
2022-12-20 11:43:16 +01:00
darkfire006
86f5334aff Sacred sword should ignore all boosts not just acc 2022-12-20 01:24:13 -06:00
darkfire006
f103145780 Shore Up doesnt get worse in other weather only better in sand 2022-12-20 01:23:48 -06:00
darkfire006
9e0407d48d IceBurn listed as a freeze move 2022-12-20 01:23:22 -06:00
darkfire006
35a3861c9f Dizzy Punch was pound? 2022-12-20 01:23:08 -06:00
darkfire006
d230d55456 change from a hard coded boost to doubled 2022-12-20 01:22:49 -06:00
darkfire006
9d370f269b Let Magnet bomb hit always 2022-12-20 01:22:04 -06:00
darkfire006
627bb7eb2b missing description text for Aqua jet 2022-12-20 01:21:46 -06:00
darkfire006
423375f4a6 Fix Capitalization of 2 moves' back code 2022-12-20 01:21:14 -06:00
darkfire006
58fd846cc9 increased pin missile's accuracy 2022-12-19 18:00:50 -06:00
darkfire006
654c498025 Fix snatch is wrong type 2022-12-19 18:00:15 -06:00
JappaWakka
8463977303 Include the Gust assets 2022-12-19 20:02:33 +01:00
JappaWakka
5618b0c4db Added Gust move animation 2022-12-19 18:56:46 +01:00
JappaWakka
7468fb38b1 Really fix invisible offsetmapfloors 2022-12-19 06:28:02 +01:00
JappaWakka
9d9045218c This should prevent TurningSign crash 2022-12-19 06:11:48 +01:00
JappaWakka
cef17ea173 Fix invisible offsetmapfloors overwriting 2022-12-19 06:08:31 +01:00
darkfire006
96f9c056b1 Revert "Fix invisible floors overwriting visible floors"
This reverts commit 4511946f270c842d76f669134f753e817b7fb70f.
2022-12-18 22:57:10 -06:00
darkfire006
ac34e0cab2 add sea plane to R50 2022-12-18 17:52:54 -06:00
darkfire006
35422b758a standardize sign speeds 2022-12-18 17:07:57 -06:00
JappaWakka
6e106a28fa Set second type to typeless with Protean ability 2022-12-18 20:18:35 +01:00
JappaWakka
da107320cc Added spaces before - on signs 2022-12-18 20:12:27 +01:00
JappaWakka
e65ec432ec Slightly tweaked Egg sprites 2022-12-18 20:10:41 +01:00
JappaWakka
935dd6fcd0 Fix all caps signs in route30 2022-12-18 20:08:56 +01:00
JappaWakka
790e8ec382 Water animation in Waterfall can be vertical 2022-12-18 14:53:33 +01:00
JappaWakka
f3633cc0d8 Whirlpool animation textures can now be modified
Also removed a tag that wasn't used
2022-12-18 14:42:09 +01:00
JappaWakka
9d5411986f Update TurningSign entity rotation speed system 2022-12-15 19:13:10 +01:00
darkfire006
52f900291f unlock weather in the seviis 2022-12-15 09:04:19 -06:00
JappaWakka
ee3244d554 Added SeaPlane model + structure
and actually included the battle pike structure
2022-12-15 12:02:13 +01:00
JappaWakka
ebe7094f50 Added Battle Pike model + Structure 2022-12-15 10:56:38 +01:00
darkfire006
37bee3ef38 allow fly outside MST 2022-12-13 15:51:40 -06:00
darkfire006
b494c54dc1 add new BF building structures 2022-12-13 15:51:29 -06:00
darkfire006
b49606c616 include money multiplier events 2022-12-13 09:24:12 -06:00
darkfire006
6866fd496e change mention of bike shop 2022-12-13 09:23:52 -06:00
JappaWakka
3dba6774d4 Foggy, Blizzard & Thunderstorm weather fixes
* During weather that reduces fog distance, fog has the correct color now based on time of day and environmenttype
* During Blizzard & Thunderstorm, the clouds are now partially transparent to blend in better with the thick fog
2022-12-10 14:03:20 +01:00
JappaWakka
cc4b50f059 Check the right time 2022-12-08 17:19:54 +01:00
JappaWakka
05de30faed Fix renderdistance with different daytimes 2022-12-08 17:09:47 +01:00
darkfire006
7c2f360dbe R42 suicune crash fix 2022-12-08 09:46:41 -06:00
JappaWakka
55412e3286 Correct some comments 2022-12-06 19:03:37 +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
b3b719e5c0 Improved flash overlay (cleaner + shows less) 2022-12-06 14:36:48 +01:00
JappaWakka
f3028d475d Fix Dark Cave Battlemap Walls 2022-12-06 14:34:55 +01:00
JappaWakka
75a71fbe7b Fix Hidden Ability Evolution Crash 2022-12-06 14:34:31 +01:00
JappaWakka
bdb0278280 Make unable to switch message localizable 2022-12-04 21:17:42 +01:00
JappaWakka
c0c4146607 Item Descriptions can be localized (no tokens yet) 2022-12-04 20:50:45 +01:00
JappaWakka
a86e478342 Spaces and hyphens for move names 2022-12-04 20:22:53 +01:00
JappaWakka
56f9670e0d Move/Attack names can be localized now 2022-12-04 20:11:29 +01:00
JappaWakka
dcf25a4817 Added Item names to localization file 2022-12-04 19:25:56 +01:00
darkfire006
4473b706a4 warp floor alignment fix 2022-12-02 09:29:30 -06:00
JappaWakka
4ed95f00c1 Finally made LightingType 6 function correctly 2022-11-26 14:41:30 +01:00
JappaWakka
6e2f925ba8 Added . after Repel use message 2022-11-18 15:08:34 +01:00
JappaWakka
4511946f27 Fix invisible floors overwriting visible floors 2022-11-18 15:08:14 +01:00
JappaWakka
8ea37604eb @Screen.ShowImage can now scale depending on size 2022-11-15 14:56:54 +01:00
JappaWakka
3bea96a5ea Fix Confused animation 2022-11-15 10:28:09 +01:00
JappaWakka
714869290c Fix medicine usage text out of bounds 2022-11-11 13:00:02 +01:00
JappaWakka
7d1931abd1 Fix exp sharing after switching before opponent 2022-11-11 12:59:38 +01:00
JappaWakka
da637a85af Added Ember_Start sound back in the animation 2022-11-11 11:17:26 +01:00
JappaWakka
61e35007ad Sweet Scent didn't have capital S before 2022-11-11 11:16:58 +01:00
JappaWakka
ac5fa28483 Added arg to force camera rotation (in 3rd person) 2022-11-02 11:49:46 +01:00
JappaWakka
9312aa18c3 Fix switch perspective with PreventMovement 2022-11-02 10:42:30 +01:00
JappaWakka
f5eff34304 Allow darker shading with different environments 2022-11-02 10:36:50 +01:00
JappaWakka
39d8e1b59f Also can't switch perspective with PreventMovement 2022-11-01 18:40:21 +01:00
JappaWakka
8f7c725b95 You can now scroll using the gamepad triggers 2022-11-01 17:37:38 +01:00
JappaWakka
b015a3632d Fix choosebox being too small in some cases 2022-10-18 17:02:24 +02:00
JappaWakka
b52e01e19a Fix tintower sage text outside of bounds 2022-10-18 16:58:17 +02:00
JappaWakka
afe35786a5 Fixed pokégear phone contacts overlapping text 2022-10-18 16:55:03 +02:00
JappaWakka
c6b3a97885 Fix trainers crashing when starting a battle 2022-10-18 16:54:38 +02:00
JappaWakka
37fd285ca4 Dynamic sizing of Poké sprites, needs test & fix 2022-10-18 16:05:36 +02:00
JappaWakka
3855f806bd Player is not transparent now when starting script 2022-10-18 16:04:26 +02:00
JappaWakka
b5282dd9f9 Made MagnetTrain jingle music instead of sfx + fix
Fixed timing on speedboatscene and magnettrain scripts
2022-10-18 16:03:52 +02:00
JappaWakka
57e145b668 Added argument to play a song that doesn't loop 2022-10-18 16:02:28 +02:00
JappaWakka
d74103073d Fixed alignment of egg data in summaryscreen 2022-10-17 12:20:04 +02:00
JappaWakka
33fa45afe6 Fixed dex entries for various Pokémon 2022-10-17 11:40:01 +02:00
JappaWakka
e9b4234add Fixed fogcolor based on lighting, not daytime 2022-10-16 20:31:07 +02:00
JappaWakka
69a9586f31 Corrected the transfer to pc message 2022-10-13 13:26:19 +02:00
JappaWakka
169ce4c709 Fixed collision detection bug 2022-10-13 13:26:01 +02:00
JappaWakka
7ca13b1a8d Fixed lightingtype 1 not disabling lighting 2022-10-08 20:36:59 +02:00
JappaWakka
683c21ba09 Made an exception to save disable rule 2022-10-06 21:24:18 +02:00
JappaWakka
470ccdff4f Another try at fixing waterfall bug 2022-10-02 12:50:34 +02:00
darkfire006
bbaeeaaa95 fix HP for Segis in-game 2022-10-01 23:09:44 -05:00
JappaWakka
269b7c3721 Fixed scriptblocks sometimes not executing 2022-10-01 12:44:42 +02:00
JappaWakka
dc38071637 Fixed egg sprites 2022-10-01 12:44:13 +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
d4d53ba0ea Fix disabled save message not appearing 2022-09-29 21:25:38 +02:00
JappaWakka
b14277a91d Added gamerule to disable saving the game 2022-09-29 20:36:09 +02:00
JappaWakka
d2d4736039 Corrected egg hatch message 2022-09-29 20:34:18 +02:00
JappaWakka
d2860b15a8 Models work better in battle now 2022-09-27 12:51:51 +02:00
JappaWakka
6bb3f596ca Level changing to wrong daytime fix 2022-09-22 18:47:57 +02:00
JappaWakka
62d4dc3523 Updated TeachMovesScreen (descr.)
Scaled and positioned Pokémon sprites correctly
Replaced Minifont with MainFont
Positioned text correctly and made the text on buttons turn from black to white if highlighted
2022-09-22 12:48:03 +02:00
JappaWakka
d84bec2fbf Updated Evolution screen scale and positioning
Also fixed minor grammar thing: a "pokemonname". I just remove the a.
2022-09-22 12:25:02 +02:00
JappaWakka
90a9f56a25 Fixed HatchEggScreen Pokémon sprite scale 2022-09-22 12:20:38 +02:00
JappaWakka
ff35093697 Fixed daytime resetting to wrong daytime 2022-09-22 12:14:20 +02:00
JappaWakka
f40413e4b2 Fixed bug related to water animations 2022-09-22 12:13:46 +02:00
JappaWakka
da2242b24b Water animations rotation can now also be vertical
Instead of putting all water textures next to each other, you can also put sequences of 3 textures below each other if you add a 1 to the end of the definition of the water texture in additional value.
2022-09-20 21:34:04 +02:00
JappaWakka
c695a8c57d Fixed attack description outside box & sfx no stop 2022-09-20 14:33:09 +02:00
JappaWakka
8a61b2ba14 Fix for unknown symbol in attack descriptions 2022-09-20 13:32:16 +02:00
JappaWakka
b392894461 Include BerryData.dat 2022-09-19 17:49:13 +02:00
JappaWakka
43bfc04eff GameModes can now have different BerryData 2022-09-19 17:48:36 +02:00
JappaWakka
f8b74bf86d Fix for wrong camera direction switch to 1stperson 2022-09-19 15:49:14 +02:00
JappaWakka
4785492836 AnimationBlocks now support SeasonTextures 2022-09-18 21:01:34 +02:00
Jasper "JappaWakka" Speelman
dba1e721d6 No view bobbing anymore when sliding on ice 2022-09-16 17:56:30 +02:00
Jasper "JappaWakka" Speelman
a4b88fb463 Fix typo 2022-09-16 17:07:23 +02:00
JappaWakka
397ae27832 Actually fixing aurora sky 2022-09-16 11:07:43 +02:00
JappaWakka
3f3836cb6f Probably fixing aurora sky 2022-09-16 11:06:20 +02:00
JappaWakka
b9a7183166 Typo fixes and incorrect comments 2022-09-15 21:12:12 +02:00
JappaWakka
5209a6e768 Fixes to scale and positioning of Pokémon sprites 2022-09-15 21:11:13 +02:00
JappaWakka
315c1063df Fix for Pokémon sprites not being copied to build 2022-09-14 14:22:30 +02:00
JappaWakka
95a88b5bc8 Fixed Johto_Rival_Intro song name so it works 2022-09-13 21:02:28 +02:00
JappaWakka
fd93f96cbc Rewrote a huge part of musicplayer, works now! 2022-09-13 21:01:55 +02:00
JappaWakka
0392d7f0fe Fixed ContentPack battle music bug 2022-09-13 10:51:06 +02:00
JappaWakka
24832a346b FrontBack sprites now 96x96 each and numbered 2022-09-10 21:08:21 +02:00
JappaWakka
4c92f343d7 Hopefully this'll fix some issues (description)
Pokémon without a CatchMethod or CatchLocation get defaulted to "Somehow obtained at" and "an unknown place" respectively.
2022-09-10 16:17:55 +02:00
JappaWakka
8f1eb6795f Fixed typo in daily login reward script 2022-09-10 16:15:17 +02:00
JappaWakka
d8d993959f Fix for Howl move description 2022-09-10 15:56:27 +02:00
JappaWakka
d3c7c07a18 Removed contentpath from GameMode selection 2022-09-07 21:26:57 +02:00
JappaWakka
3cd4b43c4b Contentpacks with fonts work better now! 2022-09-07 17:13:33 +02:00
JappaWakka
964fceda68 Improve bag pocket icons in textfont 2022-09-07 16:35:20 +02:00
JappaWakka
e37268ffb5 Fix for knockoff item dupe bug 2022-09-04 19:23:12 +02:00
JappaWakka
9c611b9339 Fixed shader entity daytime behaviour 2022-09-01 22:21:33 +02:00
JappaWakka
f9c2b98c30 Fix shellos & gastrodon form sprite names 2022-09-01 22:20:16 +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
darkfire006
45d168a2ba remove water from digletts cave battle maps 2022-08-28 22:24:05 -05:00
darkfire006
0fe37c71b6 fixing a potential scripting issue in farfestch'd 2022-08-28 20:20:54 -05:00
darkfire006
3dbede9988 allow fly in mt moon square 2022-08-28 18:05:27 -05:00
darkfire006
6d43b3f4ee wrong description 2022-08-28 18:05:18 -05:00
darkfire006
3e9f61470e typos and such in frontier trainers 2022-08-28 18:05:02 -05:00
darkfire006
c55e2b55eb fix typo in npc remove register 2022-08-28 17:50:27 -05:00
darkfire006
1f325a006b fix when it see the johto dex as full 2022-08-28 17:50:15 -05:00
darkfire006
0fb77176d5 fix math for what is today 2022-08-28 17:50:01 -05:00
darkfire006
b6ad6adffa random typo 2022-08-28 17:49:41 -05:00
darkfire006
01ef42930e updated various text 2022-08-28 17:33:30 -05:00
darkfire006
aef944812a outdated references in big mart 2022-08-28 17:19:01 -05:00
darkfire006
abdd6d5ce5 noballs guy can get ball now 2022-08-28 17:12:15 -05:00
darkfire006
09d55d58e3 move the NPC referencing the blue counter to goldenrod to reference the move deleter 2022-08-28 17:06:49 -05:00
JappaWakka
3d41783c71 Failsafe for Pokémon player texture 2022-08-28 14:29:09 +02:00
darkfire006
936368b322 fix static encounter legendaries 2022-08-25 01:12:33 -05:00
darkfire006
5614e05e4e replace random use age of different NPC skin names 2022-08-25 01:10:16 -05:00
darkfire006
8bf24306f6 she speaks if there is an egg 2022-08-23 01:19:39 -05:00
darkfire006
dbe22c3e17 fixed when used by opp it shows own as user 2022-08-23 01:09:42 -05:00
darkfire006
9d85a79f65 leech seed drains even if other pokemon is full 2022-08-23 01:01:59 -05:00
darkfire006
1e2af514b2 fix text wrapping 2022-08-23 00:30:37 -05:00
darkfire006
21937ffcf9 fix trainer files not properly completing the math for pokemon ID 2022-08-23 00:09:36 -05:00
darkfire006
0e32b45b6c allow white space before trainer scripts for insight detection 2022-08-23 00:08:55 -05:00
darkfire006
d4ad4e2e45 fix CC description 2022-08-23 00:08:05 -05:00
darkfire006
cbf3e2c30f Version 0.59.1 wrap up 2022-08-22 17:39:02 -05: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
cceea5684b Fix for ceruleandiglett 2022-08-21 10:46:23 +02:00
JappaWakka
531137c157 Fix softlock when pausing during catching
And a minor typo in the code
2022-08-18 14:55:52 +02:00
JappaWakka
00f78d5728 Fix camera position being wrong after magnettrain 2022-08-17 20:03:05 +02:00
JappaWakka
b14ce0a33f Fixed Lavender Town's sky 2022-08-17 18:30:55 +02:00
darkfire006
7a70bc7b4f randomly clean up 2 files 2022-08-16 22:05:28 -05:00
JappaWakka
208c1075e4 Fixed RegisterBattleScreen 2022-08-16 20:33:46 +02:00
JappaWakka
142f2b2899 Updated/Fixed Storage System Screen sprites/models 2022-08-16 20:23:48 +02:00
JappaWakka
27fa63bc7c Fixed battle model crash 2022-08-16 20:23:00 +02:00
JappaWakka
3c78459f7c Improved blizzard and thunderstorm weather skies 2022-08-16 19:02:02 +02:00
JappaWakka
73d079b26a Fixed missing line breaks in a script 2022-08-14 11:51:24 +02:00
JappaWakka
a97ec60082 Fixed pokemon icon size in Hall of Fame screen 2022-08-12 17:10:51 +02:00
JappaWakka
8b5f3f93b6 Fixed level up screen text position and icon scale 2022-08-12 10:48:54 +02:00
JappaWakka
f9a8c7fede Fixed catch location text cropping 2022-08-12 10:39:50 +02:00
JappaWakka
b42e69f736 Visual bugfixes (Pokémon front/back/menu sprites) 2022-08-11 21:21:27 +02:00
JappaWakka
92352bcf27 Fixed bug with wrong SFX paths
Causing ContentPacks to load slower
2022-08-11 21:19:59 +02:00
JappaWakka
5609143300 Pokémon front/back sprites can now have nr. name 2022-08-11 21:18:50 +02:00
JappaWakka
82c18f473a Fixed bug with contentpack sfx names (ToLower) 2022-08-10 19:48:38 +02:00
JappaWakka
d21f97c7b5 Various visual fixes
Fixed Pokémon icon size in various screens
Aligned the partially transparent black shape of the JoinServerScreen better
2022-08-09 20:13:03 +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
8bdb1e9858 Revert "Registers are now case insensitive"
This reverts commit f09cd7d644d87008d28ac878b856748eb496aa6f.
2022-08-09 10:34:44 -05:00
JappaWakka
860aed443a Gogoat cannot breed for v0.59.1 2022-08-07 17:30:52 +02:00
JappaWakka
4223dfaaea Genderless Pokémon can't give or get infatuation 2022-08-07 13:01:16 +02:00
darkfire006
7310e3cd13 Remove caps from registers
re Strength triggers and time registers
2022-08-06 21:49:50 -05:00
darkfire006
56908b35f9 just the script block fix without the other "fixes" 2022-08-06 21:48:57 -05:00
darkfire006
21bfdc2b74 Revert "Fix for softlock scriptblocks with strengthrocks"
This reverts commit 5003186b39b7d6c09942127574c64c34a6c66dfe.
2022-08-06 18:22:13 -05:00
JappaWakka
5003186b39 Fix for softlock scriptblocks with strengthrocks 2022-08-06 23:36:45 +02:00
JappaWakka
0fb4f51b07 Fix for localization 2022-08-06 20:15:21 +02:00
JappaWakka
d3de943dba Fix shiny menusprite offset 2022-08-01 19:23:38 +02:00
JappaWakka
9772dc452a Updated font and text positioning trainer card 2022-08-01 17:19:56 +02:00
JappaWakka
8a8e8fe8c3 Fixed MainMenu not resetting or applying Textures
After quitting a gamemode or after applying contentpacks
2022-08-01 17:19:23 +02:00
JappaWakka
3cab6f3b82 Now I really fixed the menu sprites 2022-08-01 13:08:17 +02:00
JappaWakka
0695ff6491 Fixed HatchEgg command adding 2 pokémon 2022-07-31 19:59:47 +02:00
JappaWakka
53c5d5ba5f Fixed Menu Icons 2022-07-31 19:50:29 +02:00
JappaWakka
b6bb46ba6e Fix hardcoded Pokémon Front, Back and Menu sprites 2022-07-31 19:35:26 +02:00
JappaWakka
6f5f992d6e Fix for softlock animations and tail whip crash 2022-07-24 15:16:16 +02:00
JappaWakka
eb69a8ee5b Maybe this'll prevent animatedblock crash 2022-07-24 10:45:18 +02:00
Jasper "JappaWakka" Speelman
2dd64aa7be Animatedblock faces camera if modelid = 3 2022-07-23 19:52:28 +02:00
Jasper "JappaWakka" Speelman
630f8d3b3a Fix for the duplicate wall entity in my office
Also made the pokémon shiny and adjusted the colors on the bowl
2022-07-23 16:44:34 +02:00
Jasper "JappaWakka" Speelman
7d55ca2c64 Fix for Invisible Pokémon in Battle
As well as some other fixes like the hit animation also working on models and making the timing more reliable
2022-07-23 16:41:00 +02:00
Jasper "JappaWakka" Speelman
9fa9f93659 Fixed Tepig and compressed OW sprites
Before: roughly 67 mb in total
After: roughly 8 mb in total
No quality loss
2022-07-23 15:31:24 +02:00
Jasper "JappaWakka" Speelman
cea7a5649d Fixed computer sound that didn't get played 2022-07-22 17:51:11 +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
Jasper "JappaWakka" Speelman
d1698db4ba Fix tokens not being reload after exiting gamemode 2022-07-22 14:46:18 +02:00
Jasper "JappaWakka" Speelman
724a4a642d Fixed music silence when no intro Content Packs 2022-07-22 13:54:23 +02:00
Jasper "JappaWakka" Speelman
cb7a7956ce Updated nuget packages 2022-07-22 13:34:32 +02:00
JappaWakka
31a1c3b6d5 Hopefully this'll prevent animatedblock crash 2022-07-21 10:11:24 +02:00
JappaWakka
f65f0e4f11 Updated PokéBall open sound 2022-07-19 14:51:11 +02:00
JappaWakka
bf544a5e25 Fixed stats animation, added Tail Whip animation 2022-07-19 12:03:13 +02:00
JappaWakka
e6a2f6eab8 Updates to animation system + rotating pokemon
Also made useful tweaks to how battleflipped works
2022-07-18 21:41:30 +02:00
JappaWakka
acbf4e1b5c Added Water Gun move animation 2022-07-18 13:33:31 +02:00
JappaWakka
f103caa5f2 Fixed Models not being affected by lighting 2022-07-16 14:48:29 +02:00
JappaWakka
b57ae43a3c Fixed Lighting colors one final time 2022-07-15 19:51:25 +02:00
darkfire006
9829321174 fixed rock in battle map 2022-07-15 00:30:50 -05:00
darkfire006
30a59646a8 fix wrong evolutions 2022-07-15 00:24:40 -05:00
JappaWakka
5d85c33910 Fixed Pokémon sprites possibly being wrong size 2022-07-14 19:32:23 +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
JappaWakka
c401b4f063 Recolored Vine Whip 2022-07-13 00:02:21 +02:00
darkfire006
a6070ea479 use correct shininess value for roaming mons 2022-07-12 09:14:11 -05:00
darkfire006
673472d424 make daycare cycles normal length again 2022-07-12 09:13:49 -05:00
darkfire006
672b256433 make suicune not always shiny 2022-07-12 09:13:28 -05:00
darkfire006
802e86685b remove second mewtwo battle 2022-07-12 09:13:16 -05:00
darkfire006
f12d68dc31 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2022-07-12 09:12:03 -05:00
JappaWakka
bd4f1154a1 Added Vine Whip animation, fixed 2 move animations
Fixed Scratch & Poison Sting
2022-07-12 11:37:18 +02:00
darkfire006
e6541748a0 remove extra terrain by the top of the pillar 2022-07-11 14:25:09 -05:00
darkfire006
d3f220c538 copy if newer for carkoal family sprites 2022-07-11 14:24:45 -05:00
darkfire006
3d75665bd0 fix r22-23 wild pokemon 2022-07-11 00:30:29 -05:00
darkfire006
64a7b1fab2 have headbutt trees and smash rocks use the spawner correctly to get forms 2022-07-10 18:19:10 -05:00
darkfire006
30a6d96ce7 Alolan Dugtrio should be part steel 2022-07-10 18:12:30 -05:00
JappaWakka
78585f9f35 Added Scripts to the project 2022-07-10 21:28:05 +02:00
JappaWakka
16e5b0d4cd Added Pokémon to my office in kolben tower 2022-07-10 20:59:43 +02:00
JappaWakka
960c82e940 Fixed audio settings reset in the in-game options 2022-07-10 10:26:36 +02:00
darkfire006
5c96afb81e fix mahogany shop lady stuff 2022-07-10 03:05:12 -05:00
darkfire006
95598623f6 fix alolan Muk causing a crash 2022-07-10 03:04:03 -05:00
darkfire006
4fc99fcce2 SPIN FUCKERS SPIN 2022-07-10 03:03:36 -05:00
darkfire006
7e409c40b9 Update Kungfu.dat
added received text to getting Tyrogue
2022-07-10 01:53:11 -05:00
darkfire006
d9745b2823 changed when no is selected 2022-07-10 01:52:48 -05:00
darkfire006
dbf7791b9e removed useless text 2022-07-10 01:48:29 -05:00
darkfire006
7a52195f86 fix the ladders appearance in all of the Mt Ember maps 2022-07-10 01:00:29 -05:00
darkfire006
b3bd01f783 remove collision on the ladder model so the bump nolonger sounds 2022-07-10 00:47:38 -05:00
darkfire006
6b727ca6bd Fix to player direction in M2 cuttscene 2022-07-10 00:26:48 -05:00
darkfire006
7782b244e0 remove useless items 2022-07-09 02:20:24 -05:00
darkfire006
7bff97b3f6 Update Daycare.vb
fix crash when breeding w no item
2022-07-08 16:23:51 -05:00
Jasper "JappaWakka" Speelman
c2d11aa340 Fixed Ember animation, added Scratch animation 2022-07-08 15:17:56 +02:00
Jasper "JappaWakka" Speelman
c5430db305 High DPI settings now supported 2022-07-08 14:08:39 +02:00
Jasper "JappaWakka" Speelman
0a75b36d15 Added Leer Animation 2022-07-08 13:41:23 +02:00
Jasper "JappaWakka" Speelman
ed4714710e Fixed incorrectly scaled icons in summaryscreen 2022-07-08 13:41:07 +02:00
Jasper "JappaWakka" Speelman
1d7897be82 Fixed poison animation 2022-07-08 12:21:32 +02:00
darkfire006
3345bf5ffc Engine changes to support Regional forms 2022-07-07 23:06:32 -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
JappaWakka
25173a22c4 Fixed OptionScreen auto-applying Audio settings 2022-07-06 21:26:13 +02:00
JappaWakka
ea0a6aca7b Fixed contentpack music not playing without intro 2022-07-06 18:24:03 +02:00
JappaWakka
018776a8de Fixed chat tabs mouse click position 2022-07-06 18:21:02 +02:00
darkfire006
6b602a01ba fix trainer data for alolan form users 2022-07-06 02:13:16 -05:00
darkfire006
071781268a remove extra alola tags 2022-07-06 01:53:07 -05:00
darkfire006
b7ba3f8498 alolan form data files 2022-07-05 23:52:41 -05:00
darkfire006
9c958fd1f0 special evo conditions for alolan forms 2022-07-05 23:50:03 -05: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
darkfire006
90e5345bd7 Add regional form tag to data files 2022-07-05 23:42:19 -05:00
darkfire006
50c8f9e3bd adjust sprite placement and mark for future 2022-07-05 23:41:27 -05:00
darkfire006
14c636cfa3 remove pal park 2022-07-05 23:41:01 -05:00
JappaWakka
9dd17a9c65 Fix slideblocks resetting player speed (descr.)
Fixed the following bug:

If the player runs up or down a slideblock, and then walk up or down another slideblock right after the movement script is finished, then the player will walk at regular speed.
2022-07-05 17:49:23 +02:00
darkfire006
b344879f20 fix all roaming mons being caterpie 2022-06-30 09:09:05 -05:00
darkfire006
913c53211c correct build stuff for new pokemon files 2022-06-30 00:21:50 -05:00
JappaWakka
3461b1f549 Battle poke switch - mouse support & cancel button 2022-06-26 21:23:28 +02:00
JappaWakka
04d9cce576 Removed unnecessary stuff from waterfall script 2022-06-26 21:02:33 +02:00
JappaWakka
76484c89b1 Fixed the fast forward/slower music bug 2022-06-26 20:21:10 +02:00
JappaWakka
322ca3e5c4 Fixed notification popup blocking pokégear 2022-06-26 20:20:37 +02:00
JappaWakka
7e5a433917 Various fixes for visual bugs 2022-06-26 19:59:12 +02:00
JappaWakka
ecbe8c5c92 Hopefully fix gts trading 2022-06-26 19:56:07 +02:00
JappaWakka
943bbd3ce3 Typo fix Recieved > Received 2022-06-26 19:53:35 +02:00
darkfire006
af62a74a9d 0.59 pre-release commit
update version, credits, and security numbers
2022-06-24 13:40:33 -05:00
JappaWakka
05774b29bd Fixed incorrect lighting texture and values 2022-06-22 21:04:03 +02:00
JappaWakka
9ff6e94a1f ContentPack fixes
* Fixed ContentPack menu crashing when trying to load more than 5 Content Packs
* Fixed Texture Replacements in exceptions.dat being ignored if not the same case
* Fixed minor visual bug in the Box screen where smaller textures would be scaled incorrectly
2022-06-22 21:02:11 +02:00
JappaWakka
a73bbee55b Revert "Revert "Fix for invisible ball in certain maps""
This reverts commit 49dd67c01289b6a347a6dc900ff76a3fd3da11d7.
2022-06-22 20:57:35 +02:00
JappaWakka
49dd67c012 Revert "Fix for invisible ball in certain maps"
This reverts commit 75bc2b7b7cc8b977399d88ed6be6f70d1d8284ca.
2022-06-22 18:12:25 +02:00
JappaWakka
75bc2b7b7c
Fix for invisible ball in certain maps 2022-06-22 11:15:53 +02:00
darkfire006
638de718ed fix new game end of intro and wrong default gamemode 2022-06-19 16:04:35 -05:00
JappaWakka
e6d106c839 Lighting colors and select menu audio bug fix 2022-06-19 22:31:50 +02:00
JappaWakka
0bf30358da Rival rename texture bug fix 2022-06-17 16:31:05 +02:00
JappaWakka
e60877d880 Now I definitely fixed waterfall bug 2022-06-14 19:48:18 +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
229816c698 Fix for violet city center bug 2022-06-11 15:11:44 +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
a8bc9f972f
Merge pull request #156 from P3D-Legacy/custommoves
Custom Moves Functionality
2022-06-10 22:06:48 +02:00
JappaWakka
747de3e221
Merge branch 'master' into custommoves 2022-06-10 10:26:10 +02:00
Jasper "JappaWakka" Speelman
790afcdbbc Made sure regular moves still work as expected 2022-06-10 10:13:23 +02:00
JappaWakka
a40a44181b Make gamemode moves actually work 2022-06-09 21:29:30 +02:00
JappaWakka
813992bf51 Fix positioning of values in move summary screen 2022-06-09 13:35:54 +02:00
JappaWakka
41615fb562 Fixed GameJolt save gender saving and loading bug 2022-06-09 11:13:50 +02:00
JappaWakka
c22f7d3894 If BattleAnimations = 0, skip catch animations 2022-06-06 15:00:18 +02:00
JappaWakka
9e67b5fc62 Fix for incorrectly placed burn animation 2022-06-06 14:59:13 +02:00
JappaWakka
9b3517f04e Fixed incorrect New Bark Town/Route 27 warps 2022-06-06 14:19:39 +02:00
JappaWakka
542acc3c3d Fixed bug with warpblocks not moving the player 2022-06-06 14:19:05 +02:00
JappaWakka
ff5ed455a4 Gamejolt save BattleStyle set to 1 by default
Like offline savegames
2022-06-06 13:53:21 +02:00
JappaWakka
7ac1e5b5fb Fixed locking movement with debugwalk key 2022-06-06 13:51:51 +02:00
JappaWakka
5399cadac2 Fix violet gym again 2022-06-06 12:26:53 +02:00
JappaWakka
eac10fbdb2 Fix for waterfall movement bug 2022-06-06 12:10:22 +02:00
darkfire006
a9432f0125 2 small map fixes 2022-06-05 21:35:54 -05:00
JappaWakka
2170db406b Added Mt. Silver Textures to the project 2022-06-04 19:28:48 +02:00
JappaWakka
cfb38a8975 Fix Mt. Silver model 2022-06-04 17:39:44 +02:00
JappaWakka
bc37be1374 Fix for menu screen crash 2022-06-04 16:12:03 +02:00
JappaWakka
537226be76 Map fixes and File Validation message fix 2022-06-04 15:12:29 +02:00
JappaWakka
0ab2493be1 Minor fixes
Added missing RunMode option in the gamejolt save
Fixed error in rewardssystem script
Fixed typo in soundmanager error
Fixed typo in messagebox file validation error
2022-06-04 11:04:00 +02:00
JappaWakka
caee81bc13 Possible fix for gj buttons mouse not working bug 2022-06-04 09:44:46 +02:00
darkfire006
8d822e410e y=0 fix button misselect 2022-06-03 16:10:22 -05:00
JappaWakka
d9426e43d2 Possible fix for mapscreen crash 2022-06-03 22:02:44 +02:00
JappaWakka
a7b834d72b Fix for texture bug in trainer card screen 2022-06-03 21:25:30 +02:00
JappaWakka
e0d81272e2 Forgot to change this number 2022-06-03 20:41:08 +02:00
JappaWakka
0f0ad57a4f Fix for gamejolt profile buttons 2022-06-03 20:38:45 +02:00
JappaWakka
05a5fcac47 Added scripts for bookshelves in my office 2022-06-02 19:59:52 +02:00
JappaWakka
bcdfd38ff9 Added scripts for my office in kolben tower
Posters and my dialogue
2022-06-02 16:41:55 +02:00
JappaWakka
80432aea46 Fixed bug with localization tokens (description)
When returning to the main menu, the localization tokens were not getting reset to their default values.
2022-06-02 16:02:54 +02:00
JappaWakka
a745630c73 Fix for party screen bug (read description)
Fixed bug in the Party Screen where the Pokémon icons were covered by selection boxes
2022-06-02 13:05:08 +02:00
JappaWakka
0a47307a7c Fixed missing characters in fonts, aligned text
When renaming a pokémon, the input box and the header text messages were off-center so I fixed that
Added some missing characters to the fonts, including the male and female symbols
2022-06-02 12:58:54 +02:00
darkfire006
f3b1face86 make the diagonal walls not upside down for no reason.... 2022-05-31 19:29:08 -05:00
JappaWakka
1d4c15475e Fixed bug in old NewGame Intro with name input 2022-05-31 21:03:13 +02:00
JappaWakka
c92810777e Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2022-05-31 21:01:14 +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
ab66ddaf7c
Corrected some more tokens 2022-05-28 21:25:34 +02:00
JappaWakka
06762018c8
Corrected some tokens 2022-05-28 21:17:13 +02:00
JappaWakka
5c065f7ed4
Removed incorrectly placed space 2022-05-28 21:14:48 +02:00
Daniel S. Billing
4a141dd86b Revert "Removed dupe line"
This reverts commit 1f060d596d87474b28f2297f88d5725bd7448dbb.
2022-05-28 20:41:09 +02:00
Daniel S. Billing
1f060d596d
Removed dupe line
a6713d0c4d8c33e2efbb9739b59181ffa3bca482
2022-05-28 20:26:18 +02:00
JappaWakka
d84f2c81e0
Alphabet in Dutch is with a f not a ph 2022-05-28 20:03:14 +02:00
JappaWakka
781d27f916
Changed team rocket HQ token 2022-05-28 19:58:32 +02:00
JappaWakka
0c351f6bea
Fixed minor error in Dutch tokens 2022-05-28 19:40:25 +02:00
JappaWakka
5177d6c3f9 Fix for duplicate offsetmap bug 2022-05-25 20:28:08 +02:00
darkfire006
9b0b01deb3 move items around for PB and BA 2022-05-24 20:43:00 -05:00
darkfire006
30b069ec9d Peat Block and Black Augurite Sprites 2022-05-24 20:42:24 -05:00
darkfire006
2d59c95cdc add items to new areas 2022-05-24 18:04:37 -05:00
JappaWakka
9d4dd3b6a0 Trash & Clock Scripts Kolben Jappa 2022-05-24 23:29:30 +02:00
JappaWakka
119ba41489 Jappa talk script in Kolben Tower 2022-05-24 23:21:30 +02:00
JappaWakka
c1759499e4 Fixed the bug in the description
If you use the @environment.setdaytime(int) command and go back to the main menu, the daytime does not change reset to the system time, causing the main menu to show the wrong background color (e.g. Morning while it is evening)
2022-05-24 22:20:58 +02:00
JappaWakka
40b9dc002a Updated fonts to support russian and norwegian 2022-05-23 22:52:26 +02:00
JappaWakka
455ff447d2 Fixed "No Texture" bug when using Fly 2022-05-23 17:20:27 +02:00
JappaWakka
15aa587cdf My office map done, still needs scripts 2022-05-21 21:08:20 +02:00
JappaWakka
d30f6cca27 Updated Pokédex screen 2022-05-21 21:06:21 +02:00
Jasper "JappaWakka" Speelman
ae37c3a083 Pokédex needs some work, not done yet 2022-05-14 19:11:35 +02:00
Jasper "JappaWakka" Speelman
3b77f75541 Fixed summaryscreen 2022-05-14 19:11:08 +02:00
Jasper "JappaWakka" Speelman
a7045ea517 Disabled scaling on some menus to prevent issues
for now
2022-05-14 16:26:42 +02:00
Jasper "JappaWakka" Speelman
4d36a5851b Only allow switching when round is over
Also fixed minor error with items in battle
2022-05-14 16:07:32 +02:00
Jasper "JappaWakka" Speelman
2153f34aa0 Pause screen scales with window size 2022-05-14 15:03:12 +02:00
Jasper "JappaWakka" Speelman
6810a35dfd Shaders now independent of daytime 2022-05-14 14:45:01 +02:00
Jasper "JappaWakka" Speelman
922502fc40 ChooseBox dynamically scales to the content 2022-05-14 14:20:47 +02:00
darkfire006
cff621337f Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2022-05-13 23:10:00 -05:00
JappaWakka
8160838230
Merge pull request #64 from JappaWakkaP3D/permanent_item_loss_fix
Permanent item loss caused by attacks fix
2022-05-13 23:49:52 +02:00
darkfire006
1cc404497b small adjustments 2022-05-10 00:07:51 -05:00
darkfire006
b05c3b6f7e minor adjustments 2022-05-09 12:14:04 -05:00
darkfire006
a6c3478da1 minor adjustments 2022-05-08 02:03:00 -05:00
darkfire006
78f9e9e4c7 more for the optional param 2022-05-08 02:02:47 -05: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
darkfire006
114a73168a small fixes and adjustments 2022-05-07 19:35:45 -05:00
darkfire006
556a765361 add items, no sprites set yet 2022-05-07 19:35:14 -05:00
darkfire006
a5d50bd8a9 item plurals 2022-05-06 17:45:59 -05:00
darkfire006
037f68bb5a replace language names with the non english versions 2022-05-06 17:07:25 -05:00
darkfire006
db43ff58b7 diamond dive music changed 2022-05-06 17:06:52 -05:00
Jasper "JappaWakka" Speelman
8e2c45d78f Fixed Tar Shot crash + added message 2022-05-06 23:04:29 +02:00
Jasper "JappaWakka" Speelman
f18dc03c4c Contentpack info out of bounds fix 2022-05-06 22:45:13 +02:00
Jasper "JappaWakka" Speelman
f5e5343b07 Fixed Celadon fountain 2022-05-06 22:29:15 +02:00
Jasper "JappaWakka" Speelman
a0b2626523 Fix for animatedblock crash 2022-05-06 22:10:16 +02:00
darkfire006
839f5ac8b4 small fixes and adjustments to item locations and ratios 2022-05-05 13:15:49 -05:00
darkfire006
c24c7fe80a more small sevii adjustments 2022-05-02 12:00:52 -05:00
darkfire006
7a44cab3e1 make the door not open by default. 2022-05-01 21:50:47 -05:00
darkfire006
318bd4d0dd rename Trainer Tower exterior to Tower Straits 2022-05-01 20:29:02 -05:00
darkfire006
d71a52a6bd quest island minor adjustments 2022-05-01 20:28:39 -05:00
darkfire006
06bab388a0 fix walking pattern 2022-05-01 13:58:29 -05:00
darkfire006
679b738b28 fix battle map mountain placement 2022-05-01 13:43:43 -05:00
JappaWakka
cb9e810b9d Pokémon rename after catch fix + select menu fix 2022-04-29 21:14:06 +02:00
darkfire006
ebcdc26092 small adjustments to floe and chrono islands 2022-04-28 12:25:21 -05:00
darkfire006
7ce9f8d1f0 small tweaks to items and wild and trainer pokemon on the first three sevii islands 2022-04-26 10:15:57 -05:00
darkfire006
0df11f4611 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2022-04-25 14:03:35 -05:00
darkfire006
9143c29bea snow adjustments 2022-04-25 14:03:32 -05:00
JappaWakka
fe9d48b55b Slight tweak to catch animation 2022-04-25 20:39:57 +02:00
darkfire006
2721c90e3e map gap 2022-04-25 13:18:58 -05:00
JappaWakka
e47581df69 Battle Pokémon models are now placed in subfolder 2022-04-25 18:44:36 +02:00
JappaWakka
24a6b77a1c Most of the animations work again 2022-04-25 18:44:05 +02:00
darkfire006
398574c1ab can now check PC for your Daily Rewards status. 2022-04-24 23:54:49 -05:00
darkfire006
972228dfe9 updated glass in Kolben Tower 2022-04-24 19:29:44 -05:00
darkfire006
8572270aa0 updates to reward system for the pokemon 2022-04-24 18:31:28 -05:00
darkfire006
5a9fd6eded allow for incomplete data strings for pokemon
checks for EXP, Atks, IVs, Ability, Nature, Gender, Friendship and Shiny, presets OT and Catch trainer to player and catch ball to pokeball before processing tags to load over them
2022-04-24 17:47:40 -05:00
darkfire006
024306c62b prevent using shiny candy on a shiny 2022-04-24 16:12:55 -05:00
JappaWakka
b1b98d0fbf Added voxel model of Kolben Tower 2022-04-24 20:44:33 +02:00
darkfire006
6bdcfe5d26 small QA fixes 2022-04-23 14:41:51 -05:00
JappaWakka
c7a9e7c4df Fix for scriptblock rotation bug 2022-04-23 18:50:10 +02:00
JappaWakka
8de43d7b1d Fix for Healing Table crashes 2022-04-23 18:49:05 +02:00
JappaWakka
cf0bb03e10 Fix for BattleCatchScreen crash 2022-04-22 21:56:25 +02:00
darkfire006
409fa3f300 fixes from QA 2022-04-19 15:00:18 -05:00
darkfire006
dca534b5ef fix speed boat positioning 2022-04-19 14:59:58 -05:00
JappaWakka
797cd45085 Battle related music bugs fix 2022-04-19 18:13:18 +02:00
JappaWakka
a017bb653d Added option for running hold/toggle mode 2022-04-19 12:05:00 +02:00
JappaWakka
87210c3ed6 Fix for run speed also being used for surfing 2022-04-19 11:49:17 +02:00
darkfire006
0ebc5d6ffd fix shiny tepig 2022-04-18 10:52:15 -05:00
darkfire006
6c0891484b various dex fixes 2022-04-18 10:31:52 -05:00
darkfire006
61f33a71d0 remove snow from hidden tiles 2022-04-18 10:19:09 -05:00
darkfire006
e87da88232 remove extra water tiles to prevent double walking 2022-04-18 10:18:58 -05:00
darkfire006
90f3d2666a move Mt Silver model backwards abit to fit better 2022-04-17 20:08:21 -05:00
darkfire006
8a438c2895 diancie and hoopa cries 2022-04-17 18:01:22 -05:00
darkfire006
8e7c300b7b clean up pokecenters 2022-04-17 17:35:55 -05:00
darkfire006
4a079ad452 move the right side pokeballs to the correct relative location 2022-04-17 17:25:02 -05:00
darkfire006
444b46ad56 money mistake for 2 trainers 2022-04-17 17:23:37 -05:00
JappaWakka
cb4ae0c3a3 Tar Shot secondary effect added
Added the second effect of Tar Shot (which is doubling the effectiveness of fire type moves on the opponent of the attacker)
2022-04-17 16:56:57 +02:00
darkfire006
052f97a873 Added Diancite to map 2022-04-16 22:36:55 -05:00
darkfire006
34360c0085 battle maps and some small clean up 2022-04-16 22:27:27 -05:00
JappaWakka
a00a97412b Fixed Save Screen font, scale & Pokémon icons 2022-04-16 20:17:09 +02:00
JappaWakka
fa2b239bf2 Unshortened floor names in Kolben Tower
Also fixed typo in map file
2022-04-16 18:27:19 +02:00
JappaWakka
384c485ba5 Fix for invisible sky when graphicstyle = fast 2022-04-16 18:25:27 +02:00
JappaWakka
e187747ef8 Party display improvements
* Positions and rotation origins of Pokémon icons improved in Party Screen
* Pokémon in Main Menu now display their correct form (e.g. Unown showing the correct letter)
2022-04-16 18:24:26 +02:00
JappaWakka
5cda771e81 Fix for animations not updating while pausing 2022-04-16 18:20:53 +02:00
JappaWakka
ea0ab80ba6 Water animation improvements
* Added the ability for contentpacks to change the animation speed of water
* Water backdrops are synced to the current map's water animation speed
2022-04-16 18:19:27 +02:00
JappaWakka
249a93bc3f Better implementation of the ChooseBox texture 2022-04-16 14:35:35 +02:00
JappaWakka
9058caa13a Halved the sky background rotation speed 2022-04-16 10:59:07 +02:00
darkfire006
154dc15b02 Mod Falker in Kolben Tower 2022-04-15 15:25:24 -05:00
JappaWakka
05a0607163 Fixed missing Nurse Joy & Chansey in KolbenTower 2022-04-15 20:57:54 +02:00
darkfire006
3a483d4fed remove random red pixel from S-Emboar 2022-04-15 13:43:25 -05:00
darkfire006
f99749b2ac one more slight daniel fix 2022-04-15 13:14:14 -05:00
darkfire006
aeec89cbb4 slight fix to daniel 2022-04-15 13:08:26 -05:00
Daniel S. Billing
95f9c697d3 Updated Daniel NPC 2022-04-15 20:05:34 +02:00
Daniel S. Billing
24a2233be7 Updated Target Framework Version of .NET to 4.8 2022-04-15 19:13:17 +02:00
darkfire006
93d445a4d9 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2022-04-15 10:55:41 -05:00
darkfire006
cc5bacc7bb Made Jappa's office, he will add his own stuff next 2022-04-15 10:55:27 -05:00
Daniel S. Billing
e4db4b6751 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2022-04-15 17:40:35 +02:00
Daniel S. Billing
0dff5f11b3 Add trainer battle to Daniel 2022-04-15 17:40:33 +02:00
JappaWakka
35ff0a601d Fix for NewGame camera updating bug 2022-04-15 16:34:55 +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
darkfire006
8dd62e545d remove redundant long forms and fix duplicated lines in notif. 2022-04-14 22:57:36 -05:00
Daniel S. Billing
8b788ab89d Adjusted the buttons on the Game Jolt login to fit the font 2022-04-14 23:11:22 +02:00
Daniel S. Billing
ed6b2e2256 Updated screens in the server room
* Updated all of the screens in the server room with same size and proper borders
2022-04-14 23:04:41 +02:00
Daniel S. Billing
adf1d62c28 Update website.png 2022-04-14 22:20:24 +02:00
Jasper "JappaWakka" Speelman
5a91f9f0a7 Options Screen and Pause Screen improved
* When a button is selected in the pause screen, the font now becomes white with a black shadow
* Cursor movement and scroll bar usage bugs fixed
2022-04-14 20:16:29 +02:00
Jasper "JappaWakka" Speelman
8f00719cbd Tokens adjusted 2022-04-14 20:14:54 +02:00
Jasper "JappaWakka" Speelman
d934a947aa Battle Updates
* Shift Battlestyle Implemented
* Bugs related to switching Pokémon with Battle Animations off fixed
2022-04-14 20:14:35 +02:00
Jasper "JappaWakka" Speelman
e7d20185f3 Replaced JappaWakka & GoldRetro OW Sprites 2022-04-14 15:04:47 +02:00
darkfire006
8f2bf06fc5 various move ability and pokemon data fixes 2022-04-13 19:09:10 -05:00
darkfire006
dff1144626 remove extra map file 2022-04-11 23:31:13 -05:00
Jasper "JappaWakka" Speelman
52dfc1bfa3 Make Model ID 5 + 6 visible on minimap 2022-04-11 21:08:45 +02:00
Jasper "JappaWakka" Speelman
d85e650f14 Updated StatisticsScreen & PokegearScreen
[StatisticsScreen]
* Properly scaled and positioned text and item icons

[PokegearScreen]
* Replaced Minifont with Mainfont
* Made switching tabs in the PSS menu more clear and controlable with the mouse
2022-04-11 20:44:33 +02:00
darkfire006
3563fffb2b Revert "exposed the canbreed property in pokemon save data"
This reverts commit 0dac5afee0ff6187cc82e27473498a7bfe7148b6.
2022-04-11 13:34:03 -05:00
Jasper "JappaWakka" Speelman
b3b46e97ac Made button text color white if selected 2022-04-11 20:02:16 +02:00
Jasper "JappaWakka" Speelman
4241ec7bbb Fixed following pokémon wrong interaction reaction 2022-04-11 17:18:41 +02:00
Jasper "JappaWakka" Speelman
a55549465d Added Map Path to DebugDisplay 2022-04-11 16:33:05 +02:00
darkfire006
a9a03bae69 Route 49-50 trainers
8 trainers + soon...
2022-04-10 23:34:52 -05:00
darkfire006
2e15414d99 updated world maps with player position tag and other minor changes 2022-04-10 18:58:21 -05:00
darkfire006
b8b0371d10 fix desk for badge 2 badge check 2022-04-10 16:42:48 -05:00
darkfire006
469cb6255d slight change to encounters in dark cave 2022-04-10 16:42:10 -05:00
darkfire006
0e3c618de2 updated johto dex with new pokemon 2022-04-10 16:41:44 -05:00
darkfire006
0dac5afee0 exposed the canbreed property in pokemon save data 2022-04-10 16:41:15 -05:00
darkfire006
5509e942cf out warp ddive 2022-04-10 16:39:59 -05:00
darkfire006
4668c2a5a8 DDive interior-exterior warps 2022-04-10 16:39:24 -05:00
Jasper "JappaWakka" Speelman
cd9474ac5c Fixed WorldMap PlayerSkin bug when surf or ride 2022-04-10 19:19:54 +02:00
Jasper "JappaWakka" Speelman
53d9823387 Added PlayerPosition tag to Map Screen 2022-04-10 19:12:30 +02:00
Jasper "JappaWakka" Speelman
044a3d2489 Prevent mapscreen playerskin from getting too big
If playerskin on mapscreen > 32px wide then halve the skin size to prevent it from getting too big on the map
2022-04-09 22:18:06 +02:00
Jasper "JappaWakka" Speelman
b28dbf6212 Playerskin is now visible on map screen 2022-04-09 22:09:39 +02:00
Jasper "JappaWakka" Speelman
56527e85c0 Fix for battlemusic playing after end battle 2022-04-09 22:08:52 +02:00
Jasper "JappaWakka" Speelman
2efdad493a Interface colors modifiable using ContentPacks 2022-04-09 10:56:22 +02:00
darkfire006
97f24399c9 Finalized daily Rewards 2022-04-09 00:05:11 -05:00
darkfire006
09b6970aa3 Script Diancie and add intro man 2022-04-08 23:06:03 -05:00
darkfire006
45f2082347 Wild Pokemon for diamond dive and new routes including 5 new mons 2022-04-08 22:07:25 -05:00
Jasper "JappaWakka" Speelman
bda6f66423 Potential debugwalk fix for rockclimbing 2022-04-08 12:16:07 +02:00
darkfire006
174fa3c634 Diamon Dive exterior maps and connections
FINALLY!!!
2022-04-08 00:05:38 -05:00
Jasper "JappaWakka" Speelman
da37889650 Fix for clipping clouds 2022-04-07 21:21:23 +02:00
Jasper "JappaWakka" Speelman
e62c49b7bb Potential bugfix for 2x debug move on water 2022-04-07 12:01:32 +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
7a049012ef Replaced S.S. Aqua with voxel model
Adjusted scripts to make it look like you actually walk through the entrance of the ship.
Also fixed the scale and position of the boat models in the Kolben tower basement.
2022-04-04 18:59:58 +02:00
Jasper "JappaWakka" Speelman
11a8b632d0 Fixed going up slideblocks speed 2022-04-03 21:04:25 +02:00
Daniel S. Billing
5e9ed79196
Update CODE_OF_CONDUCT.md 2022-04-02 22:43:45 +02:00
Daniel S. Billing
0bd68da4c0
Create CODE_OF_CONDUCT.md 2022-04-02 22:39:25 +02:00
Daniel S. Billing
fc25bfc245
Update README.md 2022-04-02 19:54:55 +02:00
JappaWakka
988d54d1a6 Possible fix for escape button inputfield crash 2022-03-31 21:14:42 +02:00
JappaWakka
2bdd3a3468 GameMode Attack functionality update
* Fixed bug with GameModeAttackLoader not loading the right path
* Added functionality for custom moves to change the camera angle
* Added functionality for custom moves to faint a pokémon
2022-03-29 18:58:35 +02:00
JappaWakka
cc4203b150 Made the 3d intro screen auto-load custom moves
Just like the old 2d intro screen
2022-03-29 18:58:34 +02:00
JappaWakka
dc5b439baf Made it possible for custom moves to end a battle
Also made the text message MoveHitsFunction only appear if there's a message to display.
2022-03-29 18:58:34 +02:00
JappaWakka
4cca56097e MoveHits effects added
Effects added: message, drainhp, gainhp
Status effect now have a second argument (separated with a ",") to define the chance (integer between 0 and 100)
Also fixed Freeze effect, which used to execute a Burn effect instead.
2022-03-29 18:58:34 +02:00
JappaWakka
d96fdbd80a
Fixed bug with battle intro music 2022-03-26 11:43:38 +01:00
JappaWakka
219b88829b Made Lavender Town always night instead of dark 2022-02-28 20:55:23 +01: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
093ec3c0dd Undo changes to maps by battleanimations branch 2022-02-27 16:24:03 +01:00
JappaWakka
c15a9c13bd
Corrected spelling error in Dutch localization 2022-02-23 13:01:22 +01:00
JappaWakka
c23c5a244e Merge branch 'BattleAnimations' 2022-02-22 13:10:43 +01:00
Daniel S. Billing
de92845ced
Merge pull request #82 from eldiosx/patch-3
Create Tokens_es.dat
2022-02-22 12:41:12 +01:00
Daniel S. Billing
29148b7937 Revert "Merge pull request #81 from eldiosx/patch-2"
This reverts commit 0fc037d03a0c69c9cff0a9119a825d5e724aff7a, reversing
changes made to 2bb8d4fa5cc5710de4a277242cdb9ca5564ae974.
2022-02-22 12:40:39 +01:00
Daniel S. Billing
0fc037d03a
Merge pull request #81 from eldiosx/patch-2
Update and rename Tokens_en.dat to Tokens_es.dat
2022-02-22 11:04:47 +01:00
Daniel Delgado Jiménez
185852d934
Create Tokens_es.dat 2022-02-21 23:36:45 +01:00
Daniel Delgado Jiménez
cde0854356
Update and rename Tokens_en.dat to Tokens_es.dat 2022-02-21 23:35:30 +01:00
darkfire006
2bb8d4fa5c add APC to the credit TXT 2022-02-18 11:12:13 -06:00
darkfire006
e01615e256 add APC for modeling work 2022-02-18 11:11:02 -06:00
Jasper "JappaWakka" Speelman
36539025ca Added voxel truck model 2022-02-18 17:16:14 +01:00
JappaWakka
c78527840c Actually add the Token files and JappaWakka sprite 2022-02-17 23:03:32 +01:00
JappaWakka
55a221667e Added dev member overworld texture for JappaWakka 2022-02-17 22:50:39 +01:00
JappaWakka
7f4377986f Removed duplicate english localization tokens 2022-02-17 22:49:29 +01:00
JappaWakka
0e0113afc4 Added Dutch Localization Tokens 2022-02-17 22:48:59 +01:00
JappaWakka
6eebe60f0c Replaced Snorlax's colors with hgss colors 2022-02-17 14:38:59 +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
0c7600e4f4 Added Voxel Snorlax models. Adjusted Scale 2022-02-17 13:33:04 +01:00
JappaWakka
eea9d543be Improved NewGameScreen and NewNewGameScreen
Ported skin selection and naming screens from 3d newgame intro to 2d newgame intro and made sure that there are no bad symbols in the foldernames.
2022-02-16 21:47:00 +01:00
JappaWakka
bbfc4acdd8 Fixed Some Bugs
* Skin genders in the new game intro now grab the correct localization string
* Badges rotate around the center of their texture's width and height, which fixes the bug where the badges would rotate off-center when the texture resolution was different.
* The selected button background color in the GameMode selection screen is now light and the unselected buttons are dark instead of the other way around.
2022-02-14 19:28:21 +01:00
JappaWakka
e162f84e78 Added Voxel Boat model 2022-02-14 17:30:39 +01:00
JappaWakka
e4eee9f090 ContentPack Information Menu Tweaks
The title box is now dynamic in width so the name of the contentpack can be larger.
The information box under that is now properly aligned and has a more pleasant size to match the new font.
2022-02-14 11:30:20 +01:00
JappaWakka
80ac6e8cec Fixed ceiling and table errors in Elm's Lab and Player House's Livingroom 2022-02-10 00:10:22 +01:00
JappaWakka
52b3354dd0 Removed ContentPack auto-generated "Content" field to allow for the description to be larger. 2022-02-09 21:51:12 +01:00
JappaWakka
575b48de04 Make it possible for the scale factor to be a Single instead of always an Integer. 2022-02-09 21:49:54 +01:00
JappaWakka
86ef705fa5 Improved ferry ship model and texture 2022-02-07 16:18:07 +01:00
JappaWakka
cd5a94df07
Updated gym sign 2022-02-05 10:32:23 +01:00
Jasper "JappaWakka" Speelman
dde6cb5c34 Removed unneccessary item use sounds 2022-02-05 10:28:48 +01:00
JappaWakka
1efdcb7517 Map cleanup & Cerulean Cave ceilings added
Cleaned up
* Player's house - Livingroom & Bedroom
* Elm's Lab
* Violet City Gym + Battlemap

Cerulean Cave ceilings added to all floors
2022-02-03 22:57:48 +01:00
JappaWakka
13c838c9aa Actually saved the WallModel file 2022-02-03 22:31:11 +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
1d4087aa2a Fixed music crashes
* Fixed crash when trying to play an intro of a battle song that wasn't an ogg
* Fixed crash when trying to resume the music after using the command @music.stop
2022-02-03 22:20:43 +01:00
JappaWakka
fbba01d0c4 Added WallModel (ModelID=20) & CeilingModel (ModelID= 21) 2022-02-03 22:18:04 +01:00
JappaWakka
5c9a5e6644 Fix for the ceiling glitching 2022-01-31 20:09:25 +01:00
JappaWakka
313fb999cb Bugfixes
Fixed:
- Regular toxic animation (initial move) only has 1 bubble instead of 3
- Issue with Zoom in screen when status effect occurs (from opposing pokemon) instead focuses on player pokemon
2022-01-29 00:10:47 +01:00
JappaWakka
e1f20d7c63 Improved and optimized Violet City gym maps (Regular & Battle) 2022-01-29 00:08:12 +01:00
JappaWakka
54ea0e57ba Added WallModel (ModelID=20) which is a flat vertical surface on an offset (like a wall) 2022-01-29 00:06:58 +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
14d4bc5ea2 Improved the cursor positioning in the ingame menu 2022-01-16 17:26:58 +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
7555a5e903 Battle fixes and improvements
* Fixed camera angle not changing to the Pokémon when status effects are doing something
* Fixed softlock when opponent trainer switches Pokémon
* (Hopefully) fixed initial positioning errors with spawned BattleAnimation entities related to BattleFlip functionality
* Removed the now unneccessary BattleFlip checks in the move animation of Growl
* Improved Ember move animation (fireball speed & flame delay)
* Improved Poison Sting move animation by making the stinger smaller, increasing the speed of the stinger and making it use a flipped version of the texture when the opponent uses the move
* Improved Poisoned status effect animation by making it 1 bubble for regular poison and 3 bubbles for toxic
* Repositioned the flame of the Burned status effect animation
* Trainers now display a message when sending out their Pokémon (I removed that before)
* Fixed Party Screen not appearing immediately after the player's Pokémon fainted and also made the player unable to exit the Party Screen when that happens.
* Fixed the incorrectly scaled font sizes and text alignment in the selection menu that appears when selecting a Pokémon in the Party screen
* Replaced minifont in the Pokémon level up stats box with InGameFont and fixed the offsets
* Fixed the error I made in the ceiling map code of Violet City's gym
* Removed the file MoveAnimationQueryObject.vb because AnimationQueryObject.vb also includes Move Animations
* Fixed the textbox in battles where an empty rectangle would appear before the animation finished.
* When a trainer spots the player and an exclamation mark bubble pops up above their head, a sound is played (Emote_Exclamation)
* In trainer battles, the player's Pokémon now also plays their cry.
2022-01-16 17:22:36 +01:00
JappaWakka
667671e16f Battle Bugfixes
Fixed buggy throwing animation of the opponent trainer
Fixed a bug related to the trainer sprite in the vs trainer intro that made the trainer texture buggy if it wasn't 32x32
2022-01-10 20:45:28 +01:00
JappaWakka
5b7a6fc9ab Fixed Overworld Pokémon texture animations
Pokémon textures with 3 and 4 frames work better now
When the player is running, the Pokémon animates faster
When a (network) player is standing still, the Pokémon animates slower (unless the Pokémon texture has 4 frames, then it stops at the first frame)
Cleaned up the code a little
2022-01-08 18:00:05 +01:00
JappaWakka
c116f30c6b Added Battle Animation for attack Clamp 2022-01-08 17:36:57 +01:00
JappaWakka
6391851597 Improved Wrap & Bind animations, fixed some errors in the Bind animation 2022-01-07 19:27:05 +01:00
JappaWakka
65887946d5 Attract, Bind, Wrap, Infatuated Animations
Added animation for attacks Attract & Bind, updated animation of attacks Wrap, added animation for status Infatuated
2022-01-07 16:30:03 +01:00
JappaWakka
047d52832d Fixed errors in drawing the chat screen, made categorie tabs dynamically scaleable 2022-01-07 14:29:17 +01:00
JappaWakka
e892977d70 Added Bind animation & Fixed scaling animation anchor functionality 2022-01-07 14:25:57 +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
6681a75601 Whirlpool animation now uses 1.5 * MathHelper.PI instead of 4.71F 2022-01-06 12:31:46 +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 38f2f0c0f4ea708cb0d35c6aac87ff378ca13aa7.
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
35aa80b072 Improved Whirlpool Animation + Fixed BattleAnimations drawn behind Pokémon 2021-12-30 21:53:57 +01:00
JappaWakka
31e00f72d6 Directional light color at night is now neutral and more subtle 2021-12-30 21:53:17 +01:00
JappaWakkaP3D
312e3ed934 Added Wrap & Whirlpool Animations 2021-12-28 17:35:28 +01:00
JappaWakkaP3D
92fafb2d63 Fix Pound sound effect pointing towards the wrong location 2021-12-28 17:35:02 +01:00
JappaWakkaP3D
9468900f9b Removed Attack textures that will never be used 2021-12-28 17:34:19 +01:00
JappaWakkaP3D
f5941a79bc Fixed a bug in the option menu (see description)
BUG: If you go to the contentpack options menu in the main menu, then exit out of it and start the a save file, the ingame options menu still displays the contentpack menu
2021-12-28 13:56:53 +01:00
JappaWakkaP3D
f1ccba7e45 Improved Mega Evolution animation and slightly tweaked the speed of some of the battle intros
Battle intros need testing still
2021-12-28 13:55:30 +01:00
JappaWakkaP3D
6dcb11c775 Mega Evolution Animation - Attempt 1 2021-12-20 20:14:26 +01:00
darkfire006
49824d8b69 GJ IDs for newest trophies 2021-12-14 16:33:16 -06:00
JappaWakkaP3D
bf887b0e3a Fixed Bug: When the lead Pokémon faints and you switch to a different Pokémon, when the battle ends, your current Pokémon disappears 2021-12-14 22:11:11 +01:00
darkfire006
9916e8f57a change height of the mqueen to move to fix incosistancies 2021-12-03 22:46:19 -06:00
JappaWakkaP3D
93f1228eb2 Possible animation fixes
* Confusion ducks are smaller and they should rotate slower now.
* Fixed the Stat Raise animation from using the wrong destination coordinates.
* Attempted to center the frozen animation more.
* Added the frozen animation to the other place where it was needed.
2021-12-03 18:37:19 +01:00
JappaWakkaP3D
c85ccd89ae Added Frozen animation and Infatuated sound effect 2021-12-03 16:01:54 +01:00
JappaWakkaP3D
b0c4ade6b1 Add the new textures and sounds to the project solution 2021-11-28 12:13:09 +01:00
JappaWakkaP3D
1ea2da7bb7 Added Asleep animation, fixed some code errors I made. Also added sound effects when animations are disabled. 2021-11-28 11:03:55 +01:00
JappaWakkaP3D
8bbbb729a7 Fix for a bug where you couldn't use certain items outside of battle 2021-11-26 21:59:52 +01:00
JappaWakkaP3D
526c226e22 Added shadow to the JoinServerScreen title text 2021-11-26 21:58:28 +01:00
JappaWakkaP3D
3bdc124a99 Bugfixes & Tweaks
* Growl displays correctly now
* The sound played with stat change animations is now timed correctly
* Stat change particles now fall straight down as intended
* Fixed incorrect texture for Confusion
* Stat Down texture is now blue and Stat Up texture is now orange/yellow
2021-11-26 21:56:38 +01:00
Jasper "JappaWakka" Speelman
bac3d2b292 Gave status effect textures a separate folder not related to a specific type. 2021-11-21 15:01:38 +01:00
Jasper "JappaWakka" Speelman
e9d4cacd3c Fix for faint animation 2021-11-21 15:00:39 +01:00
Jasper "JappaWakka" Speelman
51b9eb649a Fix for missing texture in Poisoned & Burned animations as well as poison sting. 2021-11-21 12:59:21 +01:00
Jasper "JappaWakka" Speelman
71cdb5e0c0 Added Paralysis Animation 2021-11-06 18:22:17 +01:00
Jasper "JappaWakka" Speelman
ee7aaa2e0e ContentPack menu mouse selection fixes 2021-11-06 12:05:15 +01:00
Jasper "JappaWakka" Speelman
dc9ec6bd23 Fixed mistakes in Stat Animations + Updated Pound animation + Improved Tackle animation 2021-11-06 12:03:55 +01:00
Jasper "JappaWakka" Speelman
c1ec08fe7f Various Battle Improvements and Fixes
* Improved timing BlockIn & BlockOut BattleIntro animations
* Removed player ball throw animations at the start of the battle for battles that are not pvp
* Fixed absorb animation
* Improved the faint animation and removed the unnecessary camera angle changes when a pokémon faints
2021-11-06 11:26:34 +01:00
Jasper "JappaWakka" Speelman
4b3b900e40 Start of battle pokeball throw animation
and some little fixes
2021-11-05 23:09:33 +01:00
darkfire006
6fb318e150 very small changes to start the back end of diamond dive 2021-11-02 23:09:49 -05:00
darkfire006
46bc279407 more reward system progress 2021-11-02 23:09:24 -05:00
JappaWakkaP3D
3900fe7191 Fixed Spawned Entities not being removed after the animation is done + Made the switch Pokémon animation look better 2021-10-29 18:54:00 +02:00
JappaWakkaP3D
72599bfd16 Fixed spawned animation entities not being positioned/moved correctly + Added Heal animation + Made other animations be affected by battleanimations option 2021-10-29 15:58:28 +02:00
JappaWakkaP3D
24b7ba36e2 Notification Popup disappears faster after user input 2021-10-28 22:15:29 +02:00
JappaWakkaP3D
6e3a44ff0f Replaced dollar symbol with Pokémon money symbol in fonts 2021-10-28 18:33:32 +02: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
JappaWakkaP3D
53f006cd3d Stop the NotificationPopup from autoexecuting the attached script. 2021-10-26 23:55:22 +02:00
JappaWakkaP3D
9b8022897c BattleIntro CustomBattleMusic fix 2021-10-26 23:43:23 +02: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
JappaWakkaP3D
7fba875d02 Fixed a lot of animation system bugs
Fixed:
* Spawned entities not appearing
* Animations getting removed too soon
* Incorrect relative positioning
* Ember textures being searched for in the wrong place
2021-10-24 01:56:29 +02:00
JappaWakkaP3D
0e49fbfd00 Contentpack music fix
When a song that didn't have an intro in the gamemode has one in a contentpack, the game didn't check for that. Now it does
2021-10-23 22:52:53 +02:00
JappaWakkaP3D
516ffff1a1 Fixes for Pokéballs, Healing Machines & Pokécenters 2021-10-23 21:43:59 +02:00
darkfire006
e680172ddb more work on rewards system 2021-10-22 14:40:05 -05:00
JappaWakkaP3D
5138bd974a Updated README.md 2021-10-22 21:00:42 +02:00
JappaWakkaP3D
09fcd0254a Added genderless button texture and updated the other buttons 2021-10-22 20:24:15 +02:00
JappaWakkaP3D
ba313f78ae Added & Changed Tokens + Added functionality for genderless players
Options Menu and Main Menu can be translated now
2021-10-22 20:22:13 +02:00
JappaWakkaP3D
9bde9a71ed Main Menu & Options Menu Fixes and Improvements
* Gave enabled Content Packs better feedback by making the text green if it's enabled
* Removed the "enabled" suffix from enabled Content Packs
* Changed the "enabled:no/yes" text in the Content Pack menu to "Enable" when the selected Pack is  disabled and "Disable" when the selected Pack is enabled
* Fixed mouse clicks registering in a different location on the Content Packs menu
When clicking any button on the row above the options submenu while the options submenu is opened, I made it close the submenu and move to that button.
* Added visual keypress feedback when pressing a commandbutton. The key will revert back to it's regular look when the mouse/keyboard/controller button is released.
* Fixed the jump when moving the cursor in the options menu from a slider to a button and vice versa.
* added an "apply" button to the main menu's option menus
* Made the "back" buttons in the main menu's option menus  not apply the changes.
* Made the language change when you scroll through the languages. Tokens in other languages need to be updated!
2021-10-22 18:13:33 +02:00
JappaWakka
944cf6ae71 Updated everything to the new Battle Animations system and the newest commands
Updated Attacks:
Ember, Absorb, Growl, Pound

Updated status effects & shared animations:
Poisoned, Switching Pokémon (own and opponent's)
2021-10-22 12:25:00 +02:00
JappaWakka
ea12c8f5f4 I was not halfway done
I've updated Poison Sting, through which I realized I hadn't taken some usage cases into consideration, so the system should be more robust and useful now
I've also updated the animation for Switching In your own Pokémon
and I've added an animation for when the Pokémon breaks out of the ball when you're trying to catch it
2021-10-22 12:24:56 +02:00
JappaWakka
02ed129c85 Battle Animation System Rework about halfway done
Updated to work with the new animation system:
- Catch animation
- Burn animation
- Attack: Tackle
2021-10-22 12:24:48 +02:00
JappaWakka
d20abdf6df 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:23:32 +02:00
JappaWakka
79edf72d1c Fix Burned animation error 2021-10-22 12:22:06 +02:00
JappaWakkaP3D
758154551b Battle Animations 22-08-2021
Made the Battle Animation implementation functional
Added animations for:
Stats Increasing
Stats Decreasing
Status Effects
- Poisoned
- Burned
Attacks
- Ember
- Growl
- Pound
- Tackle
- Poison Sting
2021-10-22 12:22:06 +02:00
JappaWakka
673178616f Added Battle Animation type Background to temporarily draw a texture to the screen behind the Pokémon but in front of the world 2021-10-22 12:21:13 +02:00
JappaWakka
2c3f46cd2e Updated everything to the new Battle Animations system and the newest commands
Updated Attacks:
Ember, Absorb, Growl, Pound

Updated status effects & shared animations:
Poisoned, Switching Pokémon (own and opponent's)
2021-10-22 12:21:13 +02:00
JappaWakka
168a855ed0 I was not halfway done
I've updated Poison Sting, through which I realized I hadn't taken some usage cases into consideration, so the system should be more robust and useful now
I've also updated the animation for Switching In your own Pokémon
and I've added an animation for when the Pokémon breaks out of the ball when you're trying to catch it
2021-10-22 12:21:12 +02:00
JappaWakka
7ff7f96a47 Battle Animation System Rework about halfway done
Updated to work with the new animation system:
- Catch animation
- Burn animation
- Attack: Tackle
2021-10-22 12:21:12 +02: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
JappaWakka
09e5661729 Fix Burned animation error 2021-10-22 12:21:12 +02:00
JappaWakkaP3D
c79f92b3e8 Battle Animations 22-08-2021
Made the Battle Animation implementation functional
Added animations for:
Stats Increasing
Stats Decreasing
Status Effects
- Poisoned
- Burned
Attacks
- Ember
- Growl
- Pound
- Tackle
- Poison Sting
2021-10-22 12:21:11 +02:00
JappaWakka
f6696ffc5c Changed the reference of the submodule to the right GameDevCommon 2021-10-21 21:36:36 +02:00
JappaWakka
d1fd63dafa Updated GameDevCommon submodule to use .NET 4.6 & Mo
And fixed some color errors
2021-10-21 20:49:07 +02:00
darkfire006
a368099b07 insert start script into Kolben GM and create the script files for the reward system 2021-10-21 01:07:15 -05:00
darkfire006
c6e43df31c tokens get parsed for constructs 2021-10-21 01:06:21 -05:00
darkfire006
334e466bed update controls note with new constructs 2021-10-19 22:36:33 -05:00
darkfire006
9f59562611 Revert "Added some tokens in advance"
This reverts commit 61b07ddb4b5ce925f65b7c6dfbef31abf074d7d1.
2021-10-19 22:31:22 -05:00
darkfire006
fe11d5fb35 Check Evaluate Construct results for more constructs 2021-10-19 19:02:59 -05:00
JappaWakka
97c3a1dda4 Fixed color difference in House.png as a result of reverting texture changes 2021-10-20 00:03:57 +02:00
JappaWakka
61b07ddb4b Added some tokens in advance 2021-10-20 00:03:10 +02: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
darkfire006
7dbe1a899d added the Rock Tunnel ceiling back 2021-10-18 23:39:53 -05:00
JappaWakka
2004352364 Changed the 1 in the chat icons to a + 2021-10-18 21:51:48 +02:00
JappaWakka
5c9534d2e6 Fixed broken/missing sand floor in New Bark Town 2021-10-18 21:38:53 +02:00
JappaWakka
c96d6443b5 Fixed TextureReplacement function of exceptions.dat in ContentPacks and made the Chat window look better
When typing a message, the cursor flickers on and off like in a text editor
The category icons in the chat window are now a consistent 24x24px
2021-10-18 21:38:20 +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
7731e9cbc0
Merge pull request #74 from P3D-Legacy/battleintromusicfix
Battle intro music fix
2021-10-17 22:55:17 +02:00
darkfire006
50f765af64 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2021-10-17 15:54:09 -05:00
darkfire006
347e696514 remove ladder tops 2021-10-17 15:54:01 -05:00
JappaWakka
c3aad6a7a3 StarTower music replacement 2021-10-17 22:46:34 +02:00
JappaWakka
2a9db02de0 Replaced the johto_trainer music with a well-looped version 2021-10-17 22:27:02 +02:00
JappaWakka
4132bbe1c0 Fixed the music gap between BattleIntroScreen and BattleScreen
Also replaced the johto_wild music with a well-looped one
2021-10-17 22:13:18 +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
43f3e8ef6a Second attempt at GameJolt description box color fix 2021-10-15 22:26:35 +02:00
JappaWakka
72fed3aa22 Main Menu & Option Menu fixes and improvements
PressStartScreen:
* Fix for GameJolt Profile not loading automatically
* Hopefully fixed GameJolt Profile's description box having the wrong color sometimes
* Hopefully fixed GameJolt Profile gender buttons having the wrong position.
* Made the description box in the GameMode selection menu expand vertically but not horizontally

NewOptionScreen:
* Removed the broken automatic position and scale adjustments at lower resolutions
2021-10-15 22:10:37 +02:00
JappaWakka
904f2007a8 Fix for NetworkPokemon textures messing up 2021-10-15 19:13:25 +02:00
darkfire006
a774944e1e Adjust radio tower 1f environ settings to accomodate skybox changes 2021-10-14 16:50:58 -05:00
Daniel S. Billing
659480f6d8 Renamed "Xbox 360 Controller" to "Xbox Controller" 2021-10-14 21:32:47 +02:00
JappaWakka
71455b92a4 Fix for PokéBall in BattleCatchScreen not reaching its destination and giving the catch sound the right name 2021-10-13 21:23:07 +02:00
JappaWakka
3fde479b5a Added PokéBall break sound that's different from the open sound and added "Success_Catch" jingle that plays when catching a Pokémon 2021-10-13 20:27:47 +02:00
JappaWakka
a654d80a85 Using the running shoes and using ctrl to walk through walls in sandbox and debug mode is not a toggle instead of a hold 2021-10-13 20:18:26 +02:00
JappaWakka
e6e44cec29 Added .mp3 & .wma support for the music engine 2021-10-13 18:08:18 +02:00
darkfire006
76fe526d55 diamonddive battle maps 2021-10-12 21:16:55 -05:00
darkfire006
42bbaff741 battle maps and small connection fixes for R23,26-28 2021-10-12 21:00:14 -05:00
darkfire006
ba7949f050 minor sign change 2021-10-12 20:32:35 -05:00
darkfire006
7ec9840b5f making R23 less steep 2021-10-12 20:32:12 -05:00
darkfire006
35591eb8bd clean up gym sign 2021-10-12 14:54:43 -05:00
darkfire006
3c4f7c7a1d undoing accidental include in commit 2021-10-12 14:53:24 -05:00
darkfire006
287718ddbf missing gym signs 2021-10-12 14:50:35 -05:00
darkfire006
2dc896ef12 the missing gym signs 2021-10-12 14:50:18 -05:00
darkfire006
191ad47399 revert some texture changes, and a few other tweaks 2021-10-12 11:27:56 -05:00
darkfire006
c44307e514 Revert "Color update for some textures"
This reverts commit 8ea9bb01f48f063c107266fdb5ba68cdfe15289e.
2021-10-12 09:03:07 -05:00
darkfire006
9e558ca26c Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2021-10-12 08:49:04 -05:00
darkfire006
76f7cd602a Prevent Random trainers from having shinnies 2021-10-12 08:49:02 -05:00
JappaWakka
8ea9bb01f4 Color update for some textures 2021-10-11 22:15:42 +02:00
JappaWakka
6ee71755af Fix for incorrect Main Menu scaling at lower resolutions
Also made the contents of the pausescreen at least stay inside the window at lower resolutions
2021-10-11 21:49:24 +02:00
JappaWakka
78e25a85c0 Notifications Implementation Part 2 2021-10-11 21:16:39 +02:00
JappaWakka
d3a010e050 Added phone Notification Sound 2021-10-09 23:08:34 +02:00
JappaWakka
464e1d8c31 Implemented Notification system 2021-10-09 23:05:56 +02:00
darkfire006
88fc909529 Shiny Lugia OW 2021-10-09 00:49:18 -05:00
darkfire006
2618abd210 shiny lapras OW 2021-10-09 00:36:35 -05:00
darkfire006
2edebcb023 shiny lock event scizor 2021-10-09 00:28:46 -05:00
darkfire006
6a0a48162d Shiny Ho-oh OW 2021-10-09 00:23:22 -05:00
darkfire006
155fb9cbcb Shiny Articuno OW 2021-10-08 23:52:09 -05:00
darkfire006
69141c970d Shiny Zapdos OW 2021-10-08 23:48:40 -05:00
darkfire006
83d727ce36 Shiny Moltres OW 2021-10-08 23:37:24 -05:00
darkfire006
5debd371f1 Prevent Eusine from appearing in battle bar until after suicune battle 2021-10-08 23:32:51 -05:00
JappaWakka
0c76e718dd Options Menu & Join Server Screen fixes
Fixed ContentPacks menu layout

Fixed the cause of the Options Menu crashing

Replaced the MiniFont in the JoinServerScreen with the InGameFont

Adjusted positioning of text in AddServerScreen
2021-10-06 00:11:56 +02:00
darkfire006
064af97b49 intro script Dec Sep issue 2021-10-05 13:24:41 -05:00
darkfire006
102ed648be Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2021-10-05 13:23:39 -05:00
JappaWakka
fc21008dfc Tweaked Ethan's sprite a bit 2021-10-04 14:38:35 +02:00
darkfire006
93be89257a fix victini register check 2021-10-04 00:18:21 -05:00
darkfire006
d96e911a3b volcanion ow shiny 2021-10-04 00:18:10 -05:00
darkfire006
748fe871f8 Shiny Ow Victini 2021-10-03 23:48:50 -05:00
JappaWakka
be6daeded8 Added New Audio to Project File 2021-10-04 01:15:49 +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
darkfire006
bf6c263cc1 Revert "Music & SFX Renaming"
This reverts commit 0bf513e3b7d732295a467c650343ffd79e6ba934.
2021-10-03 14:49:51 -05:00
JappaWakka
8b0658e3a8 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2021-10-03 21:42:22 +02:00
darkfire006
56203d8eea shiny mew overworlds 2021-10-03 14:35:41 -05:00
JappaWakka
0bf513e3b7 Music & SFX Renaming
Renamed all of the songs with properly capitalized names to improve recognizability and readability.

I also changed some song names and added some sounds & I edited the maps and songs accordingly

[Changed Songs]
alph = RuinsOfAlph
barktown = NewBark
frontier = BattleFrontier
indigo = IndigoPlateau
mtmoonsq = MtMoonSquare
rHideout = Rocket_Hideout
safari = SafariZone
safarigate = SafariZone_Gate
kVictoryroad = VictoryRoad
--
[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-03 21:35:02 +02:00
darkfire006
b1e4295b7a fix shiny suicune register 2021-10-03 14:30:33 -05:00
JappaWakka
332a7074e5 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2021-10-03 21:25:20 +02:00
darkfire006
7cfb0fcb08 suicune shiny 2021-10-03 14:21:33 -05: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
bd8f91e338 Pokémon idle animate when they have only 2 frames 2021-10-03 11:09:08 +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
9271d9b629 Fixed the camera staying at 1 on the y axis after interacting with your pokémon in third person 2021-10-01 18:05:42 +02:00
JappaWakka
18c7f59fa0 Big Overworld Sprites Change + old NewGameI intro fix
Made it possible for Pokémon, NPCs and players to use textures that have 2 frames (1 - 2 - 1 - 2), 3 frames (1 - 2 - 1 - 3) or even 4 frames (1 - 2 - 3 - 4) with the numbers between the brackets being the order of the frames

- All default pokémon overworld sprites are now 2 frames wide

- Removed an error in the old NewGame intro

- Pokémon don't animate unless moving or when in battle
2021-10-01 17:06:41 +02:00
JappaWakka
dd34d9731c CanMuteMusic = CanMuteAudio & other tweaks
- CanMuteMusic property in source code renamed to CanMuteAudio

- Old New Game intro and Localization errors (made by me) fixed
2021-10-01 15:24:54 +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
JappaWakka
51a481da62 Added Audio Menu icon, Added support for GameMode descriptions & GameMode splash screens
Also improved the look of the GameMode menu
2021-10-01 12:44:08 +02:00
darkfire006
2266663732 Tao Trio shiny controls fix typo 2021-10-01 00:57:21 -05:00
darkfire006
b658df2558 Tao Trio Shiny controls
all three will now appear shiny in the overworld before encountering
2021-10-01 00:52:29 -05:00
darkfire006
fba2307c3f shiny mewtwo shows up in proton fight 2021-10-01 00:36:59 -05:00
darkfire006
43f19a3a09 Mewtwo overworld Shiny 2021-09-30 18:29:15 -05:00
darkfire006
530c3ad124 Unown Lock
Shiny Lock the event Unowns in Alph
2021-09-30 18:26:12 -05:00
darkfire006
15f0f528d2 jirachi overworld shiny 2 2021-09-30 10:23:46 -05:00
darkfire006
697cc29b1e overworld shiny jirachi 2021-09-30 10:23:18 -05:00
darkfire006
6f5d34f0b5 Allow for script determined roamer shinyness 2021-09-30 10:16:26 -05:00
darkfire006
08955ddcf3 use MasterShinyRate
update various scripts to use the master shiny rate as basis
2021-09-29 18:10:32 -05:00
darkfire006
42f8f5e1a2 Shinyness clean up
condense redundant commands into the add command
2021-09-29 18:09:41 -05:00
darkfire006
f16fee3a7a Preliminary Destiny Knot implementation
very rough add
2021-09-29 18:08:24 -05:00
darkfire006
bb8bf084b1 add/addtostorage shiny fix
ensure they dont accidentally shiny lock
2021-09-29 18:07:04 -05:00
JappaWakka
bb6181679d Added Controls Menu Icon 2021-09-30 00:18:58 +02:00
JappaWakka
5e5e355fd4 Updated back of books in Player's house living room 2021-09-29 23:49:30 +02:00
JappaWakka
1081595d24 Added ContentPacks & Language Menu Icons, Fixed arrow color, Centered text of mainmenu buttons 2021-09-29 23:47:57 +02:00
JappaWakka
cbd7a4ec84 Fixed mouse selection for Language Menu 2021-09-29 17:38:56 +02:00
JappaWakka
c4ab6604a6
Merge pull request #73 from P3D-Legacy/mainmenu-rework
Main Menu Rework
2021-09-29 16:59:40 +02:00
JappaWakka
e9552e0edb Updated House Texture 2021-09-29 16:58:07 +02:00
JappaWakka
cf56508ed0 Content Pack Menu tweaks
whenever you scroll (or press up/down) on the buttons at the bottom, the select sound plays (with a delay so you can't spam it) so the player knows it does something

I also renamed Up and Down to Move Up and Move Down to avoid confusion
2021-09-29 16:29:49 +02:00
JappaWakka
0e8b60cfc4 Options Freezing fix
Fixed OptionsScreen freezing in-game & when clicking Pack Information in ContentPack Menu in the Main Menu
2021-09-29 15:57:29 +02:00
JappaWakka
7583e5d97c PressStartScreen fix
Fixed the issue where when you press a key to go to the main menu while the splash/logo screen was fading in, it would freeze halfway through the fade and you'd have a main menu with a darker background than it should be. Now when you press a key, it just skips the fade before switching the screen to the mainmenu
2021-09-29 14:43:07 +02:00
JappaWakka
106de657f0 Main Menu Crash Fix & Options Menu Cursor Fix
Fixed a crash when moving to the content pack button in the main menu options row while having no savegames.

Fixed the options pointer changing position when resizing the game window.
2021-09-29 14:32:05 +02:00
darkfire006
0ee2c116a9 The Return of the Shiny
Reactivate Shiny Candy, set max stacks at 1 and cant be held to avoid duplicating
2021-09-29 02:26:14 -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
darkfire006
bdebdd8f7f no shiny/0
Prevent possible divide by 0 issue for Shiny boost
2021-09-29 02:23:17 -05:00
JappaWakka
d3bad8913b Options Menu fixes & Mouse Speed renamed
The options are now saved when going back to the main menu

Mouse Speed is now called Camera Speed
2021-09-28 17:50:49 +02:00
JappaWakka
6ca257ce91 Faster Textbox Popup & Menu Font Position & Scale Fixes 2021-09-28 17:30:43 +02:00
JappaWakka
166a150ce4 First Main Menu rework almost done
The options row buttons in the Main Menu now open their respective tab in the Options Menu when selected

The Content Pack Menu is positioned correctly

The Content Pack & Language Menus now fade in and out
2021-09-28 17:20:51 +02:00
JappaWakka
ee42876afa Main Menu Work In Progress 28-09-2021
When selecting the Options button at the Main Menu, the top row moves up, revealing the Options row beneath it

When selecting the Options button at the Main Menu, the options row fades in now

The Options row now has the right amount of selectable buttons (4, not 5)

When selecting the Options button at the Main Menu, the top row doesn't reset position now

The distance between Options buttons is now the same as the top row
2021-09-28 15:34:12 +02:00
JappaWakka
bc3bb99e33 Sandbox Mode Camera QoL fixes
It is now possible to move the camera in third person with the arrow keys when the savegame is in Sandbox Mode to make mapping easier for people who don't wanna build the source code
2021-09-27 23:26:37 +02:00
JappaWakka
b1c4916e14 Sandbox savegames should be able to access the PokéGear at any time now. 2021-09-27 23:17:53 +02:00
JappaWakka
c657207a69 Improved textures & maps
Maps:
- New Bark Town (barktown.dat)
-- Fixed glitching trees
-- Added windows to side of prof. elm's lab
-- Improved roof textures

- Elm's Lab (elmlab.dat)
-- Added window to the wall on the left for consistency

- Your Room (yourroom.dat)
-- Made the walls only show the texture when looking at them from the front
-- Improved bed and tables

Updated & Recolored Interior Textures:
- House
- Lab

Updated & Recolored Exterior Textures:
- Violet
- BarkTown
2021-09-27 23:09:42 +02:00
JappaWakka
b7ec88ac7e Correction for the skydome color for interiors 2021-09-27 22:59:41 +02:00
JappaWakka
a285710f5b Added OutsideStepModel 2021-09-27 22:51:48 +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
22bf0afdce Rotation speed multiplier of First Person camera slightly increased
From 35.0F to 40.0F
2021-09-25 19:57:08 +02:00
Jasper "JappaWakka" Speelman
9434417c31 Kolben GameMode IntroType fix
I forgot to add the correct IntroType of the Kolben GameMode to the GameMode file.
2021-09-25 19:55:36 +02:00
Jasper "JappaWakka" Speelman
b38f38775d Player House Living Room 25-09-2021
Walls updated (only visible when viewed from the front)
Mom is on a stool now (ideal NPC Y position for these stools = 0.115), updated the momdoor.dat script to make her get up and off the chair
Improved TV, Sink/Tap, Stove, Fridge and Kitchen wall textures & models
2021-09-25 18:16:39 +02: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
Jasper "JappaWakka" Speelman
425a336401 Typo fix in code
AnimationDelayLenght
is now
AnimationDelayLength
2021-09-25 13:28:15 +02:00
Jasper "JappaWakka" Speelman
86076944b2 Pause Screen Fixes + Indentation fix
- Fixed crash that occured when pausing the game during the old intro
- Fix weird indentation in warpblock.vb
2021-09-25 00:28:06 +02:00
Jasper "JappaWakka" Speelman
b0ca5ab1d9 Options Menu update 2
- Applying ContentPacks works perfectly now and plays the Save sound when done
- ScrollBars in the options menu work correctly again
2021-09-25 00:27:12 +02:00
Daniel S. Billing
fa435ae9f4
Merge pull request #69 from jianmingyong/master
Fix old namespace checks on crash log generator
2021-09-24 08:26:31 +02:00
Yong Jian Ming
989d12b479
Fix old namespace issues. 2021-09-23 10:32:10 +08:00
JappaWakkaP3D
8263bbe390 Main Menu Work in Progress 21-09-2021 2021-09-21 17:45:56 +02:00
JappaWakkaP3D
a6713d0c4d Options Menu Update 2021-09-21 17:45:29 +02:00
darkfire006
4012cf55f7 first part of the ddive exterior 2021-09-17 20:46:23 -05:00
darkfire006
3b22ab7e2f Route 23 and necessary conenctions 2021-09-17 03:00:35 -05:00
darkfire006
a461ea5011 initial work on Route 23 2021-09-16 08:42:24 -05:00
darkfire006
72ca921b3c R 28 and R22 hgss upgrade and fix fly points 2021-09-15 13:36:08 -05:00
darkfire006
854a3fee29 upgrade R26 and R27 to HGSS layouts 2021-09-14 15:07:48 -05:00
darkfire006
c5299fc96b make R50 longer 2021-09-02 23:21:22 -05:00
darkfire006
90a98465b7 grass(seaweed) addedx to underwater sections 2021-09-02 23:21:05 -05:00
darkfire006
10c83350ac ddive texture changes and the last interior map 2021-08-31 18:18:16 -05:00
darkfire006
81586efb3e Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2021-08-30 22:40:14 -05:00
darkfire006
44d7ff22a2 Connecting the underwater sections
the scripts to make the "wafterfalls" work
2021-08-30 22:40:09 -05:00
Jasper "JappaWakka" Speelman
9b8df67916 Fixes and main menu preparations
For some reason ttf2bmp.exe was not added to the references, so I added that.
Added some variations of the Options and MainMenu button textures.
Added some english localization tokens and fixed the Indonesian language from displaying as "Indonesia"
Tweaked the colors of the main menu
Added an option main menu icon
Fixed a bug where the game would crash when loading a gamemode without a Moves folder.
Set offsetmap quality (update frequency) to max by default.
2021-08-30 19:46:39 +02:00
darkfire006
f4b87da3ee Diamond Dive under water parts mostly done 2021-08-30 00:30:57 -05:00
darkfire006
c5671bb5ce Diamond dive first part of underwater area
Map 1 layout done, duplicated for the other 4, removed random file and
connected interior to map 1
2021-08-23 00:38:58 -05:00
JappaWakkaP3D
7227be54c2 Fixed error 2021-08-22 17:27:01 +02:00
JappaWakkaP3D
3a35860f7a Removed visible animations for now 2021-08-22 17:24:06 +02:00
JappaWakkaP3D
c6625de6f9 Fixed some battle animation errors and added content that I forgot, also corrected ViceGrip spelling 2021-08-22 16:47:26 +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
7c22837f50 Texture "House4" improvements and Olivine Cafe map cleanup
Recolored and improved House4 texture
Used the textures that I modified to improve the Olivine Cafe map.
Made Olivine Cafe's walls one-sided and added a chair under the Cafe Owner so he doesn't appear to be floating
2021-08-21 22:57:12 +02:00
darkfire006
439905e310 Olivine Cafe fixes 2021-08-21 01:17:40 -05:00
darkfire006
01982993b0 Revert "Olivine City Café owner dialog fix"
This reverts commit a55776894c2064f5f7a6dcf105d997fd2f182e73.
2021-08-21 01:15:27 -05:00
JappaWakkaP3D
a55776894c Olivine City Café owner dialog fix
Dialog is now
`Olivine Café's menu is~chock-full of hearty~fare for beefy Sailors!`
instead of
`center_script`
2021-08-20 22:03:55 +02:00
JappaWakkaP3D
dceaf0e3f8 Updated & Recolored some textures
Updated and Recolored the following:
Apricorn Trees
Gate textures with more readable text (Both Kanto & Johto)
One of the House textures
Cherrygrove City textures
2021-08-20 21:51:50 +02:00
JappaWakkaP3D
e466b3ffc6 Replaced most of the fonts which should fix the crash for turkish and russian users 2021-08-20 19:30:01 +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
JappaWakkaP3D
7f3445b727 Added a text message when selecting an item in battle that can't be used
The message says:
This item can't be used in Battle.
2021-08-20 15:10:39 +02:00
JappaWakkaP3D
1605ea8afd Fixed a crash caused by Rare Candy being usable in battle 2021-08-20 13:51:55 +02:00
darkfire006
403add1267 fix overlapping water tiles 2021-07-03 21:02:50 -05:00
darkfire006
800ab86532 remove the move relearner script reference 2021-07-02 22:54:47 -05:00
darkfire006
2c0bee98ba Pin Missile Typo 2021-07-02 15:36:55 -05:00
darkfire006
737dd5b3c9 slight change to reference changed mechanics 2021-07-02 11:35:00 -05:00
darkfire006
6d2284135c
Update outside.dat
Plateu -> Plateau
2021-06-27 01:02:32 -05:00
Daniel S. Billing
b9472bf532 Capitalized SuperPotion 2021-06-22 07:56:45 +02:00
Daniel S. Billing
d0d77fb944 Fixed typo, CHUNK 2021-06-18 09:13:44 +02:00
Daniel S. Billing
f632266d9e Fixed capitalization typo 2021-06-18 07:37:12 +02:00
Daniel S. Billing
6249cb234e Fixed useless typo 2021-06-18 07:35:37 +02:00
Daniel S. Billing
9b3e0e0d56 Fixed "PokéMON" text in dialog 2021-06-02 11:41:10 +02:00
Vitaly Mikhailov
a355f95e5a
Merge pull request #67 from jianmingyong/master
Fix teleport bug
2021-04-25 15:23:09 +03:00
Yong Jian Ming
71eab48a06
Change Or operator to OrElse instead 2021-04-24 17:46:00 +08:00
Yong Jian Ming
8c25fb2df7
Fix teleport bug 2021-04-24 17:42:14 +08:00
darkfire006
0921ac159f 3 more rock area 2021-04-20 12:00:00 -05:00
darkfire006
916c974be1 Minor ddive fixes 2021-04-20 11:59:31 -05:00
darkfire006
1986f217e7 Diamond Dive Part 1 2021-04-17 23:56:19 -05:00
darkfire006
bbbcea5c98 Overworld to Diamon Dive 2021-04-17 23:56:04 -05:00
darkfire006
10df58a3de Town map changes for diamond dive+ 2021-04-17 23:26:08 -05:00
darkfire006
8761ac20e9 Small Bug Fixes 2021-04-17 23:23:37 -05:00
Daniel S. Billing
e2aeab32ea Fixed hole in Cerulean City 2021-04-07 18:01:23 +02:00
JappaWakkaP3D
c8daf7035b Merge branch 'master' into permanent_item_loss_fix 2021-01-30 22:34:22 +01:00
JappaWakkaP3D
d8f7319bc7 Permanent item loss caused by attacks fix
If an item is swapped/removed/whatever in a battle
  If it's a PvP battle or a Trainer battle
    Every Pokémon that has its item removed gets its original item back
  If it's a Wild battle
    If a Pokémon that had its original item removed is holding
    a different item (because of the attack Trick for example)
      The Pokémon keeps the new item and the original item is added to
      the inventory.
2021-01-30 22:34:02 +01:00
darkfire006
5ea848d5d7 0.58.1 release clean up 2021-01-27 00:30:43 -06:00
darkfire006
9147437d7b Merge Classified
Merge Classified Class into GameController.vb
2021-01-25 11:04:16 -06:00
Daniel S. Billing
e8559a601d Fixed PingTimer issue when connecting to server 2021-01-25 16:03:34 +01:00
Vitaly Mikhailov
b1242c28bb
Merge pull request #62 from P3D-Legacy/classified
Let's make it easier to edit the classified values
2021-01-25 12:01:00 +03:00
Daniel S. Billing
79070c3baa
Merge branch 'master' into classified 2021-01-25 08:27:19 +01:00
Daniel S. Billing
404b60b3ec Update README.md 2021-01-25 08:26:23 +01:00
darkfire006
fad54f97eb Revert "Create .gitattributes"
This reverts commit 5b4fda6e07c79082c50ad66f390fb0364056ca18.
2021-01-24 22:04:50 -06:00
Daniel S. Billing
34d2be8e36
Update README.md 2021-01-24 23:49:35 +01:00
Daniel S. Billing
b3ea20a27c
Update README.md 2021-01-24 23:40:13 +01:00
Daniel S. Billing
ac1b72ce97 Ignore the build folder 2021-01-25 00:13:57 +03:00
Daniel S. Billing
936f8fd2b8 Update README.md with classified info 2021-01-24 18:46:50 +01:00
Daniel S. Billing
8600d089b9
Merge pull request #61 from P3D-Legacy/update-net-framework
update-net-framework: missing change
2021-01-24 18:41:50 +01:00
Daniel S. Billing
ecfbc13b06 Let's make it easier to edit the classified values 2021-01-24 18:38:05 +01:00
Daniel S. Billing
8cb50ea28a Added a fix for #59 2021-01-24 17:23:16 +01:00
Daniel S. Billing
1b06be9ef3 Binary changes 2021-01-24 16:19:10 +01:00
JappaWakka
c09656fe38 Restarting Music Fix
Fixed the music from restarting after unpausing or exiting the menu
2021-01-24 16:58:10 +03:00
Daniel S. Billing
671daa9d4f Here is the last change :) 2021-01-21 18:38:49 +01:00
JappaWakka
66079e69d0 [Crash fix]
Fixed crash that occurs when exiting to the main menu through the pause screen while the game window is minimized or not active in general.
2021-01-21 10:37:27 +03:00
JappaWakka
eaab679379 Added the "silence" audio file 2021-01-21 10:36:55 +03:00
JappaWakka
621a6bc364 [MusicManager Fixes]
Fix for the game taking longer to resume after pausing on a map without music
Fix for audible gaps between intros and regular songs
2021-01-21 10:36:55 +03:00
JappaWakka
9244a18653 [Overworld Pokémon Fix]
Fixed OverworldPokemon from continuing to walk infinitely when pausing the game, opening a chat window or while the current screen is any other screen than OverworldScreen
2021-01-21 10:35:51 +03:00
darkfire006
9e84125706
Merge pull request #58 from JappaWakkaP3D/daisy_script_fix
Daisy Script Fix
2021-01-20 14:54:36 -06:00
JappaWakka
dc2e1e44d3 Reverted FileValidation.vb and meta file changes 2021-01-20 21:51:17 +01:00
darkfire006
6dda29be1e
Merge pull request #53 from P3D-Legacy/update-net-framework
Updated to .net 4.6 to fix SSL/TLS issues
2021-01-20 14:23:14 -06:00
Daniel S. Billing
5b4fda6e07
Create .gitattributes 2021-01-20 18:43:23 +01:00
JappaWakka
315842bbba [Daisy Script Fix]
Fixed script that caused Daisy to never groom your Pokémon
2021-01-20 17:48:28 +01:00
Daniel S. Billing
9a115126cd Updated to .net 4.6 to fix SSL/TLS issues 2021-01-14 14:52:04 +01:00
Daniel S. Billing
c6d905fade Lets see the error in debug log 2021-01-14 09:52:21 +01:00
Daniel S. Billing
9cf9daca31
Create CONTRIBUTING.md 2021-01-08 22:55:43 +01:00
Daniel S. Billing
d18c44ef23 Minor oprator changes 2021-01-08 22:35:33 +01:00
Daniel S. Billing
39e5d754ff Spelling 2021-01-08 22:34:46 +01:00
Daniel S. Billing
bcffe67cb4 Updated README 2021-01-08 21:16:30 +01:00
Daniel S. Billing
baf56af4e9
Merge pull request #50 from DanielRTRD/master
Main Menu GUI Fix and Change
2021-01-08 17:45:12 +01:00
Daniel S. Billing
16f4c88547 Updated warning triangle too 2021-01-08 17:44:11 +01:00
Daniel S. Billing
c0215d2105 Fixed scaling of the main menu triangles and added some color to gamejolt triangle 2021-01-08 17:38:15 +01:00
aragas
b10415ccf0 tabulation 2020-11-06 15:10:24 +03:00
JappaWakkaP3D
e8d980b34a Fixed scriptblocks not showing the text in AdditionalValue when the Action value is set to 2 2020-11-06 15:10:24 +03:00
JappaWakkaP3D
3799887e15 Fixed a bug where the fix for the volume would cause music loops to stop working 2020-11-06 15:10:24 +03:00
JappaWakkaP3D
620f4d8325 Actually fix the music sharing its volume with the soundeffects 2020-11-06 15:10:24 +03:00
Ruan Pablo
bd290df9bb More sprite fixes
Includes Gen V legends and Arctovish
2020-09-12 05:23:51 -03:00
Ruan Pablo
b361c496a2 Unown menu logic fix
Also minor change to join server screen
2020-09-12 04:39:49 -03:00
Ruan Pablo
7f94b874b4 Minor sprite fixes 2020-09-12 03:07:22 -03:00
darkfire006
0273417bbf removed in accessable rare candy and random dark room 2020-08-13 23:35:53 -05:00
darkfire006
3e186bc022 0.58 Update files 2020-08-04 12:12:48 -05:00
darkfire006
98ca5fdcd0 Battle Tower fixes 2020-08-03 14:13:57 -05:00
darkfire006
3b8e1cd977 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2020-08-03 00:02:51 -05:00
darkfire006
b58d3411b3 hatch music fix 2020-08-03 00:02:18 -05:00
Daniel Billing
e3ab615146 Changed myself (: 2020-08-02 17:35:52 +02:00
TheOmegaGhost
1a1c935714 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2020-07-31 02:18:48 -03:00
TheOmegaGhost
969e68e774 Gen 8 GFX fixes 2020-07-31 02:17:51 -03:00
darkfire006
d1f2b13de2 Mach VI fixes 2020-07-27 18:12:30 -05:00
Daniel S. Billing
19c1f2f56d Update issue templates 2020-07-25 23:00:12 +02:00
Daniel S. Billing
2e391a2c0c
Merge pull request #37 from DanielRTRD/updateENlocale
Update EN locale
2020-07-25 22:52:04 +02:00
darkfire006
67d357c459 Mach V fixes 2020-07-23 21:02:59 -05:00
Zottelchen
01bd460e3c
Updated Eggmoves inheriting to Gen 6 (#28) 2020-07-23 19:54:50 +03:00
darkfire006
eeeeb18e94 fixes from Mach IV 2020-07-22 22:23:38 -05:00
Yong Jian Ming
f0fe3a53b4
Fixes alt-tab crash when the chatbox is open. (#33)
* Fix alt-tab crash when the user open the chatbox and did an alt-tab.

* remove accidental imports
2020-07-23 00:39:01 +03:00
Daniel Billing
ae774a615b
Merge pull request #40 from DanielRTRD/updatedCredits
Updated credits
2020-07-22 21:44:44 +02:00
Daniel Billing
fd3d82cecf
Merge pull request #38 from DanielRTRD/updateSVlocale
Update SV locale
2020-07-22 21:15:10 +02:00
Daniel Billing
a56b7768d6
Merge pull request #36 from DanielRTRD/updateNOlocale
Update NO locale
2020-07-22 21:14:27 +02:00
Daniel Billing
c27bbd1f2a Added a affiliate notice 2020-07-22 12:56:44 +02:00
Daniel Billing
1cf0ba8070 Updated my own name in the credits 2020-07-22 12:56:23 +02:00
Daniel Billing
2766a4bea2 Updated year for credits 2020-07-22 12:55:10 +02:00
Daniel Billing
43bc3fa1ec Updated MonoGame version 2020-07-22 12:48:43 +02:00
Daniel Billing
55e8875f2c Updated and added missing translations for SV 2020-07-22 11:34:03 +02:00
Daniel Billing
1019d574a2 Meny not menu (: 2020-07-22 11:05:07 +02:00
Daniel Billing
f538b6aa5a Fixed spelling of Millenial 2020-07-22 10:53:41 +02:00
Daniel Billing
6ad1ac0c57 Minor tweaks for NO translation 2020-07-22 10:51:48 +02:00
Daniel Billing
dec293ce97 Full update of NO translation 2020-07-22 10:49:54 +02:00
Daniel Billing
430199af67
Merge pull request #1 from P3D-Legacy/master
Up to date
2020-07-22 09:29:53 +02:00
darkfire006
a1ab3786ac Mach III fixes 2020-07-18 20:04:10 -05:00
TheOmegaGhost
15c5dd5cd5 New Cries 2020-07-17 18:02:22 -03:00
darkfire006
b77ea6890a some Gen 8 data files + a small music fix 2020-07-13 22:10:50 -05:00
TheOmegaGhost
0af092047f New Pokémon Sprites (OW + Big)
Galar Fossils
Duraludon
Dreepy Line
2020-07-13 22:42:19 -03:00
Vitaly Mikhailov
f23ed8caa6
Direct IP connection fix 2020-07-10 19:50:33 +03: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 8c9296ed1a82144d17f303a52c3f2e9e65a5bfea.

* 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
darkfire006
46e8d314d4 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2020-06-22 23:38:46 -05:00
darkfire006
c8f42bee22 Trainer Tower done, bar testing 2020-06-22 23:35:15 -05:00
TheOmegaGhost
dd26b04b66 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2020-06-19 23:47:28 -03:00
TheOmegaGhost
cc2690dd9d Menu Sprite Reorganization 2020-06-19 23:47:03 -03:00
darkfire006
3d587b946a new smash rock items 2020-06-19 21:01:03 -05:00
darkfire006
3235464c92 text wrap fixes 2020-06-19 21:00:55 -05:00
darkfire006
add932f060 trainer tower battle maps 2020-06-16 23:31:04 -05:00
darkfire006
1fee12d2fa remove overlapping snow floors 2020-06-15 23:45:38 -05:00
darkfire006
5ed18d3998 Fossil Revival Systems! 2020-06-14 22:32:22 -05:00
TheOmegaGhost
a0e523faaf Added Fossil Items 2020-06-14 01:57:50 -03:00
darkfire006
848cf8a1ea fix Jasmine's team
put the nature name instead of ID...
2020-06-12 14:43:40 -05:00
darkfire006
c5f319dedf dex rework for regional dexes
shiny charm requires completing three dexes
2020-06-12 00:28:32 -05:00
darkfire006
eaa4c384ca politoed switched to Marill 2020-06-07 04:34:33 -05:00
darkfire006
c695e34b6a Fix issue with Surf Skin 2020-05-27 21:46:46 -05:00
darkfire006
e40e550aa5 indigo plateau npc conflict fix 2020-05-18 12:20:54 -05:00
darkfire006
9d0698eecc Fix Dusk Ball/TM158 conflict 2020-05-12 08:58:35 -05:00
TheOmegaGhost
90e3ea7fee Contrary message display fix 2020-04-19 04:20:18 -03:00
TheOmegaGhost
8b9d0b0071 Minor item graphical changes
Final pass for type color coding for items and menus
2020-04-19 03:25:53 -03:00
TheOmegaGhost
000d45be6d Flash Fire now activates properly 2020-04-19 02:20:42 -03:00
TheOmegaGhost
11913fb146 New Emblems (3)
Tao Emblem for post Kyurem
Minor fix for monochrome stones
Heart Gold Emblem for Ho-oh
Soul Silver Emblem for Lugia
Can be achieved after battle on first encounter event
Retroactively achieved by revisiting encounter area
2020-04-17 21:19:32 -03:00
TheOmegaGhost
ff8174bd01 Item sprites cleanup (2/2)
Menu sprites revamped
Types color-coded
2020-04-17 14:06:56 -03:00
TheOmegaGhost
c1bc61aa27 Steel Beam move and tutor added 2020-04-17 01:35:44 -03:00
TheOmegaGhost
df5a07c572 Center Script timing readjusted 2020-04-16 23:46:35 -03:00
TheOmegaGhost
0663bfd251 Move Reminder and Deleter Overhaul
Reminder and Deleter in every PokéCenter now
Replaces previously useless Mystery Gift NPC area
No longer costs an item, but unlocks as you get badges
Deleter requires 2 badges, reminder requires 4 badges
Fixed weird behavior in their menu screens (double move bug)
Moved Draco Meteor tutor to Blackthorn City house
Draco Meteor tutor is now more elegantly scripted
2020-04-16 23:27:36 -03:00
TheOmegaGhost
9949c565e1 Minor Move and Item name update
Leek updated
Vise Grip updated
Steel Beam half implemented
2020-04-10 00:07:57 -03:00
TheOmegaGhost
e1bbb6f340 Diglett's Cave recolor 2020-04-09 23:45:01 -03:00
TheOmegaGhost
0b0a071d06 Draco Meteor Tutor fix
Now checks for 8 badges
2020-04-09 23:26:19 -03:00
TheOmegaGhost
1a327798d3 Supersonic fix
Ignores type immunity and substitute
2020-04-09 23:24:20 -03:00
TheOmegaGhost
eb1f742f02 Crash damage (recoil) moves fix 2020-04-09 23:23:43 -03:00
TheOmegaGhost
2d642a0102 Item sprites cleanup (1/2) 2020-04-09 23:20:59 -03:00
darkfire006
e7411c20eb Trainer Tower Fixes M2P2 2020-01-06 20:25:26 -06:00
darkfire006
0dab6dc23c Trainer Tower Fixes M2P1 2020-01-04 01:34:51 -06:00
darkfire006
2e91de589b Trainer Tower fixes M1P2 2020-01-01 19:17:28 -06:00
darkfire006
ce1c80d3b4 trainer tower fixes M1P1 2019-12-30 18:06:17 -06:00
darkfire006
a8781f7df6 trainer tower no exp 2019-12-30 08:10:42 -06:00
darkfire006
291ad43763 vbproj for trainer tower round 2 2019-12-28 20:30:00 -06:00
darkfire006
275c553f50 trainer tower round 2
mostly attaching trainers plus fixing a few minor bugs
2019-12-28 19:34:35 -06:00
darkfire006
b61d5923a6 Trainer tower round 1 + some minor clean up 2019-12-05 20:59:06 -06:00
darkfire006
2ae7a11465 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2019-11-23 17:24:27 -06:00
darkfire006
d8ffec9637 0.57.1 update files 2019-11-23 17:24:02 -06:00
TheOmegaGhost
1f20cade3c Made Berserk Gene more interesting 2019-11-23 05:06:08 -02:00
TheOmegaGhost
100aaea5f1 New item icons 2019-11-23 05:05:31 -02:00
TheOmegaGhost
ff81fea1b9 Updated Dream Ball and Pinch Berries 2019-11-23 03:29:31 -02:00
TheOmegaGhost
94a0ee7ce6 Updated Synchronize and Moody 2019-11-23 03:15:53 -02:00
TheOmegaGhost
82fa8630f7 Missing part of last commit 2019-11-23 02:20:02 -02:00
TheOmegaGhost
f447d7a18c Gen 8 updates
Updated Rapid Spin, Howl and King's Shield
Updated abilities interacting with Intimidate
Updated ability and move listings
Updated Koffing and Weezing abilities
Updated Aegislash's forms base stats
2019-11-23 02:11:15 -02:00
darkfire006
fbdf9e349e fixes for 0.57.1 2019-11-22 18:13:04 -06:00
darkfire006
81a67e45f4 0.57 Wrap up files 2019-11-21 18:05:55 -06:00
darkfire006
33da7e0aa5 Map changes from Fanta 2019-11-17 23:36:18 -06:00
darkfire006
7f4616cce0 *gasp* more fixes! 2019-11-16 14:21:51 -06:00
darkfire006
4213b769a7 pokemon.select fix and other embtower fixes 2019-11-12 19:58:19 -06:00
darkfire006
d37192dce8 More Embtower+dna fuse+sevii map fixes 2019-11-10 17:09:05 -06:00
darkfire006
89f855cce5 ever more embtower fixes 2019-11-07 22:44:24 -06:00
Vitaly Mikhailov
1bae503f72
removed hidden dots in Braille.png 2019-11-07 00:04:10 +03:00
Vitaly Mikhailov
f96d0d8c45
Removed black background in Braille.png 2019-11-06 19:18:36 +03:00
darkfire006
4bab24fdd9 embtower fixes 2019-11-04 18:58:39 -06:00
darkfire006
fb33c35968 more embtower fixes 2019-11-03 17:03:48 -06:00
darkfire006
55f29fa666 more embtower fixes 2019-11-03 01:21:53 -06:00
darkfire006
9a50572cb2 minor embtower fixes 2019-10-31 17:56:36 -05:00
Vitaly Mikhailov
ef0cecfe2e
Added <battle.caught> command 2019-10-31 23:57:27 +03:00
darkfire006
3db096afed more emb tower fixes 2019-10-30 22:01:57 -05:00
darkfire006
f69ba3c599 Route42 adjustment for future mt mortar remap 2019-10-29 21:57:15 -05:00
darkfire006
324e931f71 embtower fixes 2019-10-29 21:52:16 -05:00
darkfire006
a5b4a61e9b Diglett's Cave remap+minor viridian city fix 2019-10-29 00:14:25 -05:00
darkfire006
7dd01f6022 move embtower fixes 2019-10-26 04:08:49 -05:00
darkfire006
c175c7b46b more embtower fixes 2019-10-25 17:43:54 -05:00
darkfire006
7293bf512f embtower logic fix 2019-10-23 19:38:15 -05:00
TheOmegaGhost
50d5a9cb44 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2019-10-23 19:12:05 -02:00
TheOmegaGhost
17a729fca8 Finalized Emb Tower text
crackhead n fixed
2019-10-23 18:46:32 -02:00
darkfire006
d026fb9b57 Change rock tunnel to HGSS layout 2019-10-22 23:45:57 -05:00
darkfire006
b40700e784 embtower fixes 2019-10-21 22:21:24 -05:00
TheOmegaGhost
a7203e945a Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2019-10-21 17:36:36 -02:00
TheOmegaGhost
5ed26a2abb N text + minor updates 2019-10-21 17:35:50 -02:00
darkfire006
3ef99377fd minor ruins/mst fixes 2019-10-20 23:15:59 -05:00
darkfire006
400dfc2a1f minor wild pokemon changes 2019-10-19 22:33:32 -05:00
darkfire006
b35df122bf updated SS Aqua trainer teams 2019-10-19 01:32:01 -05:00
darkfire006
c89f20c447 increase cinnabar trainers levels 2019-10-18 16:14:36 -05:00
Vitaly Mikhailov
408c97e5d5
Update ActionScript.vb 2019-10-18 22:06:30 +03:00
darkfire006
24ccc5876e enethil fix 2019-10-16 23:56:26 -05:00
darkfire006
fc7242a236 Fix some minor stuff about my KTower battles 2019-10-15 23:48:49 -05:00
darkfire006
7c2ab989db Enethil update 2019-10-15 21:35:07 -05:00
darkfire006
33d6b4aa63 minor logic fixes 2019-10-15 18:21:35 -05:00
darkfire006
0ec7b25350 set up light and dark stones 2019-10-14 23:18:20 -05:00
darkfire006
493e37c0a6 Fix Kyurem Pokedex entries 2019-10-14 21:56:26 -05:00
darkfire006
1365a832c5 Minor changes to rematch teams
Remove mega stones from weaker johto teams. several level changes, fix
erika's serperior
2019-10-14 21:54:42 -05:00
darkfire006
50a71beb07 tao trio minus text 2019-10-13 21:08:15 -05:00
darkfire006
0c02308e93 tao trio battle music 2019-10-13 19:35:19 -05:00
darkfire006
e6152b6d96 fix stone map names 2019-10-13 19:30:49 -05:00
darkfire006
adb048805c add Light and Dark Stones as 651 and 652 2019-10-13 18:05:35 -05:00
darkfire006
4223556cb3 oops its dark and light not black and white 2019-10-13 17:58:26 -05:00
darkfire006
aecf8dd2a6 change embtower maps around 2019-10-13 17:03:04 -05:00
darkfire006
db81ca3dea Get stones plot with temp text and no actual stones 2019-10-13 01:16:07 -05: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
5682b4fd1b taotrio story line script frames 2019-10-12 21:41:51 -05:00
darkfire006
7fffcea5ce wild pokemon outside of grass fix 2019-10-12 18:09:43 -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
TheOmegaGhost
6403f42a36 Fixed Gem descriptions 2019-10-10 04:01:28 -03:00
darkfire006
c61dc8584e N texture and following pokemon ID 2019-10-09 21:30:06 -05:00
darkfire006
caa802de33 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2019-10-09 20:59:18 -05:00
darkfire006
fd08971d66 rename file 2019-10-09 20:59:15 -05:00
Ruan Pablo
f98810c414 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2019-10-09 03:10:57 -03:00
Ruan Pablo
5b5a648843 Choice Items Added 2019-10-09 03:10:44 -03:00
darkfire006
48ad96861e minor detail forgotten 2019-10-08 23:29:19 -05:00
darkfire006
d7fac697de Museum redo+DNA Scientist script cleanup 2019-10-08 23:26:42 -05:00
darkfire006
b5265224f4 Potential Grandpa Fix 2019-10-07 20:44:10 -05:00
darkfire006
3bb6da045e kyurem fuse script 2019-10-06 23:05:30 -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
darkfire006
efa001061f forbid fused trades
for Kyurem
2019-10-06 18:28:42 -05:00
darkfire006
e6a50f64ca add embtower files to project, minor fixes
changed music lowered r/z npc
2019-10-06 15:07:27 -05:00
FantaX1911
3aee80d8cc Initial embedded tower commit for 0.57 2019-10-06 17:02:35 +03:00
FantaX1911
df9f4e0fd1 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2019-10-06 17:00:56 +03:00
FantaX1911
a585e85d27 Revert "Initial Embedded Tower Commit for 0.57"
This reverts commit 9fcb6be0c89670ace4a88860962b00e0fdad74e2.
2019-10-06 17:00:45 +03:00
FantaX1911
9fcb6be0c8 Initial Embedded Tower Commit for 0.57 2019-10-06 16:59:16 +03:00
darkfire006
9672fd5242 jessie/james no intro text 2019-10-04 20:31:48 -05:00
darkfire006
49e8789961 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2019-10-04 20:19:09 -05:00
darkfire006
8c68b0f1d7 0.56 wrap up 2019-10-04 20:19:08 -05:00
Ruan Pablo
8bb0c00a10 Belly Drum fails if attack maxed, fixed stat messages 2019-10-02 17:31:27 -03:00
darkfire006
f56696df23 Stat in crease text change 2019-10-01 19:01:10 -05:00
darkfire006
9714b42297 minor fixes to agatha and trt 2019-10-01 17:58:20 -05:00
TheOmegaGhost
ac6882104c Added Elemental Gems + new gene location 2019-10-01 02:32:04 -03:00
TheOmegaGhost
8e1c0733aa Added Snowball and Cell Battery battle effects 2019-09-30 19:34:52 -03:00
TheOmegaGhost
f5fb2495ee Fixed Berserk Gene item ID on Cerulean Cave 2019-09-30 19:34:31 -03:00
darkfire006
94ca5e3a73 pokemon cries slash didnt match for no apparent reason 2019-09-28 22:12:57 -05:00
darkfire006
256c9a427c minor pallet town fix 2019-09-28 01:06:30 -05:00
TheOmegaGhost
77796f85bd Kee, Maranga and Roseli placed in Berry Forest 2019-09-28 02:19:37 -03:00
TheOmegaGhost
c9257c392c Terrain items, crunchies and gene now obtainable 2019-09-28 00:13:39 -03:00
Ruan Pablo
aedec48f93 Terrain final implementation + typos and move fixes
fixed fake-out/first impression working on 2 turns
fixed protecting move breaking messages
fixed trapping/binding moves and abilities
fixed flinch message popping up unnecessarily
updated natural gift BP calculation
updated some moves' contest category and other stats
added roseli, kee, maranga berry effects
added alolan pokemon abilities
added smacking down effect
added terrain as well as its effects
replaced polkadot bow (no use) with berserk gene
other minor fixes such as typos, captalizations
wrapping up other commits
2019-09-27 15:46:23 -03:00
Ruan Pablo
9f7c6ccd68 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2019-09-25 00:05:29 -03:00
darkfire006
d5cd535685 Fix Dusk ball to have 3.5 in caves too 2019-09-23 23:01:39 -05:00
darkfire006
c224a8d72d Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2019-09-23 22:39:33 -05:00
darkfire006
cf79bc4d52 Fill Whirl Island WaterFall Cave Wall 2019-09-23 22:37:39 -05:00
darkfire006
d86bf128b0 Rival Pokemon Fix
Espeon->Crobat
2019-09-23 22:11:01 -05:00
Ruan Pablo
4907ee5bf2 Terrain related moves added 2019-09-22 18:47:55 -03:00
Ruan Pablo
dc10d9d505 Made Whitney mention Ride 2019-09-22 18:47:02 -03:00
Ruan Pablo
2b0ca66bbf Minor move adjustments 2019-09-22 18:46:13 -03:00
Ruan Pablo
9a166d3e42 Terrain ability pages 2019-09-22 18:45:26 -03:00
Ruan Pablo
c80a3a23d5 Missing item graphics added 2019-09-22 18:44:05 -03:00
Ruan Pablo
67fba90004 Roseli, Kee, Maranga added + berry BP update 2019-09-22 18:43:13 -03:00
Ruan Pablo
34122c1849 Preventing safari/sport ball smuggling 2019-09-15 05:39:34 -03:00
Ruan Pablo
52bb7ef637 Pinsir OW fix 2019-09-15 05:35:56 -03:00
Ruan Pablo
fa880148d8 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2019-09-03 16:15:57 -03:00
Ruan Pablo
953e3fad52 Alolan Pokémon Sprites 2019-09-03 16:15:49 -03:00
darkfire006
cd58d7f182 add regionalform tag and some other minor changes 2019-08-12 00:06:01 -05:00
darkfire006
938813d493 add wild alolan forms to places around sevii 2019-08-12 00:05:05 -05:00
darkfire006
2ec1a2b7f3 trainers get alolan pokemon 2019-08-12 00:01:43 -05:00
darkfire006
68ed254394 Evo stones store stuff 2019-08-12 00:00:50 -05:00
CaptainSegis
e1faeb362f Hopefully fixed all time related issues 2019-08-03 18:37:07 -05:00
darkfire006
0edd21f129 thunderbolt on lanturn 2019-06-29 15:39:36 -05:00
darkfire006
e091b98688 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2019-06-03 00:14:13 -05:00
darkfire006
e2ad6b3021 machoke to machamp 2019-06-03 00:14:11 -05:00
Ruan Pablo
3a378a1350 Some Gen 7 OW sprites + move fixes 2019-06-02 22:42:09 -03:00
darkfire006
d47dd0506e health weirdness fix 2019-06-01 21:51:26 -05:00
darkfire006
84c68a4fcf wrong region fix 2019-06-01 21:41:12 -05:00
Ruan Pablo
270361bf7b minor diner fix 2019-05-13 19:12:00 -03:00
Ruan Pablo
9c3c1c9968 new dialog and fixes (+)
dialog fixes
TRT event
itemsheet update
pokemonimageview integer scaling
new follower interactions
teleport set -6 priority (LGPE)
Detective Pikachu easter egg
2019-05-13 19:11:12 -03:00
Ruan Pablo
78dedaa3b0 gym leader dialog (merge) 2019-05-03 00:12:50 -03:00
Ruan Pablo
66b1f00fcb TRT sheet add + item gfx update 2019-05-03 00:03:11 -03:00
darkfire006
89212f6a9e trainer typo 2019-03-10 16:31:48 -05:00
darkfire006
f080e1129f fix Battle Bar Caps 2019-03-08 01:14:29 -06:00
darkfire006
f8ea96a577 alolan prep stuff 2019-02-18 23:40:44 -06:00
darkfire006
45ec5e257d fix jjm and add falkner's gym leader texts 2019-02-18 21:27:54 -06:00
darkfire006
0d4e51bd7e jjm related fixes 2019-02-18 01:26:14 -06:00
darkfire006
d7f1322e3a fix jjm shrine side and eliminate elder li exploit 2019-02-18 00:35:15 -06:00
darkfire006
a33fdd9f61 Minor fixes QA related
dden-ID
ecru-east gate
grod-sign
mtm-ladders
clubmap-jjm e and li
shrine-cleanup no real change
main-clean up no real change
2019-02-17 20:20:41 -06:00
darkfire006
1b6062e37e Minor QA fixes
Goldenrod battle bar sign walkthrough and DBreath
2019-02-17 13:56:20 -06:00
darkfire006
8494c01322 various fixes from QA 2019-02-16 12:28:41 -06:00
darkfire006
642365f389 fix badge and move typos 2019-02-16 02:50:13 -06:00
darkfire006
8f844e4e19 several rematch bugs because QA 2019-02-15 22:42:16 -06:00
darkfire006
779ceb1b84 my fucking dumbass removed the map script.... 2019-02-15 20:48:04 -06:00
darkfire006
34f193df29 Fix Gym Rewards and rename a boat 2019-02-10 14:03:20 -06:00
darkfire006
72b4468862 Wild Pokemon for pallet and cinnabar 2019-02-09 01:30:38 -06:00
darkfire006
73ccdc3618 vbproj include of TM files 2019-02-08 12:47:45 -10:00
Ruan Pablo
dcbb8c2347 Merge branch 'master' of https://github.com/P3D-Legacy/P3D-Legacy 2019-02-08 02:40:59 -02:00
Ruan Pablo
17507650f8 item icon updates 2019-02-08 02:36:23 -02:00
darkfire006
6348ea0fc6 Item changes
Fix Rock incense, Edit Pink Bow text, add 11 new TMs
2019-02-07 22:23:54 -06:00
darkfire006
d133939367 last 3 script files for Gym Rematch 2019-02-05 21:59:41 -06:00
darkfire006
9ea9a61864 Gym Leader Rematches Round X
Minor text and team changes to the Gym Leaders
introduction
2019-02-04 00:57:48 -06:00
CaptainSegis
2dab72b9a1 Post release stuff 2019-02-03 18:22:09 -05:00
CaptainSegis
74517e2f5f v0.55.2 Release 2019-02-03 18:19:11 -05:00
9470 changed files with 139745 additions and 111305 deletions

31
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View File

@ -0,0 +1,31 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: bug
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. Windows]
- Version [e.g. 22]
**Additional context**
Add any other context about the problem here, like for example a crash log.

View File

@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.

6
.gitignore vendored
View File

@ -301,8 +301,9 @@ Network Trash Folder
Temporary Items
.apdisk
# ignore /lib/save
# ignore /lib
lib/save/
lib/build/
# ignore binaries in p3d project
p3d/**/*.exe
@ -315,6 +316,3 @@ p3d/GameModes/
p3d/save/
p3d/screenshots/
p3d/log.dat
# include lib/build
!lib/build

2
.gitmodules vendored
View File

@ -4,5 +4,5 @@
branch = master
[submodule "lib/game-dev-common"]
path = lib/game-dev-common
url = https://github.com/nilllzz/Game-Dev-Common.git
url = https://github.com/P3D-Legacy/Game-Dev-Common.git
branch = master

76
CODE_OF_CONDUCT.md Normal file
View File

@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment
include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project leader at daniel@kilobyte.no. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq

32
CONTRIBUTING.md Normal file
View File

@ -0,0 +1,32 @@
# Contributing
We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:
- Reporting a bug
- Discussing the current state of the code
- Submitting a fix
- Proposing new features
- Becoming a contributor
## We Develop with Github
We use github to host code, to track issues and feature requests, as well as accept pull requests.
Pull requests are the best way to propose changes to the codebase (we use [Github Flow](https://guides.github.com/introduction/flow/index.html)). We actively welcome your pull requests:
1. Fork the repo and create your branch from `master`.
2. If you've added code that should be tested, test it.
3. Ensure your commits has descriptive text.
4. Issue that pull request!
## Any contributions you make will be under the GNU GPLv3 License
In short, when you submit code changes, your submissions are understood to be under the same [GNU GPLv3 license](http://choosealicense.com/licenses/gpl-3.0/) that covers the project.
## Reporting bugs
We use GitHub [issues](https://github.com/P3D-Legacy/P3D-Legacy/issues) to track public bugs. Report a bug by opening a new issue; it's that easy! Write bug reports with detail, this makes it a lot easier to understand the issue.
**Great Bug Reports** tend to have:
- A quick summary and/or background
- Steps to reproduce. Be specific!
- What you expected would happen
- What actually happens
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)

View File

@ -1,11 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageRestore>
<add key="enabled" value="True" />
<add key="automatic" value="True" />
</packageRestore>
<packageSources>
<add key="monogame-dev" value="http://teamcity.monogame.net/guestAuth/app/nuget/v1/FeedService.svc/" />
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>

View File

@ -0,0 +1,109 @@
Public Class BABackground
Inherits BattleAnimation3D
Dim FadeInSpeed As Single = 0.01F
Dim FadeOutSpeed As Single = 0.01F
Dim BackgroundOpacity As Single = 0.0F
Dim Texture As Texture2D
Dim DoTile As Boolean = False
Dim AnimationWidth As Integer = -1
Dim AfterFadeInOpacity As Single = 1.0F
Dim FadeProgress As FadeSteps = FadeSteps.FadeIn
Dim DurationDate As Date
Dim DurationWhole As Single
Dim DurationFraction As Single
Dim BackgroundAnimation As Animation
Dim CurrentRectangle As New Rectangle(0, 0, 0, 0)
Dim TextureScale As Integer = 4
Public Enum FadeSteps As Integer
FadeIn
Duration
FadeOut
End Enum
Public Sub New(ByVal Texture As Texture2D, ByVal startDelay As Single, ByVal endDelay As Single, ByVal Duration As Single, Optional ByVal AfterFadeInOpacity As Single = 1.0F, Optional ByVal FadeInSpeed As Single = 0.125F, Optional ByVal FadeOutSpeed As Single = 0.125F, Optional ByVal DoTile As Boolean = False, Optional ByVal AnimationLength As Integer = 1, Optional ByVal AnimationSpeed As Integer = 2, Optional TextureScale As Integer = 4)
MyBase.New(New Vector3(0.0F), TextureManager.DefaultTexture, New Vector3(1.0F), startDelay, endDelay)
Me.Texture = Texture
Me.AfterFadeInOpacity = AfterFadeInOpacity
Me.FadeInSpeed = FadeInSpeed
Me.FadeOutSpeed = FadeOutSpeed
Me.DoTile = DoTile
Me.AnimationWidth = CInt(Texture.Width / AnimationLength)
DurationWhole = CSng(Math.Truncate(CDbl(Duration / 6.0F)))
DurationFraction = CSng((Duration / 6.0F - DurationWhole) * 1000)
Me.TextureScale = TextureScale
If Me.AnimationWidth <> -1 OrElse Me.AnimationWidth <> Nothing Then
BackgroundAnimation = New Animation(Me.Texture, 1, AnimationLength, Me.AnimationWidth, Me.Texture.Height, AnimationSpeed * 24, 0, 0)
CurrentRectangle = BackgroundAnimation.TextureRectangle
Else
Me.AnimationWidth = Texture.Width
End If
Me.Visible = False
Me.AnimationType = AnimationTypes.Background
End Sub
Public Overrides Sub Render()
Dim BackgroundTarget As New RenderTarget2D(Core.GraphicsDevice, Core.windowSize.Width, Core.windowSize.Height, False, SurfaceFormat.Color, DepthFormat.Depth24Stencil8)
Core.GraphicsDevice.SetRenderTarget(BackgroundTarget)
GraphicsDevice.Clear(Microsoft.Xna.Framework.Color.Transparent)
If Date.Now >= startDelay AndAlso Me.BackgroundOpacity > 0.0F Then
If DoTile = False Then
Core.SpriteBatch.Draw(Texture, New Rectangle(0, 0, windowSize.Width, windowSize.Height), CurrentRectangle, New Color(255, 255, 255, CInt(255 * Me.BackgroundOpacity)))
Else
For Dx = 0 To Core.windowSize.Width Step AnimationWidth
For Dy = 0 To Core.windowSize.Height Step Texture.Height
Core.SpriteBatch.Draw(Texture, New Rectangle(Dx * TextureScale, Dy * TextureScale, AnimationWidth * TextureScale, Texture.Height * TextureScale), CurrentRectangle, New Color(255, 255, 255, CInt(255 * Me.BackgroundOpacity)))
Next
Next
End If
End If
Core.GraphicsDevice.SetRenderTarget(Nothing)
Core.SpriteBatch.Draw(BackgroundTarget, windowSize, New Color(255, 255, 255, CInt(255 * Me.BackgroundOpacity)))
End Sub
Public Overrides Sub DoActionActive()
If BackgroundAnimation IsNot Nothing Then
BackgroundAnimation.Update(0.005)
If CurrentRectangle <> BackgroundAnimation.TextureRectangle Then
CurrentRectangle = BackgroundAnimation.TextureRectangle
End If
End If
Select Case Me.FadeProgress
Case FadeSteps.FadeIn
If Me.AfterFadeInOpacity > Me.BackgroundOpacity Then
Me.BackgroundOpacity += Me.FadeInSpeed
If Me.BackgroundOpacity >= Me.AfterFadeInOpacity Then
DurationDate = Date.Now + New TimeSpan(0, 0, 0, CInt(DurationWhole), CInt(DurationFraction))
FadeProgress = FadeSteps.Duration
Me.BackgroundOpacity = Me.AfterFadeInOpacity
End If
Else
FadeProgress = FadeSteps.Duration
Me.BackgroundOpacity = Me.AfterFadeInOpacity
End If
Case FadeSteps.Duration
If Date.Now >= DurationDate Then
FadeProgress = FadeSteps.FadeOut
End If
Case FadeSteps.FadeOut
If Me.BackgroundOpacity > 0.0F Then
Me.BackgroundOpacity -= Me.FadeOutSpeed
If Me.BackgroundOpacity <= 0.0F Then
Me.BackgroundOpacity = 0.0F
Me.Ready = True
End If
Else
Me.BackgroundOpacity = 0.0F
Me.Ready = True
End If
End Select
End Sub
End Class

View File

@ -0,0 +1,34 @@
Imports P3D.Screen
Public Class BACameraChangeAngle
Inherits BattleAnimation3D
Dim CameraAngleID As Integer
Dim BV2Screen As BattleSystem.BattleScreen
Public Sub New(ByRef Battlescreen As BattleSystem.BattleScreen, ByVal CameraAngleID As Integer, ByVal startDelay As Single, ByVal endDelay As Single)
MyBase.New(New Vector3(0.0F), TextureManager.DefaultTexture, New Vector3(1.0F), startDelay, endDelay)
Me.BV2Screen = Battlescreen
Me.CameraAngleID = CameraAngleID
Me.Visible = False
Me.AnimationType = AnimationTypes.Camera
End Sub
Public Overrides Sub DoActionActive()
Select Case CameraAngleID
Case 0
Me.BV2Screen.Battle.ChangeCameraAngle(0, True, Me.BV2Screen)
Case 1
Me.BV2Screen.Battle.ChangeCameraAngle(1, True, Me.BV2Screen)
Case 2
Me.BV2Screen.Battle.ChangeCameraAngle(2, True, Me.BV2Screen)
End Select
Me.Ready = True
End Sub
End Class

View File

@ -0,0 +1,313 @@
Public Class BACameraOscillateMove
Inherits BattleAnimation3D
Dim StartPosition As Vector3
Dim ReturnToStart As Vector3
Dim HalfDistance As New Vector3(0.0F)
Dim DestinationDistance As New Vector3(0.0F)
Dim CurrentDistance As New Vector3(0.0F)
Dim MoveSpeed As Single
Dim MoveBothWays As Boolean = True
Dim MovementCurve As Integer = 0
Dim Duration As TimeSpan
Dim ReadyTime As Date
Dim ReadyAxis As New Vector3(0)
Dim InterpolationSpeed As Vector3
Dim InterpolationDirection As Boolean = True
Public Enum Curves As Integer
Linear
Smooth
End Enum
Public Sub New(ByVal Distance As Vector3, ByVal Speed As Single, ByVal BothWays As Boolean, ByVal Duration As TimeSpan, ByVal startDelay As Single, ByVal endDelay As Single, Optional MovementCurve As Integer = 0, Optional ReturnToStart As Vector3 = Nothing)
MyBase.New(New Vector3(0.0F), TextureManager.DefaultTexture, New Vector3(1.0F), startDelay, endDelay)
Me.HalfDistance = Distance
Me.DestinationDistance = Me.HalfDistance
Me.MoveSpeed = Speed
Me.MoveBothWays = BothWays
Me.Duration = Duration
Me.MovementCurve = CType(MovementCurve, Curves)
Me.Visible = False
Select Case MovementCurve
Case Curves.Linear
InterpolationSpeed = New Vector3(MoveSpeed)
Case Curves.Smooth
InterpolationSpeed = New Vector3(0.0F)
End Select
If ReturnToStart <> Nothing Then
Me.ReturnToStart = ReturnToStart
End If
Me.AnimationType = AnimationTypes.Move
End Sub
Public Overrides Sub DoActionActive()
Move()
End Sub
Private Sub Move()
If StartPosition = Nothing Then
StartPosition = Screen.Camera.Position
End If
If ReadyTime = Nothing Then
ReadyTime = Date.Now + Duration
End If
If MovementCurve = Curves.Smooth Then
If InterpolationDirection = True Then
If InterpolationSpeed.X < MoveSpeed Then
InterpolationSpeed.X += MoveSpeed / 10
Else
InterpolationSpeed.X = MoveSpeed
End If
If InterpolationSpeed.Y < MoveSpeed Then
InterpolationSpeed.Y += MoveSpeed / 10
Else
InterpolationSpeed.Y = MoveSpeed
End If
If InterpolationSpeed.Z < MoveSpeed Then
InterpolationSpeed.Z += MoveSpeed / 10
Else
InterpolationSpeed.Z = MoveSpeed
End If
Else
If Date.Now < ReadyTime Then
If InterpolationSpeed.X > 0 Then
InterpolationSpeed.X -= MoveSpeed / 10
Else
InterpolationSpeed.X = 0
End If
If InterpolationSpeed.Y > 0 Then
InterpolationSpeed.Y -= MoveSpeed / 10
Else
InterpolationSpeed.Y = 0
End If
If InterpolationSpeed.Z > 0 Then
InterpolationSpeed.Z -= MoveSpeed / 10
Else
InterpolationSpeed.Z = 0
End If
Else
If InterpolationSpeed.X > MoveSpeed / 10 * 3 Then
InterpolationSpeed.X -= MoveSpeed / 10
Else
InterpolationSpeed.X = MoveSpeed / 10 * 3
End If
If InterpolationSpeed.Y > MoveSpeed / 10 * 3 Then
InterpolationSpeed.Y -= MoveSpeed / 10
Else
InterpolationSpeed.Y = MoveSpeed / 10 * 3
End If
If InterpolationSpeed.Z > MoveSpeed / 10 * 3 Then
InterpolationSpeed.Z -= MoveSpeed / 10
Else
InterpolationSpeed.Z = MoveSpeed / 10 * 3
End If
End If
End If
End If
If CurrentDistance.X <> DestinationDistance.X Then
If CurrentDistance.X < DestinationDistance.X Then
CurrentDistance.X += InterpolationSpeed.X
Else
CurrentDistance.X -= InterpolationSpeed.X
End If
If Math.Abs(CurrentDistance.X) / Math.Abs(HalfDistance.X) > 0.75F Then
InterpolationDirection = False
End If
If DestinationDistance.X > 0.0F Then
If CurrentDistance.X >= DestinationDistance.X Then
CurrentDistance.X = DestinationDistance.X
End If
ElseIf DestinationDistance.X < 0.0F Then
If CurrentDistance.X <= DestinationDistance.X Then
CurrentDistance.X = DestinationDistance.X
End If
Else
If CurrentDistance.X > DestinationDistance.X Then
If CurrentDistance.X - InterpolationSpeed.X <= DestinationDistance.X Then
CurrentDistance.X = DestinationDistance.X
End If
Else
If CurrentDistance.X + InterpolationSpeed.X >= DestinationDistance.X Then
CurrentDistance.X = DestinationDistance.X
End If
End If
End If
Else
If Date.Now < ReadyTime Then
If MoveBothWays = True Then
If DestinationDistance.X > 0.0F Then
DestinationDistance.X = 0.0F - Math.Abs(HalfDistance.X) * 2
Else
DestinationDistance.X = 0.0F + Math.Abs(HalfDistance.X) * 2
End If
Else
If DestinationDistance.X > 0.0F Then
DestinationDistance.X = 0.0F
Else
DestinationDistance.X = HalfDistance.X
End If
End If
InterpolationDirection = True
Else
If ReturnToStart.X = 0.0F Then
ReadyAxis.X = 1.0F
Else
If DestinationDistance.X <> 0.0F Then
DestinationDistance.X = 0.0F
InterpolationDirection = True
End If
If CurrentDistance.X = 0.0F Then
ReadyAxis.X = 1.0F
End If
End If
End If
End If
If CurrentDistance.Y <> DestinationDistance.Y Then
If CurrentDistance.Y < DestinationDistance.Y Then
CurrentDistance.Y += InterpolationSpeed.Y
Else
CurrentDistance.Y -= InterpolationSpeed.Y
End If
If Math.Abs(CurrentDistance.Y) / Math.Abs(HalfDistance.Y) > 0.75F Then
InterpolationDirection = False
End If
If DestinationDistance.Y > 0.0F Then
If CurrentDistance.Y >= DestinationDistance.Y Then
CurrentDistance.Y = DestinationDistance.Y
End If
ElseIf DestinationDistance.Y < 0.0F Then
If CurrentDistance.Y <= DestinationDistance.Y Then
CurrentDistance.Y = DestinationDistance.Y
End If
Else
If CurrentDistance.Y > DestinationDistance.Y Then
If CurrentDistance.Y - InterpolationSpeed.Y <= DestinationDistance.Y Then
CurrentDistance.Y = DestinationDistance.Y
End If
Else
If CurrentDistance.Y + InterpolationSpeed.Y >= DestinationDistance.Y Then
CurrentDistance.Y = DestinationDistance.Y
End If
End If
End If
Else
If Date.Now < ReadyTime Then
If MoveBothWays = True Then
If DestinationDistance.Y > 0.0F Then
DestinationDistance.Y = 0.0F - Math.Abs(HalfDistance.Y) * 2
Else
DestinationDistance.Y = 0.0F + Math.Abs(HalfDistance.Y) * 2
End If
Else
If DestinationDistance.Y > 0.0F Then
DestinationDistance.Y = 0.0F
Else
DestinationDistance.Y = HalfDistance.Y
End If
End If
InterpolationDirection = True
Else
If ReturnToStart.Y = 0.0F Then
ReadyAxis.Y = 1.0F
Else
If DestinationDistance.Y <> 0.0F Then
DestinationDistance.Y = 0.0F
InterpolationDirection = True
End If
If CurrentDistance.Y = 0.0F Then
ReadyAxis.Y = 1.0F
End If
End If
End If
End If
If CurrentDistance.Z <> DestinationDistance.Z Then
If CurrentDistance.Z < DestinationDistance.Z Then
CurrentDistance.Z += InterpolationSpeed.Z
Else
CurrentDistance.Z -= InterpolationSpeed.Z
End If
If Math.Abs(CurrentDistance.Y) / Math.Abs(HalfDistance.Y) > 0.75F Then
InterpolationDirection = False
End If
If DestinationDistance.Z > 0.0F Then
If CurrentDistance.Z >= DestinationDistance.Z Then
CurrentDistance.Z = DestinationDistance.Z
End If
ElseIf DestinationDistance.Z < 0.0F Then
If CurrentDistance.Z <= DestinationDistance.Z Then
CurrentDistance.Z = DestinationDistance.Z
End If
Else
If CurrentDistance.Z > DestinationDistance.Z Then
If CurrentDistance.Z - InterpolationSpeed.Z <= DestinationDistance.Z Then
CurrentDistance.Z = DestinationDistance.Z
End If
Else
If CurrentDistance.Z + InterpolationSpeed.Z >= DestinationDistance.Z Then
CurrentDistance.Z = DestinationDistance.Z
End If
End If
End If
Else
If Date.Now < ReadyTime Then
If MoveBothWays = True Then
If DestinationDistance.Z > 0.0F Then
DestinationDistance.Z = 0.0F - Math.Abs(HalfDistance.Z) * 2
Else
DestinationDistance.Z = 0.0F + Math.Abs(HalfDistance.Z) * 2
End If
Else
If DestinationDistance.Z > 0.0F Then
DestinationDistance.Z = 0.0F
Else
DestinationDistance.Z = HalfDistance.Z
End If
End If
InterpolationDirection = True
Else
If ReturnToStart.Z = 0.0F Then
ReadyAxis.Z = 1.0F
Else
If DestinationDistance.Z <> 0.0F Then
DestinationDistance.Z = 0.0F
InterpolationDirection = True
End If
If CurrentDistance.Z = 0.0F Then
ReadyAxis.Z = 1.0F
End If
End If
End If
End If
If HalfDistance.X <> 0.0F Then
Screen.Camera.Position.X = StartPosition.X + Me.CurrentDistance.X
Else
ReadyAxis.X = 1.0F
End If
If HalfDistance.Y <> 0.0F Then
Screen.Camera.Position.Y = StartPosition.Y + Me.CurrentDistance.Y
Else
ReadyAxis.Y = 1.0F
End If
If HalfDistance.Z <> 0.0F Then
Screen.Camera.Position.Z = StartPosition.Z + Me.CurrentDistance.Z
Else
ReadyAxis.Z = 1.0F
End If
If Date.Now > ReadyTime AndAlso ReadyAxis.X = 1.0F AndAlso ReadyAxis.Y = 1.0F AndAlso ReadyAxis.Z = 1.0F Then
Me.Ready = True
End If
End Sub
End Class

View File

@ -0,0 +1,98 @@
Public Class BAEntityColor
Inherits BattleAnimation3D
Dim TargetEntity As Entity
Dim TransitionSpeed As Single = 0.01F
Dim TransitionSpeedOut As Single = 0.01F
Dim ReturnToFromWhenDone As Boolean = False
Dim RemoveEntityAfter As Boolean = False
Dim InitialColorSet As Boolean = False
Dim IsReturning As Boolean = False
Dim ColorTo As Vector3 = New Vector3(1.0F, 1.0F, 1.0F)
Dim ColorFrom As Vector3 = New Vector3(1.0F, 1.0F, 1.0F)
Public Sub New(ByRef Entity As Entity, ByVal RemoveEntityAfter As Boolean, ByVal TransitionSpeedIn As Single, ByVal ReturnToFromWhenDone As Boolean, ByVal startDelay As Single, ByVal endDelay As Single, ByVal ColorTo As Vector3, Optional ByVal ColorFrom As Vector3 = Nothing, Optional TransitionSpeedOut As Single = -1)
MyBase.New(New Vector3(0.0F), TextureManager.DefaultTexture, New Vector3(1.0F), startDelay, endDelay)
Me.RemoveEntityAfter = RemoveEntityAfter
If TransitionSpeedOut = -1 Then
Me.TransitionSpeedOut = TransitionSpeedIn
Else
Me.TransitionSpeedOut = TransitionSpeedOut
End If
Me.TransitionSpeed = TransitionSpeedIn
Me.TargetEntity = Entity
Me.ReturnToFromWhenDone = ReturnToFromWhenDone
If Not ColorFrom = Nothing Then
Me.ColorFrom = ColorFrom
Else
Me.ColorFrom = TargetEntity.Color
End If
Me.ColorTo = ColorTo
Me.Visible = False
Me.AnimationType = AnimationTypes.Transition
End Sub
Public Overrides Sub DoActionActive()
If InitialColorSet = False Then
TargetEntity.Color = ColorFrom
InitialColorSet = True
End If
If TargetEntity.Color.X > ColorTo.X Then
TargetEntity.Color.X -= Me.TransitionSpeed
If TargetEntity.Color.X <= ColorTo.X Then
TargetEntity.Color.X = ColorTo.X
End If
ElseIf TargetEntity.Color.X < ColorTo.X Then
TargetEntity.Color.X += Me.TransitionSpeed
If TargetEntity.Color.X >= ColorTo.X Then
TargetEntity.Color.X = ColorTo.X
End If
End If
If TargetEntity.Color.Y > ColorTo.Y Then
TargetEntity.Color.Y -= Me.TransitionSpeed
If TargetEntity.Color.Y <= ColorTo.Y Then
TargetEntity.Color.Y = ColorTo.Y
End If
ElseIf TargetEntity.Color.Y < ColorTo.Y Then
TargetEntity.Color.Y += Me.TransitionSpeed
If TargetEntity.Color.Y >= ColorTo.Y Then
TargetEntity.Color.Y = ColorTo.Y
End If
End If
If TargetEntity.Color.Z > ColorTo.Z Then
TargetEntity.Color.Z -= Me.TransitionSpeed
If TargetEntity.Color.Z <= ColorTo.Z Then
TargetEntity.Color.Z = ColorTo.Z
End If
ElseIf TargetEntity.Color.Z < ColorTo.Z Then
TargetEntity.Color.Z += Me.TransitionSpeed
If TargetEntity.Color.Z >= ColorTo.Z Then
TargetEntity.Color.Z = ColorTo.Z
End If
End If
If TargetEntity.Color = ColorTo Then
If ReturnToFromWhenDone = False Then
Me.Ready = True
Else
If IsReturning = False Then
ColorTo = ColorFrom
TransitionSpeed = TransitionSpeedOut
IsReturning = True
Else
Me.Ready = True
End If
End If
End If
End Sub
Public Overrides Sub DoRemoveEntity()
If Me.RemoveEntityAfter = True Then
TargetEntity.CanBeRemoved = True
End If
End Sub
End Class

View File

@ -0,0 +1,50 @@
Public Class BAEntityFaceRotate
Inherits BattleAnimation3D
Dim TargetEntity As NPC
Dim EndFaceRotation As Integer
Dim TurnSteps As Integer = 0
Dim TurnSpeed As Integer = 1
Dim TurnTime As Single = 0.0F
Dim TurnDelay As Single = 0.0F
Public Sub New(ByRef TargetEntity As NPC, ByVal TurnSteps As Integer, ByVal startDelay As Single, ByVal endDelay As Single, Optional ByVal EndFaceRotation As Integer = -1, Optional ByVal TurnSpeed As Integer = 1, Optional ByVal TurnDelay As Single = 0.25F)
MyBase.New(New Vector3(0.0F), TextureManager.DefaultTexture, New Vector3(1.0F), startDelay, endDelay)
If EndFaceRotation = -1 Then
Me.EndFaceRotation = TargetEntity.faceRotation
Else
Me.EndFaceRotation = EndFaceRotation
End If
Me.TurnSteps = TurnSteps
Me.TargetEntity = TargetEntity
Me.TurnSpeed = TurnSpeed
Me.TurnDelay = TurnDelay
Me.AnimationType = AnimationTypes.Rotation
End Sub
Public Overrides Sub DoActionActive()
If Me.TurnSteps > 0 Then
If Me.TurnTime <= 0.0F Then
Me.TargetEntity.faceRotation += Me.TurnSpeed
If Me.TargetEntity.faceRotation > 3 Then
Me.TargetEntity.faceRotation -= 4
End If
If Me.TargetEntity.faceRotation < 0 Then
Me.TargetEntity.faceRotation += 4
End If
Me.TurnSteps -= TurnSpeed.ToPositive()
Me.TurnTime = TurnDelay
Else
TurnTime -= 0.1F
End If
Else
If Me.TargetEntity.faceRotation <> Me.EndFaceRotation Then
Me.TargetEntity.faceRotation = Me.EndFaceRotation
End If
Me.Ready = True
End If
End Sub
End Class

View File

@ -0,0 +1,240 @@
Public Class BAEntityMove
Inherits BattleAnimation3D
Dim StartPosition As Vector3
Dim TargetEntity As Entity
Dim Destination As Vector3
Dim MoveDistance As New Vector3(0.0F)
Dim MoveSpeed As Single
Dim MoveYSpeed As Single
Dim InterpolationSpeed As Single
Dim InterpolationYSpeed As Single
Dim SpinX As Boolean = False
Dim SpinZ As Boolean = False
Dim SpinSpeedX As Single = 0.1F
Dim SpinSpeedZ As Single = 0.1F
Dim MovementCurve As Integer = 3
Dim EasedIn As Boolean = False
Dim EasedOut As Boolean = False
Public RemoveEntityAfter As Boolean
Dim ReadyAxis As Vector3 = New Vector3(0.0F)
Public Enum Curves As Integer
EaseIn
EaseOut
EaseInAndOut
Linear
End Enum
Public Sub New(ByRef Entity As Entity, ByVal RemoveEntityAfter As Boolean, ByVal Destination As Vector3, ByVal Speed As Single, ByVal SpinX As Boolean, ByVal SpinZ As Boolean, ByVal startDelay As Single, ByVal endDelay As Single, Optional ByVal SpinXSpeed As Single = 0.1F, Optional ByVal SpinZSpeed As Single = 0.1F, Optional MovementCurve As Integer = 3, Optional MoveYSpeed As Single = 0.0F)
MyBase.New(New Vector3(0.0F), TextureManager.DefaultTexture, New Vector3(1.0F), startDelay, endDelay)
Me.RemoveEntityAfter = RemoveEntityAfter
Me.Destination = Destination
Me.MoveSpeed = Speed
If MoveYSpeed = 0F Then
Me.MoveYSpeed = MoveSpeed
Else
Me.MoveYSpeed = MoveYSpeed
End If
Me.MovementCurve = CType(MovementCurve, Curves)
Me.SpinX = SpinX
Me.SpinZ = SpinZ
Me.SpinSpeedX = SpinXSpeed
Me.SpinSpeedZ = SpinZSpeed
Me.Visible = False
Me.TargetEntity = Entity
Me.StartPosition = TargetEntity.Position
Me.MoveDistance.X = Math.Abs(Me.StartPosition.X - Me.Destination.X)
If TargetEntity.Model IsNot Nothing Then
Me.MoveDistance.Y = Math.Abs(Me.StartPosition.Y - Me.Destination.Y - 0.5F)
Else
Me.MoveDistance.Y = Math.Abs(Me.StartPosition.Y - Me.Destination.Y)
End If
Me.MoveDistance.Z = Math.Abs(Me.StartPosition.Z - Me.Destination.Z)
Select Case MovementCurve
Case Curves.EaseIn
InterpolationSpeed = 0.0F
InterpolationYSpeed = 0.0F
Case Curves.EaseOut
InterpolationSpeed = MoveSpeed
InterpolationYSpeed = MoveYSpeed
Case Curves.EaseInAndOut
InterpolationSpeed = 0.0F
InterpolationYSpeed = 0.0F
Case Curves.Linear
InterpolationSpeed = MoveSpeed
InterpolationYSpeed = MoveYSpeed
End Select
Me.AnimationType = AnimationTypes.Move
End Sub
Public Overrides Sub DoActionUpdate()
Spin()
End Sub
Public Overrides Sub DoActionActive()
Move()
End Sub
Private Sub Spin()
If Me.SpinX = True Then
TargetEntity.Rotation.X += SpinSpeedX
End If
If Me.SpinZ = True Then
TargetEntity.Rotation.Z += SpinSpeedZ
End If
End Sub
Private Sub Move()
Select Case MovementCurve
Case Curves.EaseIn
If EasedIn = False Then
If InterpolationSpeed < MoveSpeed - 0.05F OrElse InterpolationYSpeed < MoveYSpeed - 0.05F Then
If InterpolationSpeed < MoveSpeed - 0.05F Then
InterpolationSpeed = MathHelper.Lerp(InterpolationSpeed, MoveSpeed, 0.9F)
End If
If InterpolationYSpeed < MoveYSpeed - 0.05F Then
InterpolationYSpeed = MathHelper.Lerp(InterpolationYSpeed, MoveYSpeed, 0.9F)
End If
Else
InterpolationSpeed = MoveSpeed
InterpolationYSpeed = MoveYSpeed
EasedIn = True
End If
End If
Case Curves.EaseOut
If EasedOut = False Then
If InterpolationSpeed > 0.05F OrElse InterpolationYSpeed > 0.05F Then
If InterpolationSpeed > 0.05F Then
InterpolationSpeed = MathHelper.Lerp(InterpolationSpeed, 0.0F, 0.9F)
End If
If InterpolationYSpeed > 0.05F Then
InterpolationYSpeed = MathHelper.Lerp(InterpolationYSpeed, 0.0F, 0.9F)
End If
Else
InterpolationYSpeed = 0
InterpolationSpeed = 0
EasedOut = True
End If
End If
Case Curves.EaseInAndOut
If EasedIn = False Then
If InterpolationSpeed < MoveSpeed - 0.05F OrElse InterpolationYSpeed < MoveYSpeed - 0.05F Then
If InterpolationSpeed < MoveSpeed - 0.05F Then
InterpolationSpeed = MathHelper.Lerp(InterpolationSpeed, MoveSpeed, 0.9F)
End If
If InterpolationYSpeed < MoveYSpeed - 0.05F Then
InterpolationYSpeed = MathHelper.Lerp(InterpolationYSpeed, MoveYSpeed, 0.9F)
End If
Else
InterpolationSpeed = MoveSpeed
InterpolationYSpeed = MoveYSpeed
EasedIn = True
End If
Else
If EasedOut = False Then
If MoveDistance.X <= 0.05F AndAlso MoveDistance.Y <= 0.05F AndAlso MoveDistance.Z <= 0.05F Then
If InterpolationSpeed > 0.05F OrElse InterpolationYSpeed > 0.05F Then
If InterpolationSpeed > 0.05F Then
InterpolationSpeed = MathHelper.Lerp(InterpolationSpeed, 0.0F, 0.9F)
End If
If InterpolationYSpeed > 0.05F Then
InterpolationYSpeed = MathHelper.Lerp(InterpolationYSpeed, 0.0F, 0.9F)
End If
Else
InterpolationYSpeed = 0
InterpolationSpeed = 0
EasedOut = True
End If
Else
If InterpolationSpeed > 0.05F + MoveSpeed / 10 * 3 OrElse InterpolationYSpeed > 0.05F + MoveYSpeed / 10 * 3 Then
If InterpolationSpeed > 0.05F + MoveSpeed / 10 * 3 Then
InterpolationSpeed = MathHelper.Lerp(InterpolationSpeed, 0.0F, 0.9F)
End If
If InterpolationYSpeed > 0.05F + MoveYSpeed / 10 * 3 Then
InterpolationYSpeed = MathHelper.Lerp(InterpolationYSpeed, 0.0F, 0.9F)
End If
Else
InterpolationYSpeed = MoveSpeed / 10 * 3
InterpolationSpeed = MoveSpeed / 10 * 3
End If
End If
End If
End If
End Select
If MoveDistance.X > 0.05F Then
If StartPosition.X < Me.Destination.X Then
TargetEntity.Position.X += Me.InterpolationSpeed
If TargetEntity.Position.X >= Me.Destination.X + 0.05 Then
TargetEntity.Position.X = Me.Destination.X
End If
ElseIf StartPosition.X > Me.Destination.X Then
TargetEntity.Position.X -= Me.InterpolationSpeed
If TargetEntity.Position.X <= Me.Destination.X + 0.05 Then
TargetEntity.Position.X = Me.Destination.X
End If
End If
MoveDistance.X -= Me.InterpolationSpeed
Else
ReadyAxis.X = 1.0F
End If
If MoveDistance.Y > 0.05F Then
If StartPosition.Y < Me.Destination.Y Then
TargetEntity.Position.Y += Me.MoveYSpeed
If TargetEntity.Position.Y >= Me.Destination.Y - 0.05 Then
TargetEntity.Position.Y = Me.Destination.Y
End If
ElseIf StartPosition.Y > Me.Destination.Y Then
TargetEntity.Position.Y -= Me.MoveYSpeed
If TargetEntity.Position.Y <= Me.Destination.Y + 0.05 Then
TargetEntity.Position.Y = Me.Destination.Y
End If
End If
MoveDistance.Y -= Me.MoveYSpeed
Else
ReadyAxis.Y = 1.0F
End If
If MoveDistance.Z > 0.05F Then
If StartPosition.Z < Me.Destination.Z Then
TargetEntity.Position.Z += Me.InterpolationSpeed
If TargetEntity.Position.Z >= Me.Destination.Z - 0.05 Then
TargetEntity.Position.Z = Me.Destination.Z
End If
ElseIf StartPosition.Z > Me.Destination.Z Then
TargetEntity.Position.Z -= Me.InterpolationSpeed
If TargetEntity.Position.Z <= Me.Destination.Z + 0.05 Then
TargetEntity.Position.Z = Me.Destination.Z
End If
End If
MoveDistance.Z -= Me.MoveYSpeed
Else
ReadyAxis.Z = 1.0F
End If
If ReadyAxis.X = 1.0F AndAlso ReadyAxis.Y = 1.0F AndAlso ReadyAxis.Z = 1.0F Then
Me.Ready = True
End If
End Sub
Public Overrides Sub DoRemoveEntity()
If Me.RemoveEntityAfter = True Then
TargetEntity.CanBeRemoved = True
End If
End Sub
End Class

View File

@ -0,0 +1,50 @@
Public Class BAEntityOpacity
Inherits BattleAnimation3D
Dim TargetEntity As Entity
Dim TransitionSpeed As Single = 0.01F
Dim FadeIn As Boolean = False
Dim EndState As Single = 0.0F
Dim RemoveEntityAfter As Boolean
Public Sub New(ByRef entity As Entity, ByVal RemoveEntityAfter As Boolean, ByVal TransitionSpeed As Single, ByVal FadeIn As Boolean, ByVal EndState As Single, ByVal startDelay As Single, ByVal endDelay As Single, Optional ByVal StartState As Single = 1.0F)
MyBase.New(New Vector3(0.0F), TextureManager.DefaultTexture, New Vector3(1.0F), startDelay, endDelay)
Me.RemoveEntityAfter = RemoveEntityAfter
Me.EndState = EndState
Me.FadeIn = FadeIn
Me.TransitionSpeed = TransitionSpeed
Me.TargetEntity = entity
Me.TargetEntity.NormalOpacity = StartState
Me.Visible = False
Me.AnimationType = AnimationTypes.Transition
End Sub
Public Overrides Sub DoActionActive()
If Me.FadeIn = True Then
If Me.EndState > TargetEntity.NormalOpacity Then
TargetEntity.NormalOpacity += Me.TransitionSpeed
If TargetEntity.NormalOpacity >= Me.EndState Then
TargetEntity.NormalOpacity = Me.EndState
End If
End If
Else
If Me.EndState < TargetEntity.NormalOpacity Then
TargetEntity.NormalOpacity -= Me.TransitionSpeed
If TargetEntity.NormalOpacity <= Me.EndState Then
TargetEntity.NormalOpacity = Me.EndState
End If
End If
End If
If TargetEntity.NormalOpacity = Me.EndState Then
Me.Ready = True
End If
End Sub
Public Overrides Sub DoRemoveEntity()
If Me.RemoveEntityAfter = True Then
TargetEntity.CanBeRemoved = True
End If
End Sub
End Class

View File

@ -0,0 +1,323 @@
Public Class BAEntityOscillateMove
Inherits BattleAnimation3D
Dim StartPosition As Vector3
Dim ReturnToStart As Vector3
Dim TargetEntity As Entity
Dim HalfDistance As New Vector3(0.0F)
Dim DestinationDistance As New Vector3(0.0F)
Dim CurrentDistance As New Vector3(0.0F)
Dim MoveSpeed As Single
Dim MoveBothWays As Boolean = True
Dim MovementCurve As Integer = 0
Dim RemoveEntityAfter As Boolean
Dim Duration As TimeSpan
Dim ReadyTime As Date
Dim ReadyAxis As New Vector3(0)
Dim InterpolationSpeed As Vector3
Dim InterpolationDirection As Boolean = True
Public Enum Curves As Integer
Linear
Smooth
End Enum
Public Sub New(ByRef Entity As Entity, ByVal RemoveEntityAfter As Boolean, ByVal Distance As Vector3, ByVal Speed As Single, ByVal BothWays As Boolean, ByVal Duration As TimeSpan, ByVal startDelay As Single, ByVal endDelay As Single, Optional MovementCurve As Integer = 0, Optional ReturnToStart As Vector3 = Nothing)
MyBase.New(New Vector3(0.0F), TextureManager.DefaultTexture, New Vector3(1.0F), startDelay, endDelay)
Me.RemoveEntityAfter = RemoveEntityAfter
Me.HalfDistance = Distance
Me.DestinationDistance = Me.HalfDistance
Me.MoveSpeed = Speed
Me.MoveBothWays = BothWays
Me.Duration = Duration
Me.MovementCurve = CType(MovementCurve, Curves)
Me.Visible = False
Me.TargetEntity = Entity
Select Case MovementCurve
Case Curves.Linear
InterpolationSpeed = New Vector3(MoveSpeed)
Case Curves.Smooth
InterpolationSpeed = New Vector3(0.0F)
End Select
If ReturnToStart <> Nothing Then
Me.ReturnToStart = ReturnToStart
End If
Me.AnimationType = AnimationTypes.Move
End Sub
Public Overrides Sub DoActionActive()
Move()
End Sub
Private Sub Move()
If StartPosition = Nothing Then
StartPosition = TargetEntity.Position
End If
If ReadyTime = Nothing Then
ReadyTime = Date.Now + Duration
End If
If MovementCurve = Curves.Smooth Then
If InterpolationDirection = True Then
If InterpolationSpeed.X < MoveSpeed Then
InterpolationSpeed.X += MoveSpeed / 10
Else
InterpolationSpeed.X = MoveSpeed
End If
If InterpolationSpeed.Y < MoveSpeed Then
InterpolationSpeed.Y += MoveSpeed / 10
Else
InterpolationSpeed.Y = MoveSpeed
End If
If InterpolationSpeed.Z < MoveSpeed Then
InterpolationSpeed.Z += MoveSpeed / 10
Else
InterpolationSpeed.Z = MoveSpeed
End If
Else
If Date.Now < ReadyTime Then
If InterpolationSpeed.X > 0 Then
InterpolationSpeed.X -= MoveSpeed / 10
Else
InterpolationSpeed.X = 0
End If
If InterpolationSpeed.Y > 0 Then
InterpolationSpeed.Y -= MoveSpeed / 10
Else
InterpolationSpeed.Y = 0
End If
If InterpolationSpeed.Z > 0 Then
InterpolationSpeed.Z -= MoveSpeed / 10
Else
InterpolationSpeed.Z = 0
End If
Else
If InterpolationSpeed.X > MoveSpeed / 10 * 3 Then
InterpolationSpeed.X -= MoveSpeed / 10
Else
InterpolationSpeed.X = MoveSpeed / 10 * 3
End If
If InterpolationSpeed.Y > MoveSpeed / 10 * 3 Then
InterpolationSpeed.Y -= MoveSpeed / 10
Else
InterpolationSpeed.Y = MoveSpeed / 10 * 3
End If
If InterpolationSpeed.Z > MoveSpeed / 10 * 3 Then
InterpolationSpeed.Z -= MoveSpeed / 10
Else
InterpolationSpeed.Z = MoveSpeed / 10 * 3
End If
End If
End If
End If
If CurrentDistance.X <> DestinationDistance.X Then
If CurrentDistance.X < DestinationDistance.X Then
CurrentDistance.X += InterpolationSpeed.X
Else
CurrentDistance.X -= InterpolationSpeed.X
End If
If Math.Abs(CurrentDistance.X) / Math.Abs(HalfDistance.X) > 0.75F Then
InterpolationDirection = False
End If
If DestinationDistance.X > 0.0F Then
If CurrentDistance.X >= DestinationDistance.X Then
CurrentDistance.X = DestinationDistance.X
End If
ElseIf DestinationDistance.x < 0.0F Then
If CurrentDistance.X <= DestinationDistance.X Then
CurrentDistance.X = DestinationDistance.X
End If
Else
If CurrentDistance.X > DestinationDistance.X Then
If CurrentDistance.X - InterpolationSpeed.X <= DestinationDistance.X Then
CurrentDistance.X = DestinationDistance.X
End If
Else
If CurrentDistance.X + InterpolationSpeed.X >= DestinationDistance.X Then
CurrentDistance.X = DestinationDistance.X
End If
End If
End If
Else
If Date.Now < ReadyTime Then
If MoveBothWays = True Then
If DestinationDistance.X > 0.0F Then
DestinationDistance.X = 0.0F - Math.Abs(HalfDistance.X) * 2
Else
DestinationDistance.X = 0.0F + Math.Abs(HalfDistance.X) * 2
End If
Else
If DestinationDistance.X > 0.0F Then
DestinationDistance.X = 0.0F
Else
DestinationDistance.X = HalfDistance.X
End If
End If
InterpolationDirection = True
Else
If ReturnToStart.X = 0.0F Then
ReadyAxis.X = 1.0F
Else
If DestinationDistance.X <> 0.0F Then
DestinationDistance.X = 0.0F
InterpolationDirection = True
End If
If CurrentDistance.X = 0.0F Then
ReadyAxis.X = 1.0F
End If
End If
End If
End If
If CurrentDistance.Y <> DestinationDistance.Y Then
If CurrentDistance.Y < DestinationDistance.Y Then
CurrentDistance.Y += InterpolationSpeed.Y
Else
CurrentDistance.Y -= InterpolationSpeed.Y
End If
If Math.Abs(CurrentDistance.Y) / Math.Abs(HalfDistance.Y) > 0.75F Then
InterpolationDirection = False
End If
If DestinationDistance.Y > 0.0F Then
If CurrentDistance.Y >= DestinationDistance.Y Then
CurrentDistance.Y = DestinationDistance.Y
End If
ElseIf DestinationDistance.Y < 0.0F Then
If CurrentDistance.Y <= DestinationDistance.Y Then
CurrentDistance.Y = DestinationDistance.Y
End If
Else
If CurrentDistance.Y > DestinationDistance.Y Then
If CurrentDistance.Y - InterpolationSpeed.Y <= DestinationDistance.Y Then
CurrentDistance.Y = DestinationDistance.Y
End If
Else
If CurrentDistance.Y + InterpolationSpeed.Y >= DestinationDistance.Y Then
CurrentDistance.Y = DestinationDistance.Y
End If
End If
End If
Else
If Date.Now < ReadyTime Then
If MoveBothWays = True Then
If DestinationDistance.Y > 0.0F Then
DestinationDistance.Y = 0.0F - Math.Abs(HalfDistance.Y) * 2
Else
DestinationDistance.Y = 0.0F + Math.Abs(HalfDistance.Y) * 2
End If
Else
If DestinationDistance.Y > 0.0F Then
DestinationDistance.Y = 0.0F
Else
DestinationDistance.Y = HalfDistance.Y
End If
End If
InterpolationDirection = True
Else
If ReturnToStart.Y = 0.0F Then
ReadyAxis.Y = 1.0F
Else
If DestinationDistance.Y <> 0.0F Then
DestinationDistance.Y = 0.0F
InterpolationDirection = True
End If
If CurrentDistance.Y = 0.0F Then
ReadyAxis.Y = 1.0F
End If
End If
End If
End If
If CurrentDistance.Z <> DestinationDistance.Z Then
If CurrentDistance.Z < DestinationDistance.Z Then
CurrentDistance.Z += InterpolationSpeed.Z
Else
CurrentDistance.Z -= InterpolationSpeed.Z
End If
If Math.Abs(CurrentDistance.Y) / Math.Abs(HalfDistance.Y) > 0.75F Then
InterpolationDirection = False
End If
If DestinationDistance.Z > 0.0F Then
If CurrentDistance.Z >= DestinationDistance.Z Then
CurrentDistance.Z = DestinationDistance.Z
End If
ElseIf DestinationDistance.z < 0.0F Then
If CurrentDistance.Z <= DestinationDistance.Z Then
CurrentDistance.Z = DestinationDistance.Z
End If
Else
If CurrentDistance.Z > DestinationDistance.Z Then
If CurrentDistance.Z - InterpolationSpeed.Z <= DestinationDistance.Z Then
CurrentDistance.Z = DestinationDistance.Z
End If
Else
If CurrentDistance.Z + InterpolationSpeed.Z >= DestinationDistance.Z Then
CurrentDistance.Z = DestinationDistance.Z
End If
End If
End If
Else
If Date.Now < ReadyTime Then
If MoveBothWays = True Then
If DestinationDistance.Z > 0.0F Then
DestinationDistance.Z = 0.0F - Math.Abs(HalfDistance.Z) * 2
Else
DestinationDistance.Z = 0.0F + Math.Abs(HalfDistance.Z) * 2
End If
Else
If DestinationDistance.Z > 0.0F Then
DestinationDistance.Z = 0.0F
Else
DestinationDistance.Z = HalfDistance.Z
End If
End If
InterpolationDirection = True
Else
If ReturnToStart.Z = 0.0F Then
ReadyAxis.Z = 1.0F
Else
If DestinationDistance.Z <> 0.0F Then
DestinationDistance.Z = 0.0F
InterpolationDirection = True
End If
If CurrentDistance.Z = 0.0F Then
ReadyAxis.Z = 1.0F
End If
End If
End If
End If
If HalfDistance.X <> 0.0F Then
TargetEntity.Position.X = StartPosition.X + Me.CurrentDistance.X
Else
ReadyAxis.X = 1.0F
End If
If HalfDistance.Y <> 0.0F Then
TargetEntity.Position.Y = StartPosition.Y + Me.CurrentDistance.Y
Else
ReadyAxis.Y = 1.0F
End If
If HalfDistance.Z <> 0.0F Then
TargetEntity.Position.Z = StartPosition.Z + Me.CurrentDistance.Z
Else
ReadyAxis.Z = 1.0F
End If
If Date.Now > ReadyTime AndAlso ReadyAxis.X = 1.0F AndAlso ReadyAxis.Y = 1.0F AndAlso ReadyAxis.Z = 1.0F Then
Me.Ready = True
End If
End Sub
Public Overrides Sub DoRemoveEntity()
If Me.RemoveEntityAfter = True Then
TargetEntity.CanBeRemoved = True
End If
End Sub
End Class

View File

@ -0,0 +1,147 @@
Public Class BAEntityRotate
Inherits BattleAnimation3D
Dim TargetEntity As Entity
Dim RotationSpeedVector As Vector3
Dim EndRotation As Vector3
Dim DoReturn As Boolean = False
Dim ReturnVector As Vector3
Dim hasReturned As Boolean = False
Dim DoRotation As Vector3 = New Vector3(1.0F)
Dim AmountRotated As Vector3 = New Vector3(0.0F)
Dim ReadyAxis As Vector3 = New Vector3(0.0F)
Dim RemoveEntityAfter As Boolean = False
Public Sub New(ByRef Entity As Entity, ByVal RemoveEntityAfter As Boolean, ByVal RotationSpeedVector As Vector3, ByVal EndRotation As Vector3, ByVal startDelay As Single, ByVal endDelay As Single)
MyBase.New(New Vector3(0.0F), TextureManager.DefaultTexture, New Vector3(1.0F), startDelay, endDelay)
Me.RemoveEntityAfter = RemoveEntityAfter
Me.RotationSpeedVector = RotationSpeedVector
Me.EndRotation = EndRotation
Me.TargetEntity = Entity
Me.ReturnVector = TargetEntity.Rotation
Me.AnimationType = AnimationTypes.Rotation
End Sub
Public Sub New(ByRef Entity As Entity, ByVal RemoveEntityAfter As Boolean, ByVal RotationSpeedVector As Vector3, ByVal EndRotation As Vector3, ByVal startDelay As Single, ByVal endDelay As Single, ByVal DoXRotation As Boolean, ByVal DoYRotation As Boolean, ByVal DoZRotation As Boolean)
Me.New(Entity, RemoveEntityAfter, RotationSpeedVector, EndRotation, startDelay, endDelay)
If DoXRotation = False Then
DoRotation.X = 0.0F
ReadyAxis.X = 1.0F
End If
If DoYRotation = False Then
DoRotation.Y = 0.0F
ReadyAxis.Y = 1.0F
End If
If DoZRotation = False Then
DoRotation.Z = 0.0F
ReadyAxis.Z = 1.0F
End If
End Sub
Public Sub New(ByRef Entity As Entity, ByVal RemoveEntityAfter As Boolean, ByVal RotationSpeedVector As Vector3, ByVal EndRotation As Vector3, ByVal startDelay As Single, ByVal endDelay As Single, ByVal DoXRotation As Boolean, ByVal DoYRotation As Boolean, ByVal DoZRotation As Boolean, ByVal DoReturn As Boolean)
Me.New(Entity, RemoveEntityAfter, RotationSpeedVector, EndRotation, startDelay, endDelay, DoXRotation, DoYRotation, DoZRotation)
Me.DoReturn = DoReturn
End Sub
Public Overrides Sub DoActionActive()
If DoRotation.X = 1.0F Then
If AmountRotated.X < Math.Abs(EndRotation.X) Then
If TargetEntity.Rotation.X > Me.EndRotation.X Then
TargetEntity.Rotation.X += Me.RotationSpeedVector.X
If TargetEntity.Rotation.X <= Me.EndRotation.X Then
TargetEntity.Rotation.X = Me.EndRotation.X
End If
ElseIf TargetEntity.Rotation.X < Me.EndRotation.X Then
TargetEntity.Rotation.X += Me.RotationSpeedVector.X
If TargetEntity.Rotation.X >= Me.EndRotation.X Then
TargetEntity.Rotation.X = Me.EndRotation.X
End If
End If
AmountRotated.X += Math.Abs(Me.RotationSpeedVector.X)
Else
ReadyAxis.X = 1.0F
End If
End If
If DoRotation.Y = 1.0F Then
If AmountRotated.Y < Math.Abs(EndRotation.Y) Then
If TargetEntity.Rotation.Y > Me.EndRotation.Y Then
TargetEntity.Rotation.Y += Me.RotationSpeedVector.Y
If TargetEntity.Rotation.Y <= Me.EndRotation.Y Then
TargetEntity.Rotation.Y = Me.EndRotation.Y
End If
ElseIf TargetEntity.Rotation.Y < Me.EndRotation.Y Then
TargetEntity.Rotation.Y += Me.RotationSpeedVector.Y
If TargetEntity.Rotation.Y >= Me.EndRotation.Y Then
TargetEntity.Rotation.Y = Me.EndRotation.Y
End If
End If
AmountRotated.Y += Math.Abs(Me.RotationSpeedVector.Y)
Else
ReadyAxis.y = 1.0F
End If
End If
If DoRotation.Z = 1.0F Then
If AmountRotated.Z < Math.Abs(EndRotation.Z) Then
If TargetEntity.Rotation.Z > Me.EndRotation.Z Then
TargetEntity.Rotation.Z += Me.RotationSpeedVector.Z
If TargetEntity.Rotation.Z <= Me.EndRotation.Z Then
TargetEntity.Rotation.Z = Me.EndRotation.Z
End If
ElseIf TargetEntity.Rotation.Z < Me.EndRotation.Z Then
TargetEntity.Rotation.Z += Me.RotationSpeedVector.Z
If TargetEntity.Rotation.Z >= Me.EndRotation.Z Then
TargetEntity.Rotation.Z = Me.EndRotation.Z
End If
End If
AmountRotated.Z += Math.Abs(Me.RotationSpeedVector.Z)
Else
ReadyAxis.Z = 1.0F
End If
End If
If ReadyAxis.X = 1.0F AndAlso ReadyAxis.Y = 1.0F AndAlso ReadyAxis.Z = 1.0F Then
RotationReady()
End If
End Sub
Private Sub RotationReady()
If Me.DoReturn = True And Me.hasReturned = False Then
Me.hasReturned = True
Me.EndRotation = Me.ReturnVector
Me.RotationSpeedVector = New Vector3(Me.RotationSpeedVector.X * -1, Me.RotationSpeedVector.Y * -1, Me.RotationSpeedVector.Z * -1)
If DoRotation.X = 1.0F Then
ReadyAxis.X = 0.0F
AmountRotated.X -= AmountRotated.X * 2
End If
If DoRotation.Y = 1.0F Then
ReadyAxis.Y = 0.0F
AmountRotated.Y -= AmountRotated.Y * 2
End If
If DoRotation.Z = 1.0F Then
ReadyAxis.Z = 0.0F
AmountRotated.Z -= AmountRotated.Z * 2
End If
Else
Me.Ready = True
End If
End Sub
Public Overrides Sub DoRemoveEntity()
If Me.RemoveEntityAfter = True Then
TargetEntity.CanBeRemoved = True
End If
End Sub
End Class

View File

@ -0,0 +1,116 @@
Public Class BAEntityScale
Inherits BattleAnimation3D
Dim Grow As Boolean = False
Dim EndSize As Vector3
Dim SizeSpeed As Single = 0.01F
Dim TargetEntity As Entity
Dim Anchors As String '1 = Bottom, 2 = Top, 3 = Left, 4 = Right. Combinations are possible.
Dim SpeedMultiplier As Vector3
Dim RemoveEntityAfter As Boolean
Public Sub New(ByRef Entity As Entity, ByVal RemoveEntityAfter As Boolean, ByVal Scale As Vector3, ByVal Grow As Boolean, ByVal EndSize As Vector3, ByVal SizeSpeed As Single, ByVal startDelay As Single, ByVal endDelay As Single, ByVal Anchors As String, Optional SpeedMultiplier As Vector3 = Nothing)
MyBase.New(New Vector3(0.0F), TextureManager.DefaultTexture, Scale, startDelay, endDelay)
Me.RemoveEntityAfter = RemoveEntityAfter
Me.Anchors = Anchors
Me.Grow = Grow
Me.EndSize = EndSize
Me.SizeSpeed = SizeSpeed
Me.TargetEntity = Entity
If SpeedMultiplier <> Nothing Then
Me.SpeedMultiplier = SpeedMultiplier
Else
Me.SpeedMultiplier = New Vector3(1)
End If
Me.AnimationType = AnimationTypes.Size
End Sub
Public Overrides Sub DoActionActive()
Dim saveScale As Vector3 = TargetEntity.Scale
Dim changeX As Single = SizeSpeed * SpeedMultiplier.X
Dim changeY As Single = SizeSpeed * SpeedMultiplier.Y
Dim changeZ As Single = SizeSpeed * SpeedMultiplier.Z
If Grow = True Then
If TargetEntity.Scale.X < Me.EndSize.X Then
TargetEntity.Scale.X += changeX
If TargetEntity.Scale.X >= Me.EndSize.X Then
TargetEntity.Scale.X = Me.EndSize.X
End If
End If
If TargetEntity.Scale.Y < Me.EndSize.Y Then
TargetEntity.Scale.Y += changeY
If TargetEntity.Scale.Y >= Me.EndSize.Y Then
TargetEntity.Scale.Y = Me.EndSize.Y
End If
End If
If TargetEntity.Scale.Z < Me.EndSize.Z Then
TargetEntity.Scale.Z += changeZ
If TargetEntity.Scale.Z >= Me.EndSize.Z Then
TargetEntity.Scale.Z = Me.EndSize.Z
End If
End If
Else
If TargetEntity.Scale.X > Me.EndSize.X Then
TargetEntity.Scale.X -= changeX
If TargetEntity.Scale.X <= Me.EndSize.X Then
TargetEntity.Scale.X = Me.EndSize.X
End If
End If
If TargetEntity.Scale.Y > Me.EndSize.Y Then
TargetEntity.Scale.Y -= changeY
If TargetEntity.Scale.Y <= Me.EndSize.Y Then
TargetEntity.Scale.Y = Me.EndSize.Y
End If
End If
If TargetEntity.Scale.Z > Me.EndSize.Z Then
TargetEntity.Scale.Z -= changeZ
If TargetEntity.Scale.Z <= Me.EndSize.Z Then
TargetEntity.Scale.Z = Me.EndSize.Z
End If
End If
End If
'Bottom
If Anchors.Contains("1") = True Then
Dim diffY As Single = saveScale.Y - TargetEntity.Scale.Y
TargetEntity.Position.Y -= diffY / 2
End If
'Top
If Anchors.Contains("2") = True Then
Dim diffY As Single = saveScale.Y - TargetEntity.Scale.Y
TargetEntity.Position.Y += diffY / 2
End If
'Left
If Anchors.Contains("3") = True Then
Dim diffX As Single = saveScale.X - TargetEntity.Scale.X
TargetEntity.Position.X -= diffX / 2
End If
'Right
If Anchors.Contains("4") = True Then
Dim diffX As Single = saveScale.X - TargetEntity.Scale.X
TargetEntity.Position.X += diffX / 2
End If
If Me.EndSize = TargetEntity.Scale Then
Me.Ready = True
End If
End Sub
Public Overrides Sub DoRemoveEntity()
If Me.RemoveEntityAfter = True Then
TargetEntity.CanBeRemoved = True
End If
End Sub
End Class

View File

@ -0,0 +1,36 @@
Public Class BAEntitySetPosition
Inherits BattleAnimation3D
Dim TargetEntity As Entity
Dim SetPosition As Vector3
Dim RemoveEntityAfter As Boolean
Public Sub New(ByRef Entity As Entity, ByVal RemoveEntityAfter As Boolean, ByVal SetPosition As Vector3, ByVal startDelay As Single, ByVal endDelay As Single)
MyBase.New(New Vector3(0.0F), TextureManager.DefaultTexture, New Vector3(1.0F), startDelay, endDelay)
Me.RemoveEntityAfter = RemoveEntityAfter
Me.SetPosition = SetPosition
Me.Visible = False
Me.TargetEntity = Entity
Me.AnimationType = AnimationTypes.Move
End Sub
Public Overrides Sub DoActionActive()
Dim SetPositionOffset As Vector3 = New Vector3(0)
If TargetEntity.Model IsNot Nothing Then
SetPositionOffset = New Vector3(0, -0.5, 0)
End If
TargetEntity.Position = Me.SetPosition + SetPositionOffset
Me.Ready = True
End Sub
Public Overrides Sub DoRemoveEntity()
If Me.RemoveEntityAfter = True Then
TargetEntity.CanBeRemoved = True
End If
End Sub
End Class

View File

@ -0,0 +1,28 @@
Public Class BAEntityTextureChange
Inherits BattleAnimation3D
Dim Texture As Texture2D
Dim TargetEntity As Entity
Dim RemoveEntityAfter As Boolean
Public Sub New(ByRef Entity As Entity, ByVal RemoveEntityAfter As Boolean, Texture As Texture2D, ByVal startDelay As Single, ByVal endDelay As Single)
MyBase.New(New Vector3(0.0F), TextureManager.DefaultTexture, New Vector3(1.0F), startDelay, endDelay)
Me.RemoveEntityAfter = RemoveEntityAfter
Me.TargetEntity = Entity
Me.Texture = Texture
Me.AnimationType = AnimationTypes.Texture
End Sub
Public Overrides Sub DoActionActive()
TargetEntity.Textures = {Me.Texture}
Me.Ready = True
End Sub
Public Overrides Sub DoRemoveEntity()
If Me.RemoveEntityAfter = True Then
TargetEntity.CanBeRemoved = True
End If
End Sub
End Class

View File

@ -1,134 +0,0 @@
Public Class BAMove
Inherits BattleAnimation3D
Public Destination As Vector3
Public MoveSpeed As Single
Public SpinX As Boolean = False
Public SpinZ As Boolean = False
Public SpinSpeedX As Single = 0.1F
Public SpinSpeedZ As Single = 0.1F
Public Sub New(ByVal Position As Vector3, ByVal Texture As Texture2D, ByVal Scale As Vector3, ByVal Destination As Vector3, ByVal Speed As Single, ByVal SpinX As Boolean, ByVal SpinZ As Boolean, ByVal startDelay As Single, ByVal endDelay As Single)
MyBase.New(Position, Texture, Scale, startDelay, endDelay)
Me.Destination = Destination
Me.MoveSpeed = Speed
Me.Scale = Scale
Me.SpinX = SpinX
Me.SpinZ = SpinZ
Me.AnimationType = AnimationTypes.Move
End Sub
Public Sub New(ByVal Position As Vector3, ByVal Texture As Texture2D, ByVal Scale As Vector3, ByVal Destination As Vector3, ByVal Speed As Single, ByVal startDelay As Single, ByVal endDelay As Single)
Me.New(Position, Texture, Scale, Destination, Speed, False, False, startDelay, endDelay)
End Sub
Public Overrides Sub DoActionUpdate()
Spin()
End Sub
Public Overrides Sub DoActionActive()
Move()
End Sub
Private Sub Spin()
If Me.SpinX = True Then
Me.Rotation.X += SpinSpeedX
End If
If Me.SpinZ = True Then
Me.Rotation.Z += SpinSpeedZ
End If
End Sub
Private Sub Move()
If Me.Position.X < Me.Destination.X Then
Me.Position.X += Me.MoveSpeed
If Me.Position.X >= Me.Destination.X Then
Me.Position.X = Me.Destination.X
End If
ElseIf Me.Position.X > Me.Destination.X Then
Me.Position.X -= Me.MoveSpeed
If Me.Position.X <= Me.Destination.X Then
Me.Position.X = Me.Destination.X
End If
End If
If Me.Position.Y < Me.Destination.Y Then
Me.Position.Y += Me.MoveSpeed
If Me.Position.Y >= Me.Destination.Y Then
Me.Position.Y = Me.Destination.Y
End If
ElseIf Me.Position.Y > Me.Destination.Y Then
Me.Position.Y -= Me.MoveSpeed
If Me.Position.Y <= Me.Destination.Y Then
Me.Position.Y = Me.Destination.Y
End If
End If
If Me.Position.Z < Me.Destination.Z Then
Me.Position.Z += Me.MoveSpeed
If Me.Position.Z >= Me.Destination.Z Then
Me.Position.Z = Me.Destination.Z
End If
ElseIf Me.Position.Z > Me.Destination.Z Then
Me.Position.Z -= Me.MoveSpeed
If Me.Position.Z <= Me.Destination.Z Then
Me.Position.Z = Me.Destination.Z
End If
End If
'Dim x As Integer = 0
'Dim y As Integer = 0
'Dim z As Integer = 0
'If Destination.X < Me.Position.X Then
' x = -1
'ElseIf Destination.X > Me.Position.X Then
' x = 1
'End If
'If Destination.Y < Me.Position.Y Then
' y = -1
'ElseIf Destination.X > Me.Position.Y Then
' y = 1
'End If
'If Destination.Z < Me.Position.Z Then
' z = -1
'ElseIf Destination.Z > Me.Position.Z Then
' z = 1
'End If
'Dim v As Vector3 = New Vector3(x, y, z) * Speed
'Position.X += v.X
'Position.Z += v.Z
'Position.Y += v.Y
'If CInt(Destination.X) = CInt(Me.Position.X) Then
' If Functions.ToPositive(Me.Position.X - Destination.X) <= Me.Speed Then
' Me.Position.X = CInt(Me.Position.X)
' End If
'End If
'If CInt(Destination.Y) = CInt(Me.Position.Y) Then
' If Functions.ToPositive(Me.Position.Y - Destination.Y) <= Me.Speed + 0.01F Then
' Me.Position.Y = CInt(Me.Position.Y)
' End If
'End If
'If CInt(Destination.Z) = CInt(Me.Position.Z) Then
' If Functions.ToPositive(Me.Position.Z - Destination.Z) <= Me.Speed Then
' Me.Position.Z = CInt(Me.Position.Z)
' End If
'End If
If Me.Position = Destination Then
Me.Ready = True
End If
End Sub
End Class

View File

@ -1,41 +0,0 @@
Public Class BAOpacity
Inherits BattleAnimation3D
Public TransitionSpeed As Single = 0.01F
Public FadeIn As Boolean = False
Public EndState As Single = 0.0F
Public Sub New(ByVal Position As Vector3, ByVal Texture As Texture2D, ByVal Scale As Vector3, ByVal TransitionSpeed As Single, ByVal FadeIn As Boolean, ByVal EndState As Single, ByVal startDelay As Single, ByVal endDelay As Single)
MyBase.New(Position, Texture, Scale, startDelay, endDelay)
Me.EndState = EndState
Me.FadeIn = FadeIn
Me.TransitionSpeed = TransitionSpeed
Me.AnimationType = AnimationTypes.Transition
End Sub
Public Overrides Sub DoActionActive()
If Me.FadeIn = True Then
If Me.EndState > Me.Opacity Then
Me.Opacity += Me.TransitionSpeed
If Me.Opacity >= Me.EndState Then
Me.Opacity = Me.EndState
End If
End If
Else
If Me.EndState < Me.Opacity Then
Me.Opacity -= Me.TransitionSpeed
If Me.Opacity <= Me.EndState Then
Me.Opacity = Me.EndState
End If
End If
End If
If Me.Opacity = Me.EndState Then
Me.Ready = True
End If
End Sub
End Class

View File

@ -0,0 +1,31 @@
Public Class BAPlaySound
Inherits BattleAnimation3D
Dim soundfile As String
Dim stopMusic As Boolean
Dim IsPokemon As Boolean
Dim CrySuffix As String = ""
Public Sub New(ByVal sound As String, ByVal startDelay As Single, ByVal endDelay As Single, Optional ByVal stopMusic As Boolean = False, Optional ByVal IsPokemon As Boolean = False, Optional ByVal CrySuffix As String = "")
MyBase.New(New Vector3(0.0F), TextureManager.DefaultTexture, New Vector3(1.0F), startDelay, endDelay)
Me.Scale = New Vector3(1.0F)
soundfile = sound
Me.Visible = False
Me.stopMusic = stopMusic
Me.IsPokemon = IsPokemon
Me.CrySuffix = CrySuffix
AnimationType = AnimationTypes.Sound
End Sub
Public Overrides Sub DoActionActive()
If IsPokemon = True Then
SoundManager.PlayPokemonCry(CInt(soundfile), Me.CrySuffix)
Else
SoundManager.PlaySound(soundfile, stopMusic)
End If
Me.Ready = True
End Sub
End Class

View File

@ -1,129 +0,0 @@
Public Class BARotation
Inherits BattleAnimation3D
Dim RotationVector As Vector3
Dim EndRotation As Vector3
Dim DoReturn As Boolean = False
Dim ReturnVector As Vector3
Dim hasReturned As Boolean = False
Dim DoRotation As Vector3 = New Vector3(1.0F)
Public Sub New(ByVal Position As Vector3, ByVal Texture As Texture2D, ByVal Scale As Vector3, ByVal RotationVector As Vector3, ByVal EndRotation As Vector3, ByVal startDelay As Single, ByVal endDelay As Single)
MyBase.New(Position, Texture, Scale, startDelay, endDelay)
Me.RotationVector = RotationVector
Me.EndRotation = EndRotation
Me.ReturnVector = Me.Rotation
End Sub
Public Sub New(ByVal Position As Vector3, ByVal Texture As Texture2D, ByVal Scale As Vector3, ByVal RotationVector As Vector3, ByVal EndRotation As Vector3, ByVal startDelay As Single, ByVal endDelay As Single, ByVal DoXRotation As Boolean, ByVal DoYRotation As Boolean, ByVal DoZRotation As Boolean)
Me.New(Position, Texture, Scale, RotationVector, EndRotation, startDelay, endDelay)
If DoXRotation = False Then
DoRotation.X = 0.0F
End If
If DoYRotation = False Then
DoRotation.Y = 0.0F
End If
If DoZRotation = False Then
DoRotation.Z = 0.0F
End If
End Sub
Public Sub New(ByVal Position As Vector3, ByVal Texture As Texture2D, ByVal Scale As Vector3, ByVal RotationVector As Vector3, ByVal EndRotation As Vector3, ByVal startDelay As Single, ByVal endDelay As Single, ByVal DoXRotation As Boolean, ByVal DoYRotation As Boolean, ByVal DoZRotation As Boolean, ByVal DoReturn As Boolean)
Me.New(Position, Texture, Scale, RotationVector, EndRotation, startDelay, endDelay, DoXRotation, DoYRotation, DoZRotation)
Me.DoReturn = DoReturn
End Sub
Public Overrides Sub DoActionActive()
If VectorReached() = False Then
If DoRotation.X = 1.0F Then
If Me.Rotation.X > Me.EndRotation.X Then
Me.Rotation.X += Me.RotationVector.X
If Me.Rotation.X <= Me.EndRotation.X Then
Me.Rotation.X = Me.EndRotation.X
End If
ElseIf Me.Rotation.X < Me.EndRotation.X Then
Me.Rotation.X += Me.RotationVector.X
If Me.Rotation.X >= Me.EndRotation.X Then
Me.Rotation.X = Me.EndRotation.X
End If
End If
End If
If DoRotation.Y = 1.0F Then
If Me.Rotation.Y > Me.EndRotation.Y Then
Me.Rotation.Y += Me.RotationVector.Y
If Me.Rotation.Y <= Me.EndRotation.Y Then
Me.Rotation.Y = Me.EndRotation.Y
End If
ElseIf Me.Rotation.Y < Me.EndRotation.Y Then
Me.Rotation.Y += Me.RotationVector.Y
If Me.Rotation.Y >= Me.EndRotation.Y Then
Me.Rotation.Y = Me.EndRotation.Y
End If
End If
End If
If DoRotation.Z = 1.0F Then
If Me.Rotation.Z > Me.EndRotation.Z Then
Me.Rotation.Z += Me.RotationVector.Z
If Me.Rotation.Z <= Me.EndRotation.Z Then
Me.Rotation.Z = Me.EndRotation.Z
End If
ElseIf Me.Rotation.Z < Me.EndRotation.Z Then
Me.Rotation.Z += Me.RotationVector.Z
If Me.Rotation.Z >= Me.EndRotation.Z Then
Me.Rotation.Z = Me.EndRotation.Z
End If
End If
End If
If VectorReached() = True Then
RotationReady()
End If
Else
RotationReady()
End If
End Sub
Private Sub RotationReady()
If Me.DoReturn = True And Me.hasReturned = False Then
Me.hasReturned = True
Me.EndRotation = Me.ReturnVector
Me.RotationVector = New Vector3(Me.RotationVector.X * -1, Me.RotationVector.Y * -1, Me.RotationVector.Z * -1)
Else
Me.Ready = True
End If
End Sub
Private Function VectorReached() As Boolean
If DoRotation.X = 1.0F Then
If EndRotation.X <> Me.Rotation.X Then
Return False
End If
End If
If DoRotation.Y = 1.0F Then
If EndRotation.Y <> Me.Rotation.Y Then
Return False
End If
End If
If DoRotation.Z = 1.0F Then
If EndRotation.Z <> Me.Rotation.Z Then
Return False
End If
End If
Return True
End Function
End Class

View File

@ -1,108 +0,0 @@
Public Class BASize
Inherits BattleAnimation3D
Public Enum Anchors
Top
Left
Right
Bottom
End Enum
Public Grow As Boolean = False
Public EndSize As Vector3
Public SizeSpeed As Single = 0.01F
Public Anchor() As Anchors = {Anchors.Bottom}
Public Change As New Vector3(1)
Public Sub New(ByVal Position As Vector3, ByVal Texture As Texture2D, ByVal Scale As Vector3, ByVal Grow As Boolean, ByVal EndSize As Vector3, ByVal SizeSpeed As Single, ByVal startDelay As Single, ByVal endDelay As Single)
MyBase.New(Position, Texture, Scale, startDelay, endDelay)
Me.Grow = Grow
Me.EndSize = EndSize
Me.SizeSpeed = SizeSpeed
Me.AnimationType = AnimationTypes.Size
End Sub
Public Overrides Sub DoActionActive()
Dim saveScale As Vector3 = Me.Scale
Dim changeX As Single = SizeSpeed * Change.X
Dim changeY As Single = SizeSpeed * Change.Y
Dim changeZ As Single = SizeSpeed * Change.Z
If Grow = True Then
If Me.Scale.X < Me.EndSize.X Then
Me.Scale.X += changeX
If Me.Scale.X >= Me.EndSize.X Then
Me.Scale.X = Me.EndSize.X
End If
End If
If Me.Scale.Y < Me.EndSize.Y Then
Me.Scale.Y += changeY
If Me.Scale.Y >= Me.EndSize.Y Then
Me.Scale.Y = Me.EndSize.Y
End If
End If
If Me.Scale.Z < Me.EndSize.Z Then
Me.Scale.Z += changeZ
If Me.Scale.Z >= Me.EndSize.Z Then
Me.Scale.Z = Me.EndSize.Z
End If
End If
Else
If Me.Scale.X > Me.EndSize.X Then
Me.Scale.X -= changeX
If Me.Scale.X <= Me.EndSize.X Then
Me.Scale.X = Me.EndSize.X
End If
End If
If Me.Scale.Y > Me.EndSize.Y Then
Me.Scale.Y -= changeY
If Me.Scale.Y <= Me.EndSize.Y Then
Me.Scale.Y = Me.EndSize.Y
End If
End If
If Me.Scale.Z > Me.EndSize.Z Then
Me.Scale.Z -= changeZ
If Me.Scale.Z <= Me.EndSize.Z Then
Me.Scale.Z = Me.EndSize.Z
End If
End If
End If
If Anchor.Contains(Anchors.Bottom) = True Then
Dim diffY As Single = saveScale.Y - Me.Scale.Y
Me.Position.Y -= diffY / 2
End If
If Anchor.Contains(Anchors.Top) = True Then
Dim diffY As Single = saveScale.Y - Me.Scale.Y
Me.Position.Y += diffY / 2
End If
If Anchor.Contains(Anchors.Left) = True Then
Dim diffX As Single = saveScale.X - Me.Scale.X
Me.Position.X -= diffX / 2
End If
If Anchor.Contains(Anchors.Right) = True Then
Dim diffX As Single = saveScale.X - Me.Scale.X
Me.Position.X += diffX / 2
End If
If Me.EndSize = Me.Scale Then
Me.Ready = True
End If
End Sub
Public Sub SetChange(ByVal changeX As Single, ByVal changeY As Single, ByVal changeZ As Single)
Me.Change = New Vector3(changeX, changeY, changeZ)
End Sub
End Class

View File

@ -1,65 +1,80 @@
Public Class BattleAnimation3D
Inherits Entity
Public Enum AnchorTypes
Top
Left
Right
Bottom
End Enum
Public Enum AnimationTypes
[Nothing]
Move
Transition
Size
Opacity
Rotation
Texture
Wait
ViewPokeBill
BillMove
Sound
Background
Camera
End Enum
Public AnimationType As AnimationTypes = AnimationTypes.Nothing
Public CanRemove As Boolean = False
Public Ready As Boolean = False
Public startDelay As Single
Public endDelay As Single
Public startDelay As Date
Public endDelay As Date
Dim SpawnedEntity As Boolean = False
Dim Started As Boolean = False
Dim DelayDivide As Single = 6.0F
Dim StartDelayWhole As Single
Dim StartDelayFraction As Single
Dim EndDelayWhole As Single
Dim EndDelayFraction As Single
Dim hasStartedEndDelay As Boolean = False
Public Sub New(ByVal Position As Vector3, ByVal Texture As Texture2D, ByVal Scale As Vector3, ByVal startDelay As Single, ByVal endDelay As Single)
Public Sub New(ByVal Position As Vector3, ByVal Texture As Texture2D, ByVal Scale As Vector3, ByVal startDelay As Single, ByVal endDelay As Single, Optional SpawnedEntity As Boolean = False)
MyBase.New(Position.X, Position.Y, Position.Z, "BattleAnimation", {Texture}, {0, 0}, False, 0, Scale, BaseModel.BillModel, 0, "", New Vector3(1.0F))
Me.Visible = Visible
Me.startDelay = startDelay
Me.endDelay = endDelay
StartDelayWhole = CSng(Math.Truncate(CDbl(startDelay / DelayDivide)))
StartDelayFraction = startDelay / DelayDivide - StartDelayWhole
EndDelayWhole = CSng(Math.Truncate(CDbl(endDelay / DelayDivide)))
EndDelayFraction = endDelay / DelayDivide - EndDelayWhole
Me.SpawnedEntity = SpawnedEntity
Me.CreateWorldEveryFrame = True
Me.DropUpdateUnlessDrawn = False
End Sub
Public Overrides Sub Update()
If Started = False Then
Me.startDelay = Date.Now + New TimeSpan(0, 0, 0, CInt(StartDelayWhole), CInt(StartDelayFraction * 1000))
hasStartedEndDelay = False
Started = True
End If
If CanRemove = False Then
If Ready = True Then
If endDelay > 0.0F Then
endDelay -= 0.1F
If endDelay <= 0.0F Then
endDelay = 0.0F
End If
Else
If hasStartedEndDelay = False Then
Me.endDelay = Date.Now + New TimeSpan(0, 0, 0, CInt(EndDelayWhole), CInt(EndDelayFraction * 1000))
hasStartedEndDelay = True
End If
If Date.Now >= endDelay Then
DoRemoveEntity()
CanRemove = True
End If
Else
If startDelay > 0.0F Then
startDelay -= 0.1F
If startDelay <= 0.0F Then
startDelay = 0.0F
If Date.Now >= startDelay Then
If SpawnedEntity = True Then
Ready = True
Else
Me.Visible = True
End If
Else
DoActionActive()
End If
End If
End If
MyBase.Update()
End Sub
Public Overrides Sub UpdateEntity()
@ -79,10 +94,20 @@
Public Overridable Sub DoActionActive()
'Insert code in Inherits class here.
End Sub
Public Overridable Sub DoRemoveEntity()
'Insert code in Inherits class here.
End Sub
Public Overrides Sub Render()
If Me.startDelay <= 0.0F Then
Draw(Me.Model, Me.Textures, True)
If Date.Now >= startDelay Then
If CanRemove = False Then
If Me.Model Is Nothing Then
Draw(Me.BaseModel, Me.Textures, True)
Else
UpdateModel()
Draw(Me.BaseModel, Me.Textures, True, Me.Model)
End If
End If
End If
End Sub

View File

@ -20,7 +20,7 @@
Return Nothing
End Select
Return TextureManager.GetTexture("GUI\Menus\Types", r, "")
Return TextureManager.GetTexture(Element.GetElementTexturePath(), r, "")
End Function
Public Shared Function GetStatColor(ByVal Status As Pokemon.StatusProblems) As Color

File diff suppressed because it is too large Load Diff

View File

@ -12,7 +12,7 @@
End If
Dim ability As String = p.Ability.Name.ToLower()
If p.Item IsNot Nothing AndAlso BattleScreen.FieldEffects.CanUseItem(own) = True Then
Select Case p.Item.Name.ToLower()
Select Case p.Item.OriginalName.ToLower()
Case "damp rock"
If ability = "drizzle" Or moveName = "rain dance" Then
turns = 8
@ -33,6 +33,12 @@
If moveName = "light screen" Or moveName = "reflect" Then
turns = 8
End If
Case "terrain extender"
If moveName = "electric terrain" Or moveName = "grassy terrain" Or moveName = "misty terrain" Or moveName = "psychic terrain" Then
turns = 8
ElseIf ability = "electric surge" Or ability = "grassy surge" Or ability = "misty surge" Or ability = "psychic surge" Then
turns = 8
End If
End Select
End If
Return turns
@ -236,7 +242,7 @@
End If
Dim SlowDownItems As List(Of String) = {"iron ball", "macho brace", "power bracer", "power belt", "power lens", "power band", "power anklet", "power weight"}.ToList()
If SlowDownItems.Contains(p.Item.Name.ToLower()) = True And BattleScreen.FieldEffects.CanUseItem(own) = True Then
If SlowDownItems.Contains(p.Item.OriginalName.ToLower()) = True And BattleScreen.FieldEffects.CanUseItem(own) = True Then
speed = CInt(speed / 2)
End If
@ -272,6 +278,14 @@
If BattleScreen.FieldEffects.Weather = BattleWeather.WeatherTypes.Sandstorm Then
speed *= 2
End If
Case "slush rush"
If BattleScreen.FieldEffects.Weather = BattleWeather.WeatherTypes.Hailstorm Then
speed *= 2
End If
Case "surge surfer"
If BattleScreen.FieldEffects.ElectricTerrain > 0 Then
speed *= 2
End If
End Select
Dim grassPledge As Integer = BattleScreen.FieldEffects.OppGrassPledge
@ -291,11 +305,11 @@
If p.Ability.Name.ToLower() = "slow start" Then
If own = True Then
If BattleScreen.FieldEffects.OwnTurnCounts < 5 Then
If BattleScreen.FieldEffects.OwnPokemonTurns < 5 Then
speed = CInt(speed / 2)
End If
Else
If BattleScreen.FieldEffects.OppTurnCounts < 5 Then
If BattleScreen.FieldEffects.OppPokemonTurns < 5 Then
speed = CInt(speed / 2)
End If
End If
@ -371,11 +385,11 @@
If p.Ability.Name.ToLower() = "slow start" Then
If own = True Then
If BattleScreen.FieldEffects.OwnTurnCounts < 5 Then
If BattleScreen.FieldEffects.OwnPokemonTurns < 5 Then
attack = CInt(attack / 2)
End If
Else
If BattleScreen.FieldEffects.OppTurnCounts < 5 Then
If BattleScreen.FieldEffects.OppPokemonTurns < 5 Then
attack = CInt(attack / 2)
End If
End If
@ -491,13 +505,13 @@
result = INIT * ACCM
If Not op.Item Is Nothing And BattleScreen.FieldEffects.CanUseItem(Not own) = True Then
If op.Item.Name.ToLower() = "brightpowder" Or op.Item.Name.ToLower() = "lax incense" Then
If op.Item.OriginalName.ToLower() = "bright powder" Or op.Item.OriginalName.ToLower() = "lax incense" Then
result *= 0.9F
End If
End If
If Not p.Item Is Nothing And BattleScreen.FieldEffects.CanUseItem(own) = True Then
Select Case p.Item.Name.ToLower()
Select Case p.Item.OriginalName.ToLower()
Case "wide lens"
result *= 1.1F
Case "zoom lens"
@ -619,12 +633,12 @@
End If
If Not p.Item Is Nothing And BattleScreen.FieldEffects.CanUseItem(own) = True Then
Select Case p.Item.Name.ToLower()
Select Case p.Item.OriginalName.ToLower()
Case "lucky punch"
If p.Number = 113 Then
C += 2
End If
Case "stick"
Case "leek"
If p.Number = 83 Then
C += 2
End If
@ -662,7 +676,7 @@
Return False
End Function
Public Shared Function CanRun(ByVal own As Boolean, ByVal BattleScreen As BattleScreen) As Boolean
Public Shared Function CanRun(ByVal own As Boolean, ByVal BattleScreen As BattleScreen, Optional ByVal IsEscapeMove As Boolean = False) As Boolean
If BattleScreen.BattleMode = BattleScreen.BattleModes.Safari Then
Return True
End If
@ -674,31 +688,46 @@
op = BattleScreen.OwnPokemon
End If
If p.Type1.Type = Element.Types.Ghost Or p.Type2.Type = Element.Types.Ghost Then
Return True
End If
If p.Ability.Name.ToLower() = "run away" Then
Return True
End If
If op.Ability.Name.ToLower() = "shadow tag" And p.Ability.Name.ToLower() <> "shadow tag" Then
If Not p.Item Is Nothing Then
If p.Item.OriginalName.ToLower() = "smoke ball" And BattleScreen.FieldEffects.CanUseItem(own) = True And BattleScreen.FieldEffects.CanUseOwnItem(own, BattleScreen) = True Then
Return True
End If
End If
If op.Ability.Name.ToLower() = "shadow tag" And p.Ability.Name.ToLower() <> "shadow tag" And op.HP > 0 Then
Return False
End If
If op.Ability.Name.ToLower() = "arena trap" Then
Dim magnetRise As Integer = BattleScreen.FieldEffects.OwnMagnetRise
If own = False Then
magnetRise = BattleScreen.FieldEffects.OppMagnetRise
End If
If p.Type1.Type <> Element.Types.Flying And p.Type2.Type <> Element.Types.Flying And p.Ability.Name.ToLower() <> "levitate" And magnetRise = 0 Then
Return False
End If
If op.Ability.Name.ToLower() = "arena trap" And op.HP > 0 And BattleScreen.FieldEffects.IsGrounded(own, BattleScreen) = True Then
Return False
End If
If op.Ability.Name.ToLower() = "magnet pull" Then
If op.Ability.Name.ToLower() = "magnet pull" And op.HP > 0 Then
If p.Type1.Type = Element.Types.Steel Or p.Type2.Type = Element.Types.Steel Then
Return False
End If
End If
With BattleScreen.FieldEffects
If own = True Then
If .OwnWrap > 0 Or .OwnBind > 0 Or .OwnClamp > 0 Or .OwnFireSpin > 0 Or .OwnMagmaStorm > 0 Or .OwnSandTomb > 0 Or .OwnWhirlpool > 0 Or .OwnInfestation > 0 Then
Return False
End If
Else
If .OppWrap > 0 Or .OppBind > 0 Or .OppClamp > 0 Or .OppFireSpin > 0 Or .OppMagmaStorm > 0 Or .OppSandTomb > 0 Or .OppWhirlpool > 0 Or .OppInfestation > 0 Then
Return False
End If
End If
End With
Dim ingrain As Integer = BattleScreen.FieldEffects.OwnIngrain
If own = False Then
ingrain = BattleScreen.FieldEffects.OppIngrain
@ -707,16 +736,13 @@
Return False
End If
If IsEscapeMove = True Then
Return True
End If
If p.Speed > op.Speed Then
Return True
Else
If Not p.Item Is Nothing And BattleScreen.FieldEffects.CanUseItem(own) = True Then
If p.Item.Name.ToLower() = "smoke ball" Then
BattleScreen.FieldEffects.RunTries += 1
Return True
End If
End If
Dim A As Integer = p.Speed
Dim B As Integer = op.Speed
If B = 0 Then
@ -772,42 +798,89 @@
'Sheer Cold
If move.ID = 329 Then
If op.IsType(Element.Types.Ice) Then
effectiveness = 0
End If
End If
Dim _targetHasIronBall As Boolean = False
If Not op.Item Is Nothing Then
If op.Item.Name.ToLower() = "iron ball" And BattleScreen.FieldEffects.CanUseItem(own) = True And BattleScreen.FieldEffects.CanUseOwnItem(own, BattleScreen) = True Then
_targetHasIronBall = True
End If
End If
If op.Ability.Name.ToLower() = "levitate" And move.GetAttackType(own, BattleScreen).Type = Element.Types.Ground And BattleScreen.FieldEffects.Gravity = 0 And _targetHasIronBall = False Then
If BattleScreen.FieldEffects.CanUseAbility(Not own, BattleScreen) = True Then
effectiveness = 0.0F
End If
End If
Dim ingrain As Integer = BattleScreen.FieldEffects.OppIngrain
If own = False Then
ingrain = BattleScreen.FieldEffects.OwnIngrain
Dim digHit As Boolean = False
Dim airHit As Boolean = False
Dim regHit As Boolean = False
'Grounded condition
If move.GetAttackType(own, BattleScreen).Type = Element.Types.Ground And BattleScreen.FieldEffects.IsGrounded(Not own, BattleScreen) = False Then
Dim targetDig As Boolean = False
Dim targetAir As Boolean = False
With BattleScreen.FieldEffects
If own = True Then
If .OppDigCounter > 0 Then
targetDig = True
End If
If .OppFlyCounter > 0 Or .OppBounceCounter > 0 Or .OppSkyDropCounter > 0 Then
targetAir = True
End If
Else
If .OwnDigCounter > 0 Then
targetDig = True
End If
If .OwnFlyCounter > 0 Or .OwnBounceCounter > 0 Or .OwnSkyDropCounter > 0 Then
targetAir = True
End If
End If
End With
Select Case move.ID
Case 89, 90, 222 'Earthquake, Fissure, Magnitude
effectiveness = 0.0F
If targetDig = True Then
digHit = True
End If
Case 614 'Thousand Arrows
airHit = True
If targetAir = True Then
If own = True Then
BattleScreen.FieldEffects.OppFlyCounter = 0
BattleScreen.FieldEffects.OppBounceCounter = 0
Else
BattleScreen.FieldEffects.OwnFlyCounter = 0
BattleScreen.FieldEffects.OwnBounceCounter = 0
End If
End If
Case Else
effectiveness = 0.0F
End Select
ElseIf move.GetAttackType(own, BattleScreen).Type = Element.Types.Ground And BattleScreen.FieldEffects.IsGrounded(Not own, BattleScreen) = True Then
regHit = True
End If
If move.GetAttackType(own, BattleScreen).Type = Element.Types.Ground Then
If BattleScreen.FieldEffects.Gravity = 0 And ingrain = 0 And _targetHasIronBall = False Then
Dim magnetRise As Integer = BattleScreen.FieldEffects.OppMagnetRise
If own = False Then
magnetRise = BattleScreen.FieldEffects.OwnMagnetRise
End If
If magnetRise > 0 Then
effectiveness = 0.0F
End If
'Grounded hit effectiveness
If digHit = True Or airHit = True Or regHit = True Then
effectiveness = 1.0F
If op.IsType(Element.Types.Electric) Then
effectiveness *= 2
End If
If op.IsType(Element.Types.Fire) Then
effectiveness *= 2
End If
If op.IsType(Element.Types.Poison) Then
effectiveness *= 2
End If
If op.IsType(Element.Types.Rock) Then
effectiveness *= 2
End If
If op.IsType(Element.Types.Steel) Then
effectiveness *= 2
End If
If op.IsType(Element.Types.Bug) Then
effectiveness /= 2
End If
If op.IsType(Element.Types.Grass) Then
effectiveness /= 2
End If
End If
If Not op.Item Is Nothing Then
If op.Item.Name.ToLower() = "ring target" And BattleScreen.FieldEffects.CanUseItem(Not own) = True And BattleScreen.FieldEffects.CanUseOwnItem(Not own, BattleScreen) = True Then
If op.Item.OriginalName.ToLower() = "ring target" And BattleScreen.FieldEffects.CanUseItem(Not own) = True And BattleScreen.FieldEffects.CanUseOwnItem(Not own, BattleScreen) = True Then
If Type1 = 0 Then
effectiveness = Type2
End If
@ -832,7 +905,6 @@
End If
End If
If op.IsType(Element.Types.Ghost) = True Then
Dim CanHitGhost = False
Dim Foresight As Integer = 0
@ -887,6 +959,20 @@
End If
End If
With BattleScreen.FieldEffects
If move.GetAttackType(own, BattleScreen).Type = Element.Types.Fire Then
If own = True Then
If .OppTarShot = True Then
effectiveness *= 2
End If
Else
If .OwnTarShot = True Then
effectiveness *= 2
End If
End If
End If
End With
If move.UseEffectiveness = False And effectiveness <> 0.0F Then
Return 1.0F
End If
@ -905,7 +991,7 @@
Return CalculateEffectiveness(move, BattleScreen, p, op, own)
End Function
Public Shared Function GainExp(ByVal p As Pokemon, ByVal BattleScreen As BattleScreen, ByVal PokemonList As List(Of Integer)) As Integer
Public Shared Function GainExp(ByVal p As Pokemon, ByVal BattleScreen As BattleScreen, ByVal PokemonList As List(Of Integer), ByVal PokeIndex As Integer) As Integer
Dim op As Pokemon = BattleScreen.OppPokemon
Dim a As Double = 1D
@ -916,13 +1002,30 @@
Dim b As Double = op.BaseExperience
Dim t As Double = 1D
If p.OT <> Core.Player.OT Then
t = 1.5D
If Not p.Item Is Nothing AndAlso p.Item.IsGameModeItem = True Then
If CType(p.Item, GameModeItem).gmExpMultiplier <> -1D AndAlso CType(p.Item, GameModeItem).gmOverrideTradeExp = True Then
t = CType(p.Item, GameModeItem).gmExpMultiplier
Else
If p.OT <> Core.Player.OT Then
t = 1.5D
End If
End If
Else
If p.OT <> Core.Player.OT Then
t = 1.5D
End If
End If
Dim gm As Double = 1D
If Not p.Item Is Nothing AndAlso p.Item.IsGameModeItem = True Then
If CType(p.Item, GameModeItem).gmExpMultiplier <> -1D AndAlso CType(p.Item, GameModeItem).gmOverrideTradeExp = False Then
gm = CType(p.Item, GameModeItem).gmExpMultiplier
End If
End If
Dim e As Double = 1D
If Not p.Item Is Nothing Then
If p.Item.Name.ToLower() = "lucky egg" Then
If p.Item.OriginalName.ToLower() = "lucky egg" Then
e = 1.5D
End If
End If
@ -933,25 +1036,33 @@
Dim s As Double = PokemonList.Count
Dim expShares As Integer = 0
For Each po As Pokemon In Core.Player.Pokemons
If Not po.Item Is Nothing Then
If po.Item.Name.ToLower() = "exp share" Then
expShares += 1
End If
Dim expAllMultiplier As Single = 1
If Core.Player.Inventory.GetItemAmount(658.ToString) > 0 And Core.Player.EnableExpAll = True Then
s = 1D
If BattleScreen.ParticipatedPokemon.Contains(PokeIndex) = False Then
expAllMultiplier = 0.5F
End If
Next
Else
For Each po As Pokemon In Core.Player.Pokemons
If Not po.Item Is Nothing Then
If po.Item.OriginalName.ToLower() = "exp. share" Then
expShares += 1
End If
End If
Next
If expShares > 0 Then
If Not p.Item Is Nothing Then
If p.Item.Name.ToLower() = "exp share" Then
s = 2D
Else
s = (PokemonList.Count * 2D) * expShares
If expShares > 0 Then
If Not p.Item Is Nothing Then
If p.Item.OriginalName.ToLower() = "exp. share" Then
s = 2D
Else
s = (PokemonList.Count * 2D) * expShares
End If
End If
End If
End If
Dim EXP As Integer = CInt((((a * b * L) / (5 * s)) * (((2 * L + 10) ^ 2.5D) / ((L + Lp + 10) ^ 2.5D)) + 1) * t * e * 1)
Dim EXP As Integer = CInt((((a * b * L) / (5 * s)) * (((2 * L + 10) ^ 2.5D) / ((L + Lp + 10) ^ 2.5D)) + 1) * t * e * gm * expAllMultiplier)
If EXP < 2 Then
EXP = 2
@ -963,6 +1074,10 @@
End If
Next
If Core.Player.Inventory.GetItemAmount(656.ToString) > 0 Then 'Exp. Charm
EXP = CInt(EXP * 1.5F)
End If
Return EXP
End Function
@ -1018,28 +1133,39 @@
Return True
End If
If BattleScreen.OwnPokemon.Type1.Type = Element.Types.Ghost Or BattleScreen.OwnPokemon.Type2.Type = Element.Types.Ghost Then
Return True
End If
With BattleScreen
If Not .OwnPokemon.Item Is Nothing Then
If .OwnPokemon.Item.OriginalName.ToLower() = "shed shell" And .FieldEffects.CanUseItem(True) = True And .FieldEffects.CanUseOwnItem(True, BattleScreen) = True Then
Return True
End If
End If
End With
If BattleScreen.IsRemoteBattle AndAlso BattleScreen.IsPVPBattle AndAlso Not BattleScreen.IsHost Then
If BattleScreen.FieldEffects.ClientCanSwitch = False Then
Return False
End If
End If
If BattleScreen.OppPokemon.Ability.Name.ToLower() = "shadow tag" And BattleScreen.OwnPokemon.Ability.Name.ToLower() <> "shadow tag" Then
If BattleScreen.OppPokemon.Ability.Name.ToLower() = "shadow tag" And BattleScreen.OwnPokemon.Ability.Name.ToLower() <> "shadow tag" And BattleScreen.OppPokemon.HP > 0 Then
Return False
End If
If BattleScreen.FieldEffects.OwnTrappedCounter > 0 Then
Return False
End If
If BattleScreen.OppPokemon.Ability.Name.ToLower() = "arena trap" Then
Dim magnetRise As Integer = BattleScreen.FieldEffects.OwnMagnetRise
If BattleScreen.OwnPokemon.IsType(Element.Types.Flying) = False And BattleScreen.OwnPokemon.Ability.Name.ToLower() <> "levitate" And magnetRise = 0 Then
If BattleScreen.OppFaint = False Then
If BattleScreen.OppPokemon.Ability.Name.ToLower() = "arena trap" And BattleScreen.OppPokemon.HP > 0 And BattleScreen.FieldEffects.IsGrounded(True, BattleScreen) = True Then
Return False
End If
End If
If BattleScreen.OppPokemon.Ability.Name.ToLower() = "magnet pull" And BattleScreen.OwnPokemon.IsType(Element.Types.Ghost) = False And BattleScreen.OwnPokemon.IsType(Element.Types.Steel) = True Then
If BattleScreen.OppPokemon.Ability.Name.ToLower() = "magnet pull" And BattleScreen.OwnPokemon.IsType(Element.Types.Steel) = True And BattleScreen.OppPokemon.HP > 0 Then
Return False
End If
@ -1056,22 +1182,34 @@
If BattleScreen.OppPokemon.Status = Pokemon.StatusProblems.Fainted Or BattleScreen.OppPokemon.HP <= 0 Then
Return True
End If
If BattleScreen.OwnPokemon.Ability.Name.ToLower() = "shadow tag" And BattleScreen.OppPokemon.Ability.Name.ToLower() <> "shadow tag" Then
If BattleScreen.OppPokemon.Type1.Type = Element.Types.Ghost Or BattleScreen.OppPokemon.Type2.Type = Element.Types.Ghost Then
Return True
End If
With BattleScreen
If Not .OppPokemon.Item Is Nothing Then
If .OppPokemon.Item.OriginalName.ToLower() = "shed shell" And .FieldEffects.CanUseItem(False) = True And .FieldEffects.CanUseOwnItem(False, BattleScreen) = True Then
Return True
End If
End If
End With
If BattleScreen.OwnPokemon.Ability.Name.ToLower() = "shadow tag" And BattleScreen.OppPokemon.Ability.Name.ToLower() <> "shadow tag" And BattleScreen.OwnPokemon.HP > 0 Then
Return False
End If
If BattleScreen.FieldEffects.OppTrappedCounter > 0 Then
Return False
End If
If BattleScreen.OwnPokemon.Ability.Name.ToLower() = "arena trap" Then
Dim magnetRise As Integer = BattleScreen.FieldEffects.OppMagnetRise
If BattleScreen.OppPokemon.IsType(Element.Types.Flying) = False And BattleScreen.OppPokemon.Ability.Name.ToLower() <> "levitate" And magnetRise = 0 Then
If BattleScreen.OwnFaint = False Then
If BattleScreen.OwnPokemon.Ability.Name.ToLower() = "arena trap" And BattleScreen.OwnPokemon.HP > 0 And BattleScreen.FieldEffects.IsGrounded(False, BattleScreen) = True Then
Return False
End If
End If
If BattleScreen.OwnPokemon.Ability.Name.ToLower() = "magnet pull" And BattleScreen.OppPokemon.IsType(Element.Types.Ghost) = False And BattleScreen.OppPokemon.IsType(Element.Types.Steel) = True Then
If BattleScreen.OwnPokemon.Ability.Name.ToLower() = "magnet pull" And BattleScreen.OppPokemon.IsType(Element.Types.Steel) = True And BattleScreen.OwnPokemon.HP > 0 Then
Return False
End If
@ -1121,7 +1259,7 @@
'IT (Item attack power modifier)
If Not p.Item Is Nothing And BattleScreen.FieldEffects.CanUseItem(Own) = True And BattleScreen.FieldEffects.CanUseOwnItem(Own, BattleScreen) = True Then
Select Case p.Item.Name.ToLower()
Select Case p.Item.OriginalName.ToLower()
Case "muscle band"
If Attack.Category = Attack.Categories.Physical Then
IT = 1.1F
@ -1210,7 +1348,7 @@
If Attack.Type.Type = Element.Types.Flying Then
IT = 1.2F
End If
Case 88, 273 'Silver powder, Insect Plate
Case 88, 273 'Silver Powder, Insect Plate
If Attack.Type.Type = Element.Types.Bug Then
IT = 1.2F
End If
@ -1226,6 +1364,138 @@
If Attack.Type.Type = Element.Types.Psychic Then
IT = 1.2F
End If
Case 90 'Silk Scarf
If Attack.Type.Type = Element.Types.Normal Then
IT = 1.2F
End If
End Select
Select Case p.Item.ID
Case 635 'Fighting Gem
If Attack.Type.Type = Element.Types.Fighting Then
If BattleScreen.Battle.RemoveHeldItem(Own, Own, BattleScreen, "-1", "item:fighting gem") = True Then
BattleScreen.BattleQuery.Add(New TextQueryObject("The Fighting Gem boosted " & p.GetDisplayName() & "'s " & Attack.Name & "!"))
IT = 1.3F
End If
End If
Case 644 'Dark Gem
If Attack.Type.Type = Element.Types.Dark Then
If BattleScreen.Battle.RemoveHeldItem(Own, Own, BattleScreen, "-1", "item:dark gem") = True Then
BattleScreen.BattleQuery.Add(New TextQueryObject("The Dark Gem boosted " & p.GetDisplayName() & "'s " & Attack.Name & "!"))
IT = 1.3F
End If
End If
Case 630 'Fire Gem
If Attack.Type.Type = Element.Types.Fire Then
If BattleScreen.Battle.RemoveHeldItem(Own, Own, BattleScreen, "-1", "item:fire gem") = True Then
BattleScreen.BattleQuery.Add(New TextQueryObject("The Fire Gem boosted " & p.GetDisplayName() & "'s " & Attack.Name & "!"))
IT = 1.3F
End If
End If
Case 643 'Dragon Gem
If Attack.Type.Type = Element.Types.Dragon Then
If BattleScreen.Battle.RemoveHeldItem(Own, Own, BattleScreen, "-1", "item:dragon gem") = True Then
BattleScreen.BattleQuery.Add(New TextQueryObject("The Dragon Gem boosted " & p.GetDisplayName() & "'s " & Attack.Name & "!"))
IT = 1.3F
End If
End If
Case 641 'Rock Gem
If Attack.Type.Type = Element.Types.Rock Then
If BattleScreen.Battle.RemoveHeldItem(Own, Own, BattleScreen, "-1", "item:rock gem") = True Then
BattleScreen.BattleQuery.Add(New TextQueryObject("The Rock Gem boosted " & p.GetDisplayName() & "'s " & Attack.Name & "!"))
IT = 1.3F
End If
End If
Case 632 'Electric Gem
If Attack.Type.Type = Element.Types.Electric Then
If BattleScreen.Battle.RemoveHeldItem(Own, Own, BattleScreen, "-1", "item:electric gem") = True Then
BattleScreen.BattleQuery.Add(New TextQueryObject("The Electric Gem boosted " & p.GetDisplayName() & "'s " & Attack.Name & "!"))
IT = 1.3F
End If
End If
Case 645 'Steel Gem
If Attack.Type.Type = Element.Types.Steel Then
If BattleScreen.Battle.RemoveHeldItem(Own, Own, BattleScreen, "-1", "item:steel gem") = True Then
BattleScreen.BattleQuery.Add(New TextQueryObject("The Steel Gem boosted " & p.GetDisplayName() & "'s " & Attack.Name & "!"))
IT = 1.3F
End If
End If
Case 633 'Grass Gem
If Attack.Type.Type = Element.Types.Grass Then
If BattleScreen.Battle.RemoveHeldItem(Own, Own, BattleScreen, "-1", "item:grass gem") = True Then
BattleScreen.BattleQuery.Add(New TextQueryObject("The Grass Gem boosted " & p.GetDisplayName() & "'s " & Attack.Name & "!"))
IT = 1.3F
End If
End If
Case 631 'Water Gem
If Attack.Type.Type = Element.Types.Water Then
If BattleScreen.Battle.RemoveHeldItem(Own, Own, BattleScreen, "-1", "item:water gem") = True Then
BattleScreen.BattleQuery.Add(New TextQueryObject("The Water Gem boosted " & p.GetDisplayName() & "'s " & Attack.Name & "!"))
IT = 1.3F
End If
End If
Case 634 'Ice Gem
If Attack.Type.Type = Element.Types.Ice Then
If BattleScreen.Battle.RemoveHeldItem(Own, Own, BattleScreen, "-1", "item:ice gem") = True Then
BattleScreen.BattleQuery.Add(New TextQueryObject("The Ice Gem boosted " & p.GetDisplayName() & "'s " & Attack.Name & "!"))
IT = 1.3F
End If
End If
Case 647 'Fairy Gem
If Attack.Type.Type = Element.Types.Fairy Then
If BattleScreen.Battle.RemoveHeldItem(Own, Own, BattleScreen, "-1", "item:fairy gem") = True Then
BattleScreen.BattleQuery.Add(New TextQueryObject("The Fairy Gem boosted " & p.GetDisplayName() & "'s " & Attack.Name & "!"))
IT = 1.3F
End If
End If
Case 636 'Poison Gem
If Attack.Type.Type = Element.Types.Poison Then
If BattleScreen.Battle.RemoveHeldItem(Own, Own, BattleScreen, "-1", "item:poison gem") = True Then
BattleScreen.BattleQuery.Add(New TextQueryObject("The Poison Gem boosted " & p.GetDisplayName() & "'s " & Attack.Name & "!"))
IT = 1.3F
End If
End If
Case 638 'Flying Gem
If Attack.Type.Type = Element.Types.Flying Then
If BattleScreen.Battle.RemoveHeldItem(Own, Own, BattleScreen, "-1", "item:flying gem") = True Then
BattleScreen.BattleQuery.Add(New TextQueryObject("The Flying Gem boosted " & p.GetDisplayName() & "'s " & Attack.Name & "!"))
IT = 1.3F
End If
End If
Case 640 'Bug Gem
If Attack.Type.Type = Element.Types.Bug Then
If BattleScreen.Battle.RemoveHeldItem(Own, Own, BattleScreen, "-1", "item:bug gem") = True Then
BattleScreen.BattleQuery.Add(New TextQueryObject("The Bug Gem boosted " & p.GetDisplayName() & "'s " & Attack.Name & "!"))
IT = 1.3F
End If
End If
Case 637 'Ground Gem
If Attack.Type.Type = Element.Types.Ground Then
If BattleScreen.Battle.RemoveHeldItem(Own, Own, BattleScreen, "-1", "item:ground gem") = True Then
BattleScreen.BattleQuery.Add(New TextQueryObject("The Ground Gem boosted " & p.GetDisplayName() & "'s " & Attack.Name & "!"))
IT = 1.3F
End If
End If
Case 642 'Ghost Gem
If Attack.Type.Type = Element.Types.Ghost Then
If BattleScreen.Battle.RemoveHeldItem(Own, Own, BattleScreen, "-1", "item:ghost gem") = True Then
BattleScreen.BattleQuery.Add(New TextQueryObject("The Ghost Gem boosted " & p.GetDisplayName() & "'s " & Attack.Name & "!"))
IT = 1.3F
End If
End If
Case 639 'Psychic Gem
If Attack.Type.Type = Element.Types.Psychic Then
If BattleScreen.Battle.RemoveHeldItem(Own, Own, BattleScreen, "-1", "item:psychic gem") = True Then
BattleScreen.BattleQuery.Add(New TextQueryObject("The Psychic Gem boosted " & p.GetDisplayName() & "'s " & Attack.Name & "!"))
IT = 1.3F
End If
End If
Case 646 'Normal Gem
If Attack.Type.Type = Element.Types.Normal Then
If BattleScreen.Battle.RemoveHeldItem(Own, Own, BattleScreen, "-1", "item:normal gem") = True Then
BattleScreen.BattleQuery.Add(New TextQueryObject("The Normal Gem boosted " & p.GetDisplayName() & "'s " & Attack.Name & "!"))
IT = 1.3F
End If
End If
End Select
End If
'CHG (If used Charge)
@ -1308,10 +1578,6 @@
If Attack.IsJawMove = True Then
UA = 1.5F
End If
Case "fur coat"
If Attack.Category = Attack.Categories.Physical Then
UA = 0.5F
End If
Case "refrigerate"
If Attack.Type.Type = Element.Types.Normal Then
UA = 1.2F
@ -1320,11 +1586,11 @@
If Attack.Type.Type = Element.Types.Normal Then
UA = 1.2F
End If
Case "normalize"
Case "normalize"
If Attack.Type.Type = Element.Types.Normal Then
UA = 1.2F
End If
Case "galvanize"
Case "galvanize"
If Attack.Type.Type = Element.Types.Normal Then
UA = 1.2F
End If
@ -1436,11 +1702,11 @@
AM = 1.5F
Case "slow start"
If Own = True Then
If BattleScreen.FieldEffects.OwnTurnCounts < 5 Then
If BattleScreen.FieldEffects.OwnPokemonTurns < 5 Then
AM = 0.5F
End If
Else
If BattleScreen.FieldEffects.OppTurnCounts < 5 Then
If BattleScreen.FieldEffects.OppPokemonTurns < 5 Then
AM = 0.5F
End If
End If
@ -1457,7 +1723,7 @@
End Select
If Not p.Item Is Nothing And BattleScreen.FieldEffects.CanUseItem(Own) = True And BattleScreen.FieldEffects.CanUseOwnItem(Own, BattleScreen) = True Then
Select Case p.Item.Name.ToLower()
Select Case p.Item.OriginalName.ToLower()
Case "choice band"
IM = 1.5F
Case "light ball"
@ -1502,7 +1768,7 @@
End Select
If Not p.Item Is Nothing And BattleScreen.FieldEffects.CanUseItem(Own) = True And BattleScreen.FieldEffects.CanUseOwnItem(Own, BattleScreen) = True Then
Select Case p.Item.Name.ToLower()
Select Case p.Item.OriginalName.ToLower()
Case "choice specs"
IM = 1.5F
Case "light ball"
@ -1580,16 +1846,20 @@
DSM = 1.0F
End If
If Attack.Name.ToLower() = "selfdestruct" Or Attack.Name.ToLower() = "explosion" Then
If Attack.Name.ToLower() = "self-destruct" Or Attack.Name.ToLower() = "explosion" Then
SX = 1.0F
End If
If Not Op.Item Is Nothing And BattleScreen.FieldEffects.CanUseItem(Not Own) = True And BattleScreen.FieldEffects.CanUseOwnItem(Not Own, BattleScreen) = True Then
Select Case Op.Item.Name.ToLower()
Select Case Op.Item.OriginalName.ToLower()
Case "metal powder"
If Op.Number = 132 Then
DMod = 1.5F
End If
Case "eviolite"
If Op.IsFullyEvolved = False Then
DMod = 1.5F
End If
End Select
End If
@ -1600,6 +1870,15 @@
End If
End If
End If
If Op.Ability.Name.ToLower() = "fur coat" And BattleScreen.FieldEffects.CanUseAbility(Not Own, BattleScreen) = True Then
DMod = 2.0F
End If
If BattleScreen.FieldEffects.GrassyTerrain > 0 And Op.Ability.Name.ToLower() = "grass pelt" And BattleScreen.FieldEffects.CanUseAbility(Not Own, BattleScreen) = True Then
DMod = 1.5F
End If
ElseIf Attack.Category = Attack.Categories.Special Then
DStat = Attack.GetUseDefenseStat(Op)
DSM = GetMultiplierFromStat(Op.StatSpDefense)
@ -1615,7 +1894,7 @@
End If
If Not Op.Item Is Nothing And BattleScreen.FieldEffects.CanUseItem(Not Own) = True And BattleScreen.FieldEffects.CanUseOwnItem(Not Own, BattleScreen) = True Then
Select Case Op.Item.Name.ToLower()
Select Case Op.Item.OriginalName.ToLower()
Case "metal powder"
If Op.Number = 132 Then
DMod = 1.5F
@ -1719,22 +1998,46 @@
If BattleScreen.FieldEffects.Weather = BattleWeather.WeatherTypes.Snow Then
SR = 1.5F
End If
Case Element.Types.Electric
If BattleScreen.FieldEffects.ElectricTerrain > 0 And BattleScreen.FieldEffects.IsGrounded(Own, BattleScreen) = True Then
SR = 1.3F
End If
Case Element.Types.Grass
If BattleScreen.FieldEffects.GrassyTerrain > 0 And BattleScreen.FieldEffects.IsGrounded(Own, BattleScreen) = True Then
SR = 1.3F
End If
Case Element.Types.Psychic
If BattleScreen.FieldEffects.PsychicTerrain > 0 And BattleScreen.FieldEffects.IsGrounded(Own, BattleScreen) = True Then
SR = 1.3F
End If
End Select
If p.Ability.Name.ToLower() = "flash fire" Then
If BattleScreen.FieldEffects.CanUseAbility(Own, BattleScreen) = True Then
If Own = True Then
If Not BattleScreen.FieldEffects.OppLastMove Is Nothing Then
If BattleScreen.FieldEffects.OppLastMove.Type.Type = Element.Types.Fire And Attack.Type.Type = Element.Types.Fire Then
FF = 1.5F
End If
End If
Else
If Not BattleScreen.FieldEffects.OwnLastMove Is Nothing Then
If BattleScreen.FieldEffects.OwnLastMove.Type.Type = Element.Types.Fire And Attack.Type.Type = Element.Types.Fire Then
FF = 1.5F
End If
End If
'If p.Ability.Name.ToLower() = "flash fire" Then
' If BattleScreen.FieldEffects.CanUseAbility(Own, BattleScreen) = True Then
' If Own = True Then
' If Not BattleScreen.FieldEffects.OppLastMove Is Nothing Then
' If BattleScreen.FieldEffects.OppLastMove.Type.Type = Element.Types.Fire And Attack.Type.Type = Element.Types.Fire Then
' FF = 1.5F
' End If
' End If
' Else
' If Not BattleScreen.FieldEffects.OwnLastMove Is Nothing Then
' If BattleScreen.FieldEffects.OwnLastMove.Type.Type = Element.Types.Fire And Attack.Type.Type = Element.Types.Fire Then
' FF = 1.5F
' End If
' End If
' End If
' End If
'End If
If Attack.Type.Type = Element.Types.Fire Then
If Own = True Then
If BattleScreen.FieldEffects.OwnFlashFire = 1 Then
FF = 1.5F
End If
Else
If BattleScreen.FieldEffects.OppFlashFire = 1 Then
FF = 1.5F
End If
End If
End If
@ -1756,7 +2059,7 @@
Dim Mod2 As Single = 1.0F
If Not p.Item Is Nothing And BattleScreen.FieldEffects.CanUseItem(Own) = True And BattleScreen.FieldEffects.CanUseOwnItem(Own, BattleScreen) = True Then
If p.Item.Name.ToLower() = "life orb" Then
If p.Item.OriginalName.ToLower() = "life orb" Then
Mod2 = 1.3F
End If
End If
@ -1800,14 +2103,14 @@
End If
If Not p.Item Is Nothing And BattleScreen.FieldEffects.CanUseItem(Own) = True And BattleScreen.FieldEffects.CanUseOwnItem(Own, BattleScreen) = True Then
If p.Item.Name.ToLower() = "expert belt" Then
If p.Item.OriginalName.ToLower() = "expert belt" Then
EB = 1.2F
End If
End If
If Not Op.Item Is Nothing Then
If BattleScreen.FieldEffects.CanUseItem(Not Own) = True And BattleScreen.FieldEffects.CanUseOwnItem(Not Own, BattleScreen) = True Then
Select Case Op.Item.Name.ToLower()
Select Case Op.Item.OriginalName.ToLower()
Case "occa"
If Attack.Type.Type = Element.Types.Fire Then
If BattleScreen.Battle.RemoveHeldItem(Not Own, Not Own, BattleScreen, "The Occa Berry weakened the effect of " & Attack.Name & " on " & Op.GetDisplayName() & "!", "berry:occa") = True Then
@ -1904,6 +2207,12 @@
TRB = 0.5F
End If
End If
Case "roseli"
If Attack.Type.Type = Element.Types.Fairy Then
If BattleScreen.Battle.RemoveHeldItem(Not Own, Not Own, BattleScreen, "The Roseli Berry weakened the effect of " & Attack.Name & " on " & Op.GetDisplayName() & "!", "berry:roseli") = True Then
TRB = 0.5F
End If
End If
End Select
End If
End If
@ -1911,7 +2220,7 @@
If Not Op.Item Is Nothing Then
If BattleScreen.FieldEffects.CanUseItem(Not Own) = True And BattleScreen.FieldEffects.CanUseOwnItem(Not Own, BattleScreen) = True Then
If Op.Item.Name.ToLower() = "chilan" Then
If Op.Item.OriginalName.ToLower() = "chilan" Then
If Attack.Type.Type = Element.Types.Normal Then
If BattleScreen.Battle.RemoveHeldItem(Not Own, Not Own, BattleScreen, "The Chilan Berry weakened the effect of " & Attack.Name & " on " & Op.GetDisplayName() & "!", "berry:chilan") = True Then
TRB = 0.5F
@ -1935,6 +2244,19 @@
damage = CInt(damage / 2)
End If
If BattleScreen.FieldEffects.MistyTerrain > 0 And BattleScreen.FieldEffects.IsGrounded(Own, BattleScreen) = True Then
If Attack.Type.Type = Element.Types.Dragon Then
damage = CInt(damage / 2)
End If
End If
If BattleScreen.FieldEffects.GrassyTerrain > 0 And BattleScreen.FieldEffects.IsGrounded(Own, BattleScreen) = True Then
'Earthquake, Bulldoze, Magnitude
If Attack.ID = 89 Or Attack.ID = 523 Or Attack.ID = 222 Then
damage = CInt(damage / 2)
End If
End If
If Attack.IsOneHitKOMove = True Then
damage = Op.HP
End If

View File

@ -214,15 +214,7 @@
End Function
Private Function GetBattleMapOffset() As Vector3
Dim v As New Vector3(0)
Dim s As Screen = Core.CurrentScreen
While s.Identification <> Screen.Identifications.BattleScreen And Not s.PreScreen Is Nothing
s = s.PreScreen
End While
If s.Identification = Screen.Identifications.BattleScreen Then
v = CType(s, BattleScreen).BattleMapOffset
End If
Return v
Return BattleScreen.BattleMapOffset
End Function
Public Overrides ReadOnly Property CPosition() As Vector3

View File

@ -7,11 +7,18 @@
Moves
End Enum
Public CanInteract As Boolean = True
Public MenuState As MenuStates = MenuStates.Main
Public Visible As Boolean = False
Public Sub New()
Me.Reset()
Dim blockinteractscreen() As Screen.Identifications = {Screen.Identifications.PartyScreen, Screen.Identifications.SummaryScreen, Screen.Identifications.PauseScreen, Screen.Identifications.ChatScreen}
If blockinteractscreen.Contains(Core.CurrentScreen.Identification) = True Then
CanInteract = False
Else
CanInteract = True
End If
End Sub
Public Sub Reset()
@ -50,7 +57,41 @@
If y > -1 Then
Core.SpriteBatch.Draw(TextureManager.GetTexture("GUI\Battle\WeatherIcons"), New Rectangle(22, Core.windowSize.Height - 90, 176, 68), New Rectangle(x, y, 88, 34), Color.White)
Core.SpriteBatch.DrawString(FontManager.MiniFont, t, New Vector2(110 - FontManager.MiniFont.MeasureString(t).X / 2, Core.windowSize.Height - 42), Color.Black)
Core.SpriteBatch.DrawString(FontManager.MainFont, t, New Vector2(110 - FontManager.MainFont.MeasureString(t).X / 2, Core.windowSize.Height - 44), Color.Black)
End If
End Sub
Private Sub DrawTerrain(ByVal BattleScreen As BattleScreen)
Dim y As Integer = -1
Dim x As Integer = 0
Dim t As String = ""
With BattleScreen.FieldEffects
If .ElectricTerrain > 0 Then
x = 352
y = 0
t = "Electric Terrain"
End If
If .GrassyTerrain > 0 Then
x = 352
y = 34
t = "Grassy Terrain"
End If
If .MistyTerrain > 0 Then
x = 352
y = 68
t = "Misty Terrain"
End If
If .PsychicTerrain > 0 Then
x = 352
y = 102
t = "Psychic Terrain"
End If
End With
If y > -1 Then
Core.SpriteBatch.Draw(TextureManager.GetTexture("GUI\Battle\WeatherIcons"), New Rectangle(222, Core.windowSize.Height - 90, 176, 68), New Rectangle(x, y, 88, 34), Color.White)
Core.SpriteBatch.DrawString(FontManager.MainFont, t, New Vector2(310 - FontManager.MainFont.MeasureString(t).X / 2, Core.windowSize.Height - 44), Color.Black)
End If
End Sub
@ -70,21 +111,21 @@
Core.SpriteBatch.Draw(TextureManager.GetTexture("GUI\Battle\Interface"), New Rectangle(CInt(pos.X) + 14, CInt(pos.Y) + 14, 182, 42), New Rectangle(0, 0, 91, 21), shinyHue)
'Name:
Dim nameInformation As String = p.GetDisplayName() & " Lv. " & p.Level.ToString()
Dim nameInformation As String = p.GetDisplayName() & " " & Localization.GetString("property_Lv.", "Lv.") & " " & p.Level.ToString()
Core.SpriteBatch.DrawString(FontManager.MiniFont, nameInformation, New Vector2(pos.X + 2, pos.Y + 2), New Color(0, 0, 0, _moveMenuAlpha))
Core.SpriteBatch.DrawString(FontManager.MiniFont, nameInformation, New Vector2(pos.X, pos.Y), shinyHue)
Core.SpriteBatch.DrawString(FontManager.MainFont, nameInformation, New Vector2(pos.X + 2, pos.Y + 2), New Color(0, 0, 0, _moveMenuAlpha))
Core.SpriteBatch.DrawString(FontManager.MainFont, nameInformation, New Vector2(pos.X, pos.Y), shinyHue)
'Gender:
If p.Gender = Pokemon.Genders.Male Then
Core.SpriteBatch.Draw(TextureManager.GetTexture("GUI\Battle\Interface"), New Rectangle(CInt(pos.X + 6 + FontManager.MiniFont.MeasureString(nameInformation).X), CInt(pos.Y), 12, 20), New Rectangle(0, 104, 6, 10), New Color(255, 255, 255, _moveMenuAlpha))
Core.SpriteBatch.Draw(TextureManager.GetTexture("GUI\Battle\Interface"), New Rectangle(CInt(pos.X + 6 + FontManager.MainFont.MeasureString(nameInformation).X), CInt(pos.Y), 12, 20), New Rectangle(0, 104, 6, 10), New Color(255, 255, 255, _moveMenuAlpha))
ElseIf p.Gender = Pokemon.Genders.Female Then
Core.SpriteBatch.Draw(TextureManager.GetTexture("GUI\Battle\Interface"), New Rectangle(CInt(pos.X + 6 + FontManager.MiniFont.MeasureString(nameInformation).X), CInt(pos.Y), 12, 20), New Rectangle(6, 104, 6, 10), New Color(255, 255, 255, _moveMenuAlpha))
Core.SpriteBatch.Draw(TextureManager.GetTexture("GUI\Battle\Interface"), New Rectangle(CInt(pos.X + 6 + FontManager.MainFont.MeasureString(nameInformation).X), CInt(pos.Y), 12, 20), New Rectangle(6, 104, 6, 10), New Color(255, 255, 255, _moveMenuAlpha))
End If
'HP indicator:
Core.SpriteBatch.DrawString(FontManager.MiniFont, p.HP & "/" & p.MaxHP, New Vector2(pos.X + 102, pos.Y + 37 + 3), New Color(0, 0, 0, _moveMenuAlpha))
Core.SpriteBatch.DrawString(FontManager.MiniFont, p.HP & "/" & p.MaxHP, New Vector2(pos.X + 100, pos.Y + 35 + 3), shinyHue)
Core.SpriteBatch.DrawString(FontManager.MainFont, p.HP & "/" & p.MaxHP, New Vector2(pos.X + 102, pos.Y + 37 + 3), New Color(0, 0, 0, _moveMenuAlpha))
Core.SpriteBatch.DrawString(FontManager.MainFont, p.HP & "/" & p.MaxHP, New Vector2(pos.X + 100, pos.Y + 35 + 3), shinyHue)
'EXP Bar:
If BattleScreen.CanReceiveEXP = True Then
@ -117,7 +158,7 @@
Dim t = TextureManager.GetTexture("GUI\Battle\Interface")
For dX As Integer = 0 To EXPlength Step 4
Core.SpriteBatch.Draw(t, New Rectangle(CInt(pos.X) + 50 + dX, CInt(pos.Y) + 54, 4, 6), New Rectangle(0, 43, 2, 3), New Color(255, 255, 255, _moveMenuAlpha))
Core.SpriteBatch.Draw(t, New Rectangle(CInt(pos.X) + 50 + dX, CInt(pos.Y) + 64, 4, 6), New Rectangle(0, 43, 2, 3), New Color(255, 255, 255, _moveMenuAlpha))
Next
End If
End If
@ -127,16 +168,16 @@
Core.SpriteBatch.Draw(TextureManager.GetTexture("GUI\Battle\Interface"), New Rectangle(CInt(pos.X) + 14, CInt(pos.Y) + 14, 182, 32), New Rectangle(0, 21, 91, 16), shinyHue)
'Name:
Dim nameInformation As String = p.GetDisplayName() & " Lv. " & p.Level.ToString()
Dim nameInformation As String = p.GetDisplayName() & " " & Localization.GetString("property_Lv.", "Lv.") & " " & p.Level.ToString()
Core.SpriteBatch.DrawString(FontManager.MiniFont, nameInformation, New Vector2(pos.X + 2, pos.Y + 2), New Color(0, 0, 0, _moveMenuAlpha))
Core.SpriteBatch.DrawString(FontManager.MiniFont, nameInformation, New Vector2(pos.X, pos.Y), shinyHue)
Core.SpriteBatch.DrawString(FontManager.MainFont, nameInformation, New Vector2(pos.X + 2, pos.Y + 2), New Color(0, 0, 0, _moveMenuAlpha))
Core.SpriteBatch.DrawString(FontManager.MainFont, nameInformation, New Vector2(pos.X, pos.Y), shinyHue)
'Gender:
If p.Gender = Pokemon.Genders.Male Then
Core.SpriteBatch.Draw(TextureManager.GetTexture("GUI\Battle\Interface"), New Rectangle(CInt(pos.X + 6 + FontManager.MiniFont.MeasureString(nameInformation).X), CInt(pos.Y), 12, 20), New Rectangle(0, 104, 6, 10), New Color(255, 255, 255, _moveMenuAlpha))
Core.SpriteBatch.Draw(TextureManager.GetTexture("GUI\Battle\Interface"), New Rectangle(CInt(pos.X + 6 + FontManager.MainFont.MeasureString(nameInformation).X), CInt(pos.Y), 12, 20), New Rectangle(0, 104, 6, 10), New Color(255, 255, 255, _moveMenuAlpha))
ElseIf p.Gender = Pokemon.Genders.Female Then
Core.SpriteBatch.Draw(TextureManager.GetTexture("GUI\Battle\Interface"), New Rectangle(CInt(pos.X + 6 + FontManager.MiniFont.MeasureString(nameInformation).X), CInt(pos.Y), 12, 20), New Rectangle(6, 104, 6, 10), New Color(255, 255, 255, _moveMenuAlpha))
Core.SpriteBatch.Draw(TextureManager.GetTexture("GUI\Battle\Interface"), New Rectangle(CInt(pos.X + 6 + FontManager.MainFont.MeasureString(nameInformation).X), CInt(pos.Y), 12, 20), New Rectangle(6, 104, 6, 10), New Color(255, 255, 255, _moveMenuAlpha))
End If
End If
@ -159,9 +200,9 @@
End If
Dim cX As Integer = 0
If HPpercentage <= 50.0F And HPpercentage > 15.0F Then
If HPpercentage <= 75.0F And HPpercentage > 25.0F Then
cX = 2
ElseIf HPpercentage <= 15.0F Then
ElseIf HPpercentage <= 25.0F Then
cX = 4
End If
@ -179,7 +220,9 @@
End If
If DrawCaught = True Then
If Pokedex.GetEntryType(Core.Player.PokedexData, p.Number) > 1 Then
Dim dexID As String = PokemonForms.GetPokemonDataFileName(p.Number, p.AdditionalData, True)
If Pokedex.GetEntryType(Core.Player.PokedexData, dexID) > 1 Then
Core.SpriteBatch.Draw(TextureManager.GetTexture("GUI\Battle\Interface"), New Rectangle(CInt(pos.X) + caughtX, CInt(pos.Y) + 22, 20, 20), New Rectangle(0, 46, 10, 10), New Color(255, 255, 255, _moveMenuAlpha))
End If
End If
@ -268,16 +311,25 @@
End Select
DrawWeather(BattleScreen)
DrawTerrain(BattleScreen)
End If
End Sub
Public Sub Update(ByRef BattleScreen As BattleScreen)
Select Case MenuState
Case MenuStates.Main
UpdateMainMenu(BattleScreen)
Case MenuStates.Moves
UpdateMoveMenu(BattleScreen)
End Select
Dim blockinteractscreen() As Screen.Identifications = {Screen.Identifications.PartyScreen, Screen.Identifications.SummaryScreen, Screen.Identifications.PauseScreen, Screen.Identifications.ChatScreen}
If blockinteractscreen.Contains(Core.CurrentScreen.Identification) = True OrElse (BattleScreen.BattleQuery.Count > 0 AndAlso BattleScreen.BattleQuery(0).QueryType = QueryObject.QueryTypes.Textbox) Then
CanInteract = False
Else
CanInteract = True
End If
If CanInteract = True Then
Select Case MenuState
Case MenuStates.Main
UpdateMainMenu(BattleScreen)
Case MenuStates.Moves
UpdateMoveMenu(BattleScreen)
End Select
End If
End Sub
Private _allItemsExtended As Integer = 0
@ -290,6 +342,7 @@
Private _moveMenuIndex As Integer = 0
Private _moveMenuNextIndex As Integer = 0
Private _moveMenuLastIndex As Integer = 0
Private _moveMenuItemList As New List(Of MoveMenuItem)
Private _moveMenuCreatedID As String = ""
Private _moveMenuAlpha As Integer = 255
@ -339,20 +392,20 @@
Public Sub Draw(ByVal AllExtended As Integer, ByVal SelExtended As Integer, ByVal isSelected As Boolean)
Dim extraExtended As Integer = 0
If isSelected = True Then
Canvas.DrawGradient(New Rectangle(Core.ScreenSize.Width - 255, 100 + Index * 96, 255, 112), New Color(42, 167, 198, 0), New Color(42, 167, 198, (SelExtended + AllExtended)), True, -1)
Canvas.DrawGradient(New Rectangle(Core.windowSize.Width - 255, 100 + Index * 96, 255, 112), New Color(42, 167, 198, 0), New Color(42, 167, 198, (SelExtended + AllExtended)), True, -1)
extraExtended = SelExtended
End If
Core.SpriteBatch.Draw(Me.Texture, New Rectangle(Core.ScreenSize.Width - (AllExtended + extraExtended), 116 + Index * 96, 80, 80), New Rectangle(16, 16, 16, 16), Color.White)
Core.SpriteBatch.Draw(Me.Texture, New Rectangle(Core.ScreenSize.Width - (AllExtended + extraExtended) + 80, 116 + Index * 96, AllExtended + extraExtended - 80, 80), New Rectangle(32, 16, 16, 16), Color.White)
Core.SpriteBatch.Draw(Me.Texture, New Rectangle(Core.windowSize.Width - (AllExtended + extraExtended), 116 + Index * 96, 80, 80), New Rectangle(16, 16, 16, 16), Color.White)
Core.SpriteBatch.Draw(Me.Texture, New Rectangle(Core.windowSize.Width - (AllExtended + extraExtended) + 80, 116 + Index * 96, AllExtended + extraExtended - 80, 80), New Rectangle(32, 16, 16, 16), Color.White)
Core.SpriteBatch.Draw(Me.IconUnselected, New Rectangle(Core.ScreenSize.Width - (AllExtended + extraExtended) + 28, 132 + Index * 96, 48, 48), Color.White)
Core.SpriteBatch.Draw(Me.IconUnselected, New Rectangle(Core.windowSize.Width - (AllExtended + extraExtended) + 28, 132 + Index * 96, 48, 48), Color.White)
If isSelected = True Then
Core.SpriteBatch.Draw(Me.IconSelected, New Rectangle(Core.ScreenSize.Width - (AllExtended + extraExtended) + 28, 132 + Index * 96, 48, 48), New Color(255, 255, 255, (SelExtended + AllExtended)))
Core.SpriteBatch.DrawString(FontManager.MainFont, Me.Text, New Vector2(Core.ScreenSize.Width - (AllExtended + extraExtended) + 86, 144 + Index * 96), New Color(0, 0, 0, (SelExtended + AllExtended)))
Core.SpriteBatch.Draw(Me.IconSelected, New Rectangle(Core.windowSize.Width - (AllExtended + extraExtended) + 28, 132 + Index * 96, 48, 48), New Color(255, 255, 255, (SelExtended + AllExtended)))
Core.SpriteBatch.DrawString(FontManager.MainFont, Me.Text, New Vector2(CInt(Core.windowSize.Width - (AllExtended + extraExtended) + 86), CInt(144 + Index * 96)), New Color(0, 0, 0, (SelExtended + AllExtended)))
Else
If IconFading > 0 Then
Core.SpriteBatch.Draw(Me.IconSelected, New Rectangle(Core.ScreenSize.Width - (AllExtended) + 28, 132 + Index * 96, 48, 48), New Color(255, 255, 255, IconFading))
Core.SpriteBatch.Draw(Me.IconSelected, New Rectangle(Core.windowSize.Width - (AllExtended) + 28, 132 + Index * 96, 48, 48), New Color(255, 255, 255, IconFading))
End If
End If
End Sub
@ -360,7 +413,7 @@
Public Sub Update(ByVal BattleScreen As BattleScreen, ByVal AllExtended As Integer, ByVal isSelected As Boolean)
Me.Activate(BattleScreen, AllExtended, isSelected)
If isSelected = False Then
If MouseHandler.IsInRectangle(New Rectangle(Core.ScreenSize.Width - (AllExtended) + 28, 132 + Index * 96, 48, 48)) = True Then
If MouseHandler.IsInRectangle(New Rectangle(Core.windowSize.Width - (AllExtended) + 28, 132 + Index * 96, 48, 48)) = True Then
If IconFading < 255 Then
IconFading += 15
If IconFading > 255 Then
@ -383,11 +436,13 @@
Public Sub Activate(ByVal BattleScreen As BattleScreen, ByVal AllExtended As Integer, ByVal isSelected As Boolean)
If BattleScreen.BattleMenu._isExtracting = False And BattleScreen.BattleMenu._isRetracting = False Then
If Controls.Accept(False, True, True) = True And isSelected = True Then
SoundManager.PlaySound("select")
Me.ClickAction(BattleScreen)
End If
If Controls.Accept(True, False, False) = True Then
If MouseHandler.IsInRectangle(New Rectangle(Core.ScreenSize.Width - 255, 116 + Index * 96, 255, 80)) = True Then
If MouseHandler.IsInRectangle(New Rectangle(Core.windowSize.Width - 255, 116 + Index * 96, 255, 80)) = True Then
If isSelected = True Then
SoundManager.PlaySound("select")
Me.ClickAction(BattleScreen)
Else
BattleScreen.BattleMenu._mainMenuNextIndex = Me.Index
@ -421,23 +476,31 @@
Dim extraExtended As Integer = 0
If isSelected = True Then
Canvas.DrawGradient(New Rectangle(Core.ScreenSize.Width - 255, 100 + Index * 96, 255, 112), New Color(42, 167, 198, 0), New Color(42, 167, 198, (SelExtended + AllExtended) - deductAlpha), True, -1)
Canvas.DrawGradient(New Rectangle(Core.windowSize.Width - 255, 100 + Index * 96, 255, 112), New Color(42, 167, 198, 0), New Color(42, 167, 198, (SelExtended + AllExtended) - deductAlpha), True, -1)
extraExtended = SelExtended
End If
Core.SpriteBatch.Draw(Me.Texture, New Rectangle(Core.ScreenSize.Width - (AllExtended + extraExtended), 116 + Index * 96, 80, 80), New Rectangle(16, 16, 16, 16), New Color(255, 255, 255, 255 - deductAlpha))
Core.SpriteBatch.Draw(Me.Texture, New Rectangle(Core.ScreenSize.Width - (AllExtended + extraExtended) + 80, 116 + Index * 96, AllExtended + extraExtended - 80, 80), New Rectangle(32, 16, 16, 16), New Color(255, 255, 255, 255 - deductAlpha))
Dim BackgroundDrawColor As Color = Color.White
If Move.Disabled > 0 OrElse BattleScreen.FieldEffects.OwnEncore > 0 AndAlso BattleScreen.FieldEffects.OwnEncoreMove.ID <> Move.ID Then
BackgroundDrawColor = New Color(210, 210, 210)
End If
Core.SpriteBatch.Draw(Me.Texture, New Rectangle(Core.windowSize.Width - (AllExtended + extraExtended), 116 + Index * 96, 80, 80), New Rectangle(16, 16, 16, 16), New Color(BackgroundDrawColor.R, BackgroundDrawColor.G, BackgroundDrawColor.B, 255 - deductAlpha))
Core.SpriteBatch.Draw(Me.Texture, New Rectangle(Core.windowSize.Width - (AllExtended + extraExtended) + 80, 116 + Index * 96, AllExtended + extraExtended - 80, 80), New Rectangle(32, 16, 16, 16), New Color(BackgroundDrawColor.R, BackgroundDrawColor.G, BackgroundDrawColor.B, 255 - deductAlpha))
Core.SpriteBatch.Draw(TextureManager.GetTexture("GUI\Menus\Types", Me.Move.Type.GetElementImage(), ""), New Rectangle(Core.ScreenSize.Width - (AllExtended + extraExtended) + 28, 132 + Index * 96, 48, 16), New Color(255, 255, 255, 255 - deductAlpha))
Core.SpriteBatch.Draw(TextureManager.GetTexture(Element.GetElementTexturePath(), Me.Move.Type.GetElementImage(), ""), New Rectangle(Core.windowSize.Width - (AllExtended + extraExtended) + 28, 132 + Index * 96, 48, 16), New Color(255, 255, 255, 255 - deductAlpha))
If isSelected = True Then
Dim ppColor As Color = GetPPColor()
ppColor.A = CByte((extraExtended + AllExtended - deductAlpha).Clamp(0, 255))
If Move.Disabled > 0 OrElse BattleScreen.FieldEffects.OwnEncore > 0 AndAlso BattleScreen.FieldEffects.OwnEncoreMove.ID <> Move.ID Then
Core.SpriteBatch.DrawString(FontManager.MainFont, Localization.GetString("battle_MoveDisabled", "Disabled!"), New Vector2(CInt(Core.windowSize.Width - (AllExtended + extraExtended) + 28), CInt(152 + Index * 96)), Color.Black)
Else
Dim ppColor As Color = GetPPColor()
ppColor.A = CByte((extraExtended + AllExtended - deductAlpha).Clamp(0, 255))
Core.SpriteBatch.DrawString(FontManager.MiniFont, Me.Move.CurrentPP & "/" & Me.Move.MaxPP, New Vector2(Core.ScreenSize.Width - (AllExtended + extraExtended) + 28, 150 + Index * 96), ppColor)
Core.SpriteBatch.DrawString(FontManager.MainFont, Me.Move.Name, New Vector2(Core.ScreenSize.Width - (AllExtended + extraExtended) + 86, 144 + Index * 96), New Color(0, 0, 0, (SelExtended + AllExtended) - deductAlpha))
Core.SpriteBatch.DrawString(FontManager.MainFont, Me.Move.CurrentPP & "/" & Me.Move.MaxPP, New Vector2(CInt(Core.windowSize.Width - (AllExtended + extraExtended) + 28), CInt(152 + Index * 96)), ppColor)
End If
Core.SpriteBatch.DrawString(FontManager.MainFont, Me.Move.Name, New Vector2(CInt(Core.windowSize.Width - (AllExtended + extraExtended) + 86), CInt(132 + Index * 96)), New Color(0, 0, 0, (SelExtended + AllExtended) - deductAlpha))
Else
Core.SpriteBatch.DrawString(FontManager.MiniFont, Me.Move.Name, New Vector2(Core.ScreenSize.Width - (AllExtended + extraExtended) + 28, 150 + Index * 96), New Color(0, 0, 0, 255 - (extraExtended + AllExtended) - deductAlpha))
Core.SpriteBatch.DrawString(FontManager.MainFont, Me.Move.Name, New Vector2(Core.windowSize.Width - (AllExtended + extraExtended) + 28, 152 + Index * 96), New Color(0, 0, 0, 255 - (extraExtended + AllExtended) - deductAlpha))
End If
End Sub
@ -461,19 +524,30 @@
Public Sub Activate(ByVal BattleScreen As BattleScreen, ByVal AllExtended As Integer, ByVal isSelected As Boolean)
If BattleScreen.BattleMenu._isExtracting = False And BattleScreen.BattleMenu._isRetracting = False Then
If Me.Move.CurrentPP > 0 Or isSelected = False Then
If Controls.Accept(False, True, True) = True And isSelected = True Then
Me.ClickAction(BattleScreen)
SoundManager.PlaySound("select")
If Me.Move.Disabled = 0 AndAlso BattleScreen.FieldEffects.OwnEncore = 0 OrElse BattleScreen.FieldEffects.OwnEncoreMove.ID = Move.ID Then
BattleScreen.BattleMenu._moveMenuLastIndex = Me.Index
Me.ClickAction(BattleScreen)
End If
End If
If Controls.Accept(True, False, False) = True Then
If MouseHandler.IsInRectangle(New Rectangle(Core.ScreenSize.Width - 255, 116 + Index * 96, 255, 80)) = True Then
If MouseHandler.IsInRectangle(New Rectangle(Core.windowSize.Width - 255, 116 + Index * 96, 255, 80)) = True Then
If isSelected = True Then
Me.ClickAction(BattleScreen)
SoundManager.PlaySound("select")
If Me.Move.Disabled = 0 AndAlso BattleScreen.FieldEffects.OwnEncore = 0 OrElse BattleScreen.FieldEffects.OwnEncoreMove IsNot Nothing AndAlso BattleScreen.FieldEffects.OwnEncoreMove.ID = Move.ID Then
BattleScreen.BattleMenu._moveMenuLastIndex = Me.Index
Me.ClickAction(BattleScreen)
End If
Else
BattleScreen.BattleMenu._moveMenuNextIndex = Me.Index
BattleScreen.BattleMenu._moveMenuLastIndex = Me.Index
BattleScreen.BattleMenu._isRetracting = True
End If
End If
End If
End If
End If
End Sub
@ -565,10 +639,21 @@
_mainMenuItemList.Clear()
BattleScreen.ClearMainMenuTime = False
End If
If _mainMenuItemList.Count = 0 Then
CreateMainMenuItems(BattleScreen)
End If
If BattleScreen.OwnFaint = True Then
If BattleScreen.BattleQuery(0).QueryType <> QueryObject.QueryTypes.ScreenFade Then
TempBattleScreen = BattleScreen
Player.Temp.PokemonScreenIndex = BattleScreen.OwnPokemonIndex
Dim selScreen = New PartyScreen(Core.CurrentScreen, Item.GetItemByID(5.ToString), AddressOf ShowPokemonMenu, Localization.GetString("party_screen_ChoosePokemon", "Choose Pokémon"), False) With {.Mode = Screens.UI.ISelectionScreen.ScreenMode.Selection, .CanExit = False}
AddHandler selScreen.SelectedObject, AddressOf ShowPokemonMenuHandler
Core.SetScreen(selScreen)
End If
End If
If _retractMenu = False Then
For Each m As MainMenuItem In _mainMenuItemList
m.Update(BattleScreen, _allItemsExtended, (m.Index = _mainMenuIndex))
@ -582,33 +667,33 @@
_mainMenuItemList.Clear()
Select Case BattleScreen.BattleMode
Case BattleSystem.BattleScreen.BattleModes.Safari
Dim safariBallText As String = "Safari Ball x" & Core.Player.Inventory.GetItemAmount(181).ToString()
If Core.Player.Inventory.GetItemAmount(181) = 0 Then
safariBallText = "No Safari Balls."
Dim safariBallText As String = Localization.GetString("item_name_181", "Safari Ball") & " x" & Core.Player.Inventory.GetItemAmount(181.ToString).ToString()
If Core.Player.Inventory.GetItemAmount(181.ToString) = 0 Then
safariBallText = Localization.GetString("battle_NoSafariBalls", "No Safari Balls.")
End If
_mainMenuItemList.Add(New MainMenuItem(4, safariBallText, 0, AddressOf MainMenuUseSafariBall))
_mainMenuItemList.Add(New MainMenuItem(0, "Throw Mud", 1, AddressOf MainMenuThrowMud))
_mainMenuItemList.Add(New MainMenuItem(0, "Throw Bait", 2, AddressOf MainMenuThrowBait))
_mainMenuItemList.Add(New MainMenuItem(0, Localization.GetString("battle_action_ThrowMud", "Throw Mud"), 1, AddressOf MainMenuThrowMud))
_mainMenuItemList.Add(New MainMenuItem(0, Localization.GetString("battle_action_ThrowBait", "Throw Bait"), 2, AddressOf MainMenuThrowBait))
_mainMenuItemList.Add(New MainMenuItem(3, "Run", 3, AddressOf MainMenuRun))
_mainMenuItemList.Add(New MainMenuItem(3, Localization.GetString("battle_action_Run", "Run"), 3, AddressOf MainMenuRun))
Case BattleSystem.BattleScreen.BattleModes.BugContest
_mainMenuItemList.Add(New MainMenuItem(0, "Battle", 0, AddressOf MainMenuOpenBattleMenu))
_mainMenuItemList.Add(New MainMenuItem(0, Localization.GetString("battle_action_Battle", "Battle"), 0, AddressOf MainMenuOpenBattleMenu))
Dim sportBallText As String = "Sport Ball x" & Core.Player.Inventory.GetItemAmount(177).ToString()
If Core.Player.Inventory.GetItemAmount(177) = 0 Then
sportBallText = "No Sport Balls."
Dim sportBallText As String = Localization.GetString("item_name_177", "Sport Ball") & " x" & Core.Player.Inventory.GetItemAmount(177.ToString).ToString()
If Core.Player.Inventory.GetItemAmount(177.ToString) = 0 Then
sportBallText = Localization.GetString("battle_NoSportBalls", "No Sport Balls.")
End If
_mainMenuItemList.Add(New MainMenuItem(4, sportBallText, 1, AddressOf MainMenuUseSportBall))
_mainMenuItemList.Add(New MainMenuItem(1, "Pokémon", 2, AddressOf MainMenuOpenPokemon))
_mainMenuItemList.Add(New MainMenuItem(3, "Run", 3, AddressOf MainMenuRun))
_mainMenuItemList.Add(New MainMenuItem(3, Localization.GetString("battle_action_Run", "Run"), 3, AddressOf MainMenuRun))
Case BattleSystem.BattleScreen.BattleModes.Standard
If BattleScreen.OwnFaint Then
_mainMenuIndex = 0
_mainMenuNextIndex = 0
_mainMenuItemList.Add(New MainMenuItem(1, "Pokémon", 0, AddressOf MainMenuOpenPokemon))
If BattleScreen.IsRemoteBattle AndAlso Not BattleScreen.IsHost Then
_mainMenuItemList.Add(New MainMenuItem(1, "Pokémon", 0, AddressOf MainMenuOpenPokemon))
BattleScreen.OwnFaint = False
End If
ElseIf BattleScreen.OppFaint And BattleScreen.IsRemoteBattle Then
@ -624,12 +709,12 @@
End If
BattleScreen.OppFaint = False
Else
_mainMenuItemList.Add(New MainMenuItem(0, "Battle", 0, AddressOf MainMenuOpenBattleMenu))
_mainMenuItemList.Add(New MainMenuItem(0, Localization.GetString("battle_action_Battle", "Battle"), 0, AddressOf MainMenuOpenBattleMenu))
_mainMenuItemList.Add(New MainMenuItem(1, "Pokémon", 1, AddressOf MainMenuOpenPokemon))
_mainMenuItemList.Add(New MainMenuItem(2, "Bag", 2, AddressOf MainMenuOpenBag))
_mainMenuItemList.Add(New MainMenuItem(2, Localization.GetString("battle_action_Bag", "Bag"), 2, AddressOf MainMenuOpenBag))
If BattleScreen.IsTrainerBattle = False Then
_mainMenuItemList.Add(New MainMenuItem(3, "Run", 3, AddressOf MainMenuRun))
_mainMenuItemList.Add(New MainMenuItem(3, Localization.GetString("battle_action_Run", "Run"), 3, AddressOf MainMenuRun))
MainMenuAddMegaEvolution(BattleScreen, 4)
Else
MainMenuAddMegaEvolution(BattleScreen, 3)
@ -637,16 +722,16 @@
End If
Case BattleSystem.BattleScreen.BattleModes.PVP
_mainMenuItemList.Add(New MainMenuItem(0, "Battle", 0, AddressOf MainMenuOpenBattleMenu))
_mainMenuItemList.Add(New MainMenuItem(0, Localization.GetString("battle_action_Battle", "Battle"), 0, AddressOf MainMenuOpenBattleMenu))
_mainMenuItemList.Add(New MainMenuItem(1, "Pokémon", 1, AddressOf MainMenuOpenPokemon))
_mainMenuItemList.Add(New MainMenuItem(3, "Surrender", 2, AddressOf MainMenuOpenBag))
_mainMenuItemList.Add(New MainMenuItem(3, Localization.GetString("battle_action_Surrender", "Surrender"), 2, AddressOf MainMenuOpenBag))
End Select
End Sub
Private Sub MainMenuAddMegaEvolution(ByVal BattleScreen As BattleScreen, ByVal Index As Integer)
'Checks if the player has the Mega Bracelet.
If Not (Core.Player.Inventory.GetItemAmount(576) > 0) Then
If Not (Core.Player.Inventory.GetItemAmount(576.ToString) > 0) Then
Exit Sub
End If
@ -669,12 +754,19 @@
'Next
Dim PokeIndex As Integer = BattleScreen.OwnPokemonIndex
If BattleScreen.FieldEffects.OwnMegaEvolved = False Then
If Not Core.Player.Pokemons(PokeIndex).Item Is Nothing Then
If Core.Player.Pokemons(PokeIndex).Item.IsMegaStone = True Then
Dim megaStone = CType(Core.Player.Pokemons(PokeIndex).Item, Items.MegaStone)
If megaStone.MegaPokemonNumber = Core.Player.Pokemons(PokeIndex).Number Then
_mainMenuItemList.Add(New MainMenuItem(5, "Mega Evolve!", Index, AddressOf MainMenuMegaEvolve))
If Core.Player.Pokemons(PokeIndex).Item IsNot Nothing Then
If Core.Player.Pokemons(PokeIndex).Item.IsGameModeItem = True Then
If Core.Player.Pokemons(PokeIndex).Item.gmIsMegaStone = True Then
If Core.Player.Pokemons(PokeIndex).Number = CType(Core.Player.Pokemons(PokeIndex).Item, GameModeItem).gmMegaPokemonNumber Then
_mainMenuItemList.Add(New MainMenuItem(5, Localization.GetString("battle_action_MegaEvolve", "Mega Evolve!"), Index, AddressOf MainMenuMegaEvolve))
End If
End If
Else
If Core.Player.Pokemons(PokeIndex).Item.IsMegaStone = True Then
Dim megaStone = CType(Core.Player.Pokemons(PokeIndex).Item, Items.MegaStone)
If megaStone.MegaPokemonNumber = Core.Player.Pokemons(PokeIndex).Number Then
_mainMenuItemList.Add(New MainMenuItem(5, Localization.GetString("battle_action_MegaEvolve", "Mega Evolve!"), Index, AddressOf MainMenuMegaEvolve))
End If
End If
End If
End If
@ -688,7 +780,11 @@
Private Sub MainMenuOpenBattleMenu(ByVal BattleScreen As BattleScreen)
_retractMenu = True
_nextMenuState = MenuStates.Moves
PartyScreen.Selected = -1
If _moveMenuIndex <> _moveMenuLastIndex Then
_moveMenuNextIndex = _moveMenuLastIndex
_moveMenuIndex = _moveMenuLastIndex
End If
BattleScreen.BattleQuery.Clear()
Dim q As New CameraQueryObject(New Vector3(11, 0.5F, 14.0F), New Vector3(11, 0.5F, 14.0F), Screen.Camera.Speed, Screen.Camera.Speed, -(CSng(MathHelper.PiOver4) + 0.3F), -(CSng(MathHelper.PiOver4) + 0.3F), -0.3F, -0.3F, 0.04F, 0.04F)
BattleScreen.BattleQuery.AddRange({q})
@ -698,7 +794,7 @@
TempBattleScreen = BattleScreen
Player.Temp.PokemonScreenIndex = BattleScreen.OwnPokemonIndex
Dim selScreen = New PartyScreen(Core.CurrentScreen, Item.GetItemByID(5), AddressOf ShowPokemonMenu, "Choose Pokémon", True) With {.Mode = Screens.UI.ISelectionScreen.ScreenMode.Selection, .CanExit = True}
Dim selScreen = New PartyScreen(Core.CurrentScreen, Item.GetItemByID(5.ToString), AddressOf ShowPokemonMenu, Localization.GetString("party_screen_ChoosePokemon", "Choose Pokémon"), True) With {.Mode = Screens.UI.ISelectionScreen.ScreenMode.Selection, .CanExit = True}
AddHandler selScreen.SelectedObject, AddressOf ShowPokemonMenuHandler
Core.SetScreen(selScreen)
@ -728,39 +824,63 @@
Battle.Won = True
Battle.Fled = True
Else
BattleScreen.BattleQuery.Clear()
BattleScreen.BattleQuery.Add(BattleScreen.FocusBattle())
BattleScreen.BattleQuery.Insert(0, New ToggleMenuQueryObject(True))
BattleScreen.Battle.InitializeRound(BattleScreen, New Battle.RoundConst With {.StepType = Battle.RoundConst.StepTypes.Text, .Argument = "Failed to run away."})
Dim Trapped As Boolean = False
Dim p As Pokemon = BattleScreen.OwnPokemon
Dim op As Pokemon = BattleScreen.OppPokemon
If op.Ability.Name.ToLower() = "shadow tag" And p.Ability.Name.ToLower() <> "shadow tag" And op.HP > 0 Then
Trapped = True
End If
If op.Ability.Name.ToLower() = "arena trap" And op.HP > 0 And BattleScreen.FieldEffects.IsGrounded(True, BattleScreen) = True Then
Trapped = True
End If
If op.Ability.Name.ToLower() = "magnet pull" And op.HP > 0 Then
If p.Type1.Type = Element.Types.Steel Or p.Type2.Type = Element.Types.Steel Then
Trapped = True
End If
End If
If Trapped = True Then
Screen.TextBox.Show(Localization.GetString("battle_cannot_run_ability", "Failed to run away because of~") & Localization.GetString("ability_name_" & op.Ability.ID.ToString, op.Ability.Name) & ".", {}, True, True)
Else
BattleScreen.BattleQuery.Clear()
BattleScreen.BattleQuery.Add(BattleScreen.FocusBattle())
BattleScreen.BattleQuery.Insert(0, New ToggleMenuQueryObject(True))
BattleScreen.Battle.InitializeRound(BattleScreen, New Battle.RoundConst With {.StepType = Battle.RoundConst.StepTypes.Text, .Argument = Localization.GetString("battle_cannot_run", "Failed to run away.")})
End If
End If
End Sub
Private Sub MainMenuUseSafariBall(ByVal BattleScreen As BattleScreen)
If Core.Player.Inventory.GetItemAmount(181) > 0 Then
Core.Player.Inventory.RemoveItem(181, 1)
If Core.Player.Inventory.GetItemAmount(181.ToString) > 0 Then
Core.Player.Inventory.RemoveItem(181.ToString, 1)
BattleScreen.BattleQuery.Clear()
BattleScreen.BattleQuery.Add(BattleScreen.FocusBattle())
BattleScreen.BattleQuery.Insert(0, New ToggleMenuQueryObject(True))
Core.SetScreen(New BattleCatchScreen(BattleScreen, Item.GetItemByID(181)))
Core.SetScreen(New BattleCatchScreen(BattleScreen, Item.GetItemByID(181.ToString)))
Dim safariBallText As String = "Safari Ball x" & Core.Player.Inventory.GetItemAmount(181).ToString()
If Core.Player.Inventory.GetItemAmount(181) = 0 Then
safariBallText = "No Safari Balls."
Core.Player.UsedItemsToCheckScriptDelayFor.Add("181")
Dim safariBallText As String = Localization.GetString("item_name_181", "Safari Ball") & " x" & Core.Player.Inventory.GetItemAmount(181.ToString).ToString()
If Core.Player.Inventory.GetItemAmount(181.ToString) = 0 Then
safariBallText = Localization.GetString("battle_NoSafariBalls", "No Safari Balls.")
End If
_mainMenuItemList(0).Text = safariBallText
End If
End Sub
Private Sub MainMenuUseSportBall(ByVal BattleScreen As BattleScreen)
If Core.Player.Inventory.GetItemAmount(177) > 0 Then
Core.Player.Inventory.RemoveItem(177, 1)
If Core.Player.Inventory.GetItemAmount(177.ToString) > 0 Then
Core.Player.Inventory.RemoveItem(177.ToString, 1)
BattleScreen.BattleQuery.Clear()
BattleScreen.BattleQuery.Add(BattleScreen.FocusBattle())
BattleScreen.BattleQuery.Insert(0, New ToggleMenuQueryObject(True))
Core.SetScreen(New BattleCatchScreen(BattleScreen, Item.GetItemByID(177)))
Core.SetScreen(New BattleCatchScreen(BattleScreen, Item.GetItemByID(177.ToString)))
Dim sportBallText As String = "Sport Ball x" & Core.Player.Inventory.GetItemAmount(177).ToString()
If Core.Player.Inventory.GetItemAmount(177) = 0 Then
Dim sportBallText As String = "Sport Ball x" & Core.Player.Inventory.GetItemAmount(177.ToString).ToString()
If Core.Player.Inventory.GetItemAmount(177.ToString) = 0 Then
sportBallText = "No Sport Balls."
End If
_mainMenuItemList(0).Text = sportBallText
@ -824,22 +944,55 @@
_moveMenuItemList.Clear()
BattleScreen.ClearMoveMenuTime = False
End If
If _moveMenuIndex > _moveMenuItemList.Count - 1 Then
_moveMenuIndex = 0
_moveMenuNextIndex = 0
End If
If _moveMenuChoseMove = True Then
_moveMenuAlpha -= 15
If _moveMenuAlpha <= 0 Then
_moveMenuAlpha = 0
MoveMenuStartRound(BattleScreen)
Visible = False
If BattleScreen.OwnPokemon.Attacks(_moveMenuIndex).SwapsOutOwnPokemon = True Then
If PartyScreen.Selected = -1 Then
Dim selScreen = New PartyScreen(Core.CurrentScreen, Item.GetItemByID(5.ToString), Nothing, Localization.GetString("party_screen_ChoosePokemon", "Choose Pokémon"), False, False, False) With {.Mode = Screens.UI.ISelectionScreen.ScreenMode.Selection, .CanExit = False, .SelectButtonText = Localization.GetString("global_switch", "Switch")}
AddHandler selScreen.SelectedObject, Nothing
Core.SetScreen(selScreen)
End If
If CurrentScreen.Identification <> Screen.Identifications.PartyScreen AndAlso PartyScreen.Selected <> -1 Then
If BattleScreen.OwnPokemon.Attacks(_moveMenuIndex).ID = 226 Then
BattleScreen.FieldEffects.OwnBatonPassIndex = PartyScreen.Selected
Else
BattleScreen.FieldEffects.OwnSwapIndex = PartyScreen.Selected
End If
PartyScreen.Selected = -1
MoveMenuStartRound(BattleScreen)
Visible = False
End If
Else
MoveMenuStartRound(BattleScreen)
Visible = False
End If
End If
Else
UseStruggle(BattleScreen)
If _moveMenuItemList.Count = 0 Or _moveMenuCreatedID <> BattleScreen.OwnPokemon.IndividualValue Or BattleScreen.IsChoiced Then
If _moveMenuItemList.Count = 0 Or _moveMenuCreatedID <> BattleScreen.OwnPokemon.IndividualValue Then
If _moveMenuCreatedID <> BattleScreen.OwnPokemon.IndividualValue Then
_moveMenuIndex = 0
End If
CreateMoveMenuItems(BattleScreen)
If _moveMenuIndex <> _moveMenuLastIndex Then
_moveMenuNextIndex = _moveMenuLastIndex
_moveMenuIndex = _moveMenuLastIndex
If _moveMenuIndex > _moveMenuItemList.Count - 1 Then
_moveMenuNextIndex = 0
_moveMenuIndex = 0
_moveMenuLastIndex = 0
End If
End If
_moveMenuCreatedID = BattleScreen.OwnPokemon.IndividualValue
End If
If _retractMenu = False Then
@ -851,6 +1004,7 @@
UpdateMenuOptions(_moveMenuIndex, _moveMenuNextIndex, _moveMenuItemList.Count)
If Controls.Dismiss(True, True, True) = True And _retractMenu = False And _isExtracting = False And _isRetracting = False Then
SoundManager.PlaySound("select")
_retractMenu = True
_nextMenuState = MenuStates.Main
@ -895,12 +1049,18 @@
BattleScreen.BattleQuery.Clear()
BattleScreen.BattleQuery.Add(BattleScreen.FocusBattle())
BattleScreen.BattleQuery.Insert(0, New ToggleMenuQueryObject(True))
Dim SwitchPokeSuffix As String = ""
If BattleScreen.FieldEffects.OwnBatonPassIndex <> -1 Then
SwitchPokeSuffix = ";BATON;" & BattleScreen.FieldEffects.OwnBatonPassIndex
ElseIf BattleScreen.FieldEffects.OwnSwapIndex <> -1 Then
SwitchPokeSuffix = ";SWAP;" & BattleScreen.FieldEffects.OwnSwapIndex
End If
If BattleScreen.IsMegaEvolvingOwn Then
BattleScreen.SendClientCommand("MEGA|" & BattleScreen.OwnPokemon.Attacks(_moveMenuIndex).ID.ToString())
BattleScreen.SendClientCommand("MEGA|" & BattleScreen.OwnPokemon.Attacks(_moveMenuIndex).ID.ToString() & SwitchPokeSuffix)
BattleScreen.IsMegaEvolvingOwn = False
BattleScreen.FieldEffects.OwnMegaEvolved = True
Else
BattleScreen.SendClientCommand("MOVE|" & BattleScreen.OwnPokemon.Attacks(_moveMenuIndex).ID.ToString())
BattleScreen.SendClientCommand("MOVE|" & BattleScreen.OwnPokemon.Attacks(_moveMenuIndex).ID.ToString() & SwitchPokeSuffix)
End If
Else
If BattleScreen.IsMegaEvolvingOwn Then
@ -943,34 +1103,36 @@
Dim Pokemon As Pokemon = Core.Player.Pokemons(PokeIndex)
If PokeIndex = TempBattleScreen.OwnPokemonIndex Then
Screen.TextBox.Show(Pokemon.GetDisplayName() & " is already~in battle!", {}, True, False)
If Pokemon.Status <> P3D.Pokemon.StatusProblems.Fainted Then
Screen.TextBox.Show(Pokemon.GetDisplayName() & " " & Localization.GetString("battle_switch_already_in_battle", "is already~in battle!"), {}, True, False)
Else
Screen.TextBox.Show(Pokemon.GetDisplayName() & " " & Localization.GetString("battle_switch_fainted", "is fainted!"), {}, True, False)
End If
Else
If Pokemon.IsEgg() = False Then
If Pokemon.Status <> P3D.Pokemon.StatusProblems.Fainted Then
If BattleCalculation.CanSwitch(TempBattleScreen, True) = False Then
Screen.TextBox.Show("Cannot switch out.", {}, True, False)
Screen.TextBox.Show(Localization.GetString("battle_cannot_switch", "Cannot switch out."), {}, True, False)
Else
If TempBattleScreen.OwnPokemonIndex <> PokeIndex Then
If TempBattleScreen.IsRemoteBattle = True And TempBattleScreen.IsHost = False Then
TempBattleScreen.OppFaint = False
TempBattleScreen.OwnStatistics.Switches += 1
TempBattleScreen.BattleQuery.Clear()
TempBattleScreen.BattleQuery.Add(TempBattleScreen.FocusBattle())
TempBattleScreen.BattleQuery.Insert(0, New ToggleMenuQueryObject(True))
TempBattleScreen.SendClientCommand("SWITCH|" & PokeIndex.ToString())
Else
TempBattleScreen.BattleQuery.Clear()
TempBattleScreen.BattleQuery.Add(TempBattleScreen.FocusBattle())
TempBattleScreen.BattleQuery.Insert(0, New ToggleMenuQueryObject(True))
TempBattleScreen.Battle.InitializeRound(TempBattleScreen, New Battle.RoundConst With {.StepType = Battle.RoundConst.StepTypes.Switch, .Argument = PokeIndex.ToString()})
End If
If TempBattleScreen.IsRemoteBattle = True And TempBattleScreen.IsHost = False Then
TempBattleScreen.OppFaint = False
TempBattleScreen.OwnStatistics.Switches += 1
TempBattleScreen.BattleQuery.Clear()
TempBattleScreen.BattleQuery.Add(TempBattleScreen.FocusBattle())
TempBattleScreen.BattleQuery.Insert(0, New ToggleMenuQueryObject(True))
TempBattleScreen.SendClientCommand("SWITCH|" & PokeIndex.ToString())
Else
TempBattleScreen.BattleQuery.Clear()
TempBattleScreen.BattleQuery.Add(TempBattleScreen.FocusBattle())
TempBattleScreen.BattleQuery.Insert(0, New ToggleMenuQueryObject(True))
TempBattleScreen.Battle.InitializeRound(TempBattleScreen, New Battle.RoundConst With {.StepType = Battle.RoundConst.StepTypes.Switch, .Argument = PokeIndex.ToString()})
End If
End If
Else
Screen.TextBox.Show(Pokemon.GetDisplayName() & " is fainted!", {}, True, False)
Screen.TextBox.Show(Pokemon.GetDisplayName() & " " & Localization.GetString("battle_switch_fainted", "is fainted!"), {}, True, False)
End If
Else
Screen.TextBox.Show("Cannot switch in~the egg!", {}, True, False)
Screen.TextBox.Show(Localization.GetString("battle_switch_egg", "Cannot switch in~the egg!"), {}, True, False)
End If
End If
End Sub
@ -980,21 +1142,21 @@
#Region "UseItem"
Private Shared Sub SelectedItemHandler(ByVal params As Object())
SelectedItem(CInt(params(0)))
SelectedItem(CStr(params(0)))
End Sub
Private Shared Sub SelectedItem(ByVal itemID As Integer)
Dim Item As Item = Item.GetItemByID(itemID)
Private Shared Sub SelectedItem(ByVal itemID As String)
Dim Item As Item = Item.GetItemByID(itemID.ToString)
If Item.CanBeUsedInBattle = True Then
If Item.IsBall = True Then
Core.Player.Inventory.RemoveItem(itemID, 1)
Core.Player.Inventory.RemoveItem(itemID.ToString, 1)
If TempBattleScreen.IsTrainerBattle = False Then
If BattleScreen.CanCatch = True Or CBool(GameModeManager.GetGameRuleValue("OnlyCaptureFirst", "0")) = True And Core.Player.PokeFiles.Contains(BattleScreen.TempPokeFile) = True Then
If BattleScreen.CanCatch = True Or CBool(GameModeManager.GetGameRuleValue("OnlyCaptureFirst", "0")) = True And Core.Player.PokeFiles.Contains(BattleScreen.TempPokeFile) = False Then
TempBattleScreen.BattleQuery.Clear()
TempBattleScreen.BattleQuery.Add(TempBattleScreen.FocusBattle())
TempBattleScreen.BattleQuery.Insert(0, New ToggleMenuQueryObject(True))
Core.SetScreen(New BattleCatchScreen(TempBattleScreen, Item.GetItemByID(itemID)))
Core.SetScreen(New BattleCatchScreen(TempBattleScreen, Item.GetItemByID(itemID.ToString)))
PlayerStatistics.Track("[4]Poké Balls used", 1)
Else
TempBattleScreen.BattleQuery.Clear()
@ -1013,7 +1175,7 @@
If Item.BattleSelectPokemon = True Then
'Core.SetScreen(New PartyScreen(Core.CurrentScreen, Item, AddressOf UseItem, "Use " & Item.Name, True))
Dim selScreen = New PartyScreen(Core.CurrentScreen, Item, AddressOf Item.UseOnPokemon, "Use " & Item.Name, True) With {.Mode = Screens.UI.ISelectionScreen.ScreenMode.Selection, .CanExit = True}
Dim selScreen = New PartyScreen(Core.CurrentScreen, Item, AddressOf Item.UseOnPokemon, Localization.GetString("global_use", "Use") & " " & Item.OneLineName(), True) With {.Mode = Screens.UI.ISelectionScreen.ScreenMode.Selection, .CanExit = True}
AddHandler selScreen.SelectedObject, AddressOf UseItemHandler
Core.SetScreen(selScreen)
@ -1024,9 +1186,9 @@
End If
End Sub
Shared TempItemID As Integer = -1
Shared TempItemID As String = "-1"
Private Shared Sub UseItemhandler(ByVal params As Object())
Private Shared Sub UseItemHandler(ByVal params As Object())
UseItem(CInt(params(0)))
End Sub
@ -1035,8 +1197,14 @@
Dim Item As Item = Item.GetItemByID(TempItemID)
TempBattleScreen.BattleQuery.Clear()
If Item.UseOnPokemon(PokeIndex) = True Then
Dim CudChewBerries As String() = {"oran", "sitrus", "figy", "wiki", "mago", "aguav", "iapapa", "liechi", "ganlon", "salac", "petaya", "apicot", "lansat", "starf", "lum", "rawst", "aspear", "cheri", "chesto"}
If Core.Player.Pokemons(PokeIndex).Ability.Name.ToLower() = "cud chew" AndAlso Item.IsBerry = True AndAlso CudChewBerries.Contains(Item.Name.ToLower) Then
TempBattleScreen.FieldEffects.OwnCudChewBerry = Item
TempBattleScreen.FieldEffects.OwnCudChewIndex = PokeIndex
End If
TempBattleScreen.BattleQuery.Clear()
TempBattleScreen.BattleQuery.Add(TempBattleScreen.FocusBattle())
TempBattleScreen.BattleQuery.Insert(0, New ToggleMenuQueryObject(True))
TempBattleScreen.Battle.InitializeRound(TempBattleScreen, New Battle.RoundConst With {.StepType = Battle.RoundConst.StepTypes.Item, .Argument = TempItemID.ToString()})

File diff suppressed because it is too large Load Diff

View File

@ -10,13 +10,21 @@
Public OwnTruantRound As Integer = 0 'Truant move counter
Public OwnImprison As Integer = 0 'Imprison move counter
Public OwnTaunt As Integer = 0 'Taunt move counter
Public OwnTelekinesis As Integer = 0 'Telekinesis move counter
Public OwnRageCounter As Integer = 0 'Rage move counter
Public OwnUproar As Integer = 0 'Uproar move counter
Public OwnFocusEnergy As Integer = 0 'Focus energy move counter
Public OwnFlashFire As Integer = 0 'Flash Fire move counter
Public OwnEndure As Integer = 0 'Endure move counter
Public OwnProtectCounter As Integer = 0 'Protect move counter
Public OwnKingsShieldCounter As Integer = 0 'Kings Shield move counter
Public OwnSpikyShieldCounter As Integer = 0 'Spiky Shield move counter
Public OwnDetectCounter As Integer = 0 'Detect move counter
Public OwnBanefulBunkerCounter As Integer = 0 'Baneful Bunker move counter
Public OwnCraftyShieldCounter As Integer = 0 'Crafty Shield move counter
Public OwnMatBlockCounter As Integer = 0 'Mat Block move counter
Public OwnWideGuardCounter As Integer = 0 'Wide Guard move counter
Public OwnQuickGuardCounter As Integer = 0 'Quick Guard move counter
Public OwnIngrain As Integer = 0 'Ingrain move counter
Public OwnSubstitute As Integer = 0 'Substitute HP left
Public OwnLuckyChant As Integer = 0 'Lucky chant move counter
@ -34,6 +42,7 @@
Public OwnYawn As Integer = 0 'Yawn move counter
Public OwnPerishSongCount As Integer = 0 'Perishsong move counter
Public OwnConfusionTurns As Integer = 0 'Turns until confusion runs out
Public TempOwnConfusionTurns As Integer = 0 'For the functionality of Berserk Gene
Public OwnTorment As Integer = 0 'Torment move counter
Public OwnTormentMove As Attack = Nothing 'Torment move
Public OwnMetronomeItemCount As Integer = 0 'The counter for the item Metronome
@ -55,6 +64,7 @@
Public OwnLockOn As Integer = 0 'Counter for the moves lock-on and mind reader
Public OwnBideCounter As Integer = 0 'Counter for the Bide move
Public OwnBideDamage As Integer = 0 'Half of the damage dealt by bide
Public OwnRageFistPower As Integer = 0 'how much the Power of the attack Rage Fist increases
Public OwnLansatBerry As Integer = 0 'Raise critical hit ration when Lansat got eaten
Public OwnCustapBerry As Integer = 0 'Raises the attack speed once when Custap got eaten
Public OwnTrappedCounter As Integer = 0 'If the pokemon is trapped (for example by Spider Web), this is =1
@ -92,14 +102,19 @@
Public OwnUsedMoves As New List(Of Integer)
Public OwnMagicCoat As Integer = 0
Public OwnConsumedItem As Item = Nothing
Public OwnCudChewBerry As Item = Nothing 'Cud Chew Ability
Public OwnCudChewIndex As Integer = -1
Public OwnSmacked As Integer = 0 'Smack Down effect condition
Public OwnPursuit As Boolean = False
Public OwnMegaEvolved As Boolean = False
Public OwnRoostUsed As Boolean = False 'If roost got used, this is true and will get set false and revert types at the end of a turn.
Public OwnDestinyBond As Boolean = False 'If own Pokémon used destiny bond, this is true. If the opponent knocks the own Pokémon out, it will faint as well.
Public OwnHealingWish As Boolean = False 'True, if healing wish got used. Heals the next switched in Pokémon.
Public OwnGastroAcid As Boolean = False 'If own Pokémon is affected by Gastro Acid
Public OwnTarShot As Boolean = False 'If own Pokémon is affected by Tar Shot
Public OwnLastMove As Attack = Nothing 'Last move used
Public OwnLastMoveFailed As Boolean = False 'keeping track of this for Stomping Tantrum
Public OwnSpikes As Integer = 0 'Trap move counter
Public OwnStealthRock As Integer = 0 'Trap move counter
Public OwnStickyWeb As Integer = 0 'Trap move counter
@ -117,6 +132,9 @@
Public OwnFutureSightTurns As Integer = 0 'Turns until Futuresight hits
Public OwnFutureSightID As Integer = 0 'Move ID for the Futuresight move
Public OwnUsedRandomMove As Boolean = False 'Metronome for example
Public OwnUsedMirrorMove As Boolean = False
'Opp stuff
Public OppSpikes As Integer = 0
Public OppStealthRock As Integer = 0
@ -126,6 +144,7 @@
Public OppGuardSpec As Integer = 0
Public OppTurnCounts As Integer = 0
Public OppLastMove As Attack = Nothing
Public OppLastMoveFailed As Boolean = False
Public OppLightScreen As Integer = 0
Public OppReflect As Integer = 0
Public OppTailWind As Integer = 0
@ -134,13 +153,21 @@
Public OppImprison As Integer = 0
Public OppHealBlock As Integer = 0
Public OppTaunt As Integer = 0
Public OppTelekinesis As Integer = 0
Public OppRageCounter As Integer = 0
Public OppUproar As Integer = 0
Public OppFocusEnergy As Integer = 0
Public OppFlashFire As Integer = 0
Public OppEndure As Integer = 0
Public OppProtectCounter As Integer = 0
Public OppKingsShieldCounter As Integer = 0
Public OppSpikyShieldCounter As Integer = 0
Public OppDetectCounter As Integer = 0
Public OppBanefulBunkerCounter As Integer = 0
Public OppCraftyShieldCounter As Integer = 0
Public OppMatBlockCounter As Integer = 0
Public OppWideGuardCounter As Integer = 0
Public OppQuickGuardCounter As Integer = 0
Public OppIngrain As Integer = 0
Public OppSubstitute As Integer = 0
Public OppSafeguard As Integer = 0
@ -163,6 +190,7 @@
Public OppFutureSightID As Integer = 0
Public OppPerishSongCount As Integer = 0
Public OppConfusionTurns As Integer = 0
Public TempOppConfusionTurns As Integer = 0
Public OppTorment As Integer = 0
Public OppTormentMove As Attack = Nothing
Public OppMetronomeItemCount As Integer = 0
@ -183,6 +211,7 @@
Public OppSolarBlade As Integer = 0
Public OppLockOn As Integer = 0
Public OppBideCounter As Integer = 0
Public OppRageFistPower As Integer = 0
Public OppBideDamage As Integer = 0
Public OppLansatBerry As Integer = 0
Public OppCustapBerry As Integer = 0
@ -204,12 +233,16 @@
Public OppPokemonDamagedLastTurn As Boolean = False
Public OppMagicCoat As Integer = 0
Public OppConsumedItem As Item = Nothing
Public OppCudChewBerry As Item = Nothing
Public OppCudChewIndex As Integer = -1
Public OppSmacked As Integer = 0
Public OppPursuit As Boolean = False
Public OppMegaEvolved As Boolean = False
Public OppRoostUsed As Boolean = False
Public OppDestinyBond As Boolean = False
Public OppHealingWish As Boolean = False
Public OppGastroAcid As Boolean = False
Public OppTarShot As Boolean = False 'If opponent Pokémon is affected by Tar Shot
Public OppFlyCounter As Integer = 0
Public OppDigCounter As Integer = 0
@ -229,8 +262,14 @@
Public OppSandTomb As Integer = 0
Public OppInfestation As Integer = 0
Public OppUsedRandomMove As Boolean = False
Public OppUsedMirrorMove As Boolean = False
Public OppUsedMoves As New List(Of Integer)
'Global Temporary Variables
Public TempTripleKick As Integer = 0 'If Triple Kick is used, this will be increased every time it's hit
'Weather
Private _weather As BattleWeather.WeatherTypes = BattleWeather.WeatherTypes.Clear
Public WeatherRounds As Integer = 0
@ -253,21 +292,32 @@
Public Rounds As Integer = 0
Public AmuletCoin As Integer = 0
Public ElectricTerrain As Integer = 0
Public GrassyTerrain As Integer = 0
Public MistyTerrain As Integer = 0
Public PsychicTerrain As Integer = 0
'Special stuff
Public RunTries As Integer = 0
Public UsedPokemon As New List(Of Integer)
Public StolenItemIDs As New List(Of Integer)
Public StolenItemIDs As New List(Of String)
Public DefeatedTrainerPokemon As Boolean = False
Public RoamingFled As Boolean = False
'Moves that swap out Pokémon
Public OwnSwapIndex As Integer = -1
Public OppSwapIndex As Integer = -1
'BatonPassTemp:
Public OwnUsedBatonPass As Boolean = False
Public OwnBatonPassStats As List(Of Integer)
Public OwnBatonPassConfusion As Boolean = False
Public OwnBatonPassIndex As Integer = -1
Public OppUsedBatonPass As Boolean = False
Public OppBatonPassStats As List(Of Integer)
Public OppBatonPassConfusion As Boolean = False
Public OppBatonPassIndex As Integer = -1
Public Function CanUseItem(ByVal own As Boolean) As Boolean
Dim embargo As Integer = OwnEmbargo
@ -325,6 +375,63 @@
Return True
End Function
Public Function IsGrounded(ByVal own As Boolean, ByVal BattleScreen As BattleScreen) As Boolean
Dim p As Pokemon = BattleScreen.OwnPokemon
Dim grounded As Boolean = True
If own = True Then
If p.Type1.Type = Element.Types.Flying Or p.Type2.Type = Element.Types.Flying Or p.Ability.Name.ToLower() = "levitate" And BattleScreen.FieldEffects.CanUseAbility(True, BattleScreen) = True Then
grounded = False
End If
If BattleScreen.FieldEffects.Gravity > 0 Or BattleScreen.FieldEffects.OwnSmacked > 0 Or BattleScreen.FieldEffects.OwnIngrain > 0 Then
grounded = True
Else
If BattleScreen.FieldEffects.OwnTelekinesis > 0 Or BattleScreen.FieldEffects.OwnMagnetRise > 0 Then
grounded = False
End If
If Not p.Item Is Nothing Then
If p.Item.OriginalName.ToLower() = "air balloon" And BattleScreen.FieldEffects.CanUseItem(True) = True And BattleScreen.FieldEffects.CanUseOwnItem(True, BattleScreen) = True Then
grounded = False
End If
If p.Item.OriginalName.ToLower() = "iron ball" And BattleScreen.FieldEffects.CanUseItem(True) = True And BattleScreen.FieldEffects.CanUseOwnItem(True, BattleScreen) = True Then
grounded = True
End If
End If
End If
If OwnBounceCounter > 0 Or OwnDigCounter > 0 Or OwnDiveCounter > 0 Or OwnFlyCounter > 0 Or OwnPhantomForceCounter > 0 Or OwnShadowForceCounter > 0 Or OwnSkyDropCounter > 0 Then
grounded = False
End If
Else
p = BattleScreen.OppPokemon
If p.Type1.Type = Element.Types.Flying Or (p.Type2 IsNot Nothing AndAlso p.Type2.Type = Element.Types.Flying) Or p.Ability.Name.ToLower() = "levitate" And BattleScreen.FieldEffects.CanUseAbility(False, BattleScreen) = True Then
grounded = False
End If
If BattleScreen.FieldEffects.Gravity > 0 Or BattleScreen.FieldEffects.OppSmacked > 0 Or BattleScreen.FieldEffects.OppIngrain > 0 Then
grounded = True
Else
If BattleScreen.FieldEffects.OppTelekinesis > 0 Or BattleScreen.FieldEffects.OppMagnetRise > 0 Then
grounded = False
End If
If Not p.Item Is Nothing Then
If p.Item.OriginalName.ToLower() = "air balloon" And BattleScreen.FieldEffects.CanUseItem(False) = True And BattleScreen.FieldEffects.CanUseOwnItem(False, BattleScreen) = True Then
grounded = False
End If
If p.Item.OriginalName.ToLower() = "iron ball" And BattleScreen.FieldEffects.CanUseItem(False) = True And BattleScreen.FieldEffects.CanUseOwnItem(False, BattleScreen) = True Then
grounded = True
End If
End If
End If
If OppBounceCounter > 0 Or OppDigCounter > 0 Or OppDiveCounter > 0 Or OppFlyCounter > 0 Or OppPhantomForceCounter > 0 Or OppShadowForceCounter > 0 Or OppSkyDropCounter > 0 Then
grounded = False
End If
End If
If grounded = True Then
Return True
Else
Return False
End If
End Function
Public Function GetPokemonWeight(ByVal own As Boolean, ByVal BattleScreen As BattleScreen) As Single
Dim p As Pokemon = BattleScreen.OwnPokemon
Dim op As Pokemon = BattleScreen.OppPokemon

View File

@ -117,6 +117,10 @@
''' </summary>
Public Taunted As Integer = 0
''' <summary>
''' Telekinesis move counter, if true, Pokémon will always be hit.
''' </summary>
Public Telekinesis As Integer = 0
''' <summary>
''' If the Pokémon is affected by Embargo.
''' </summary>
Public Embargo As Integer = 0
@ -353,6 +357,30 @@
''' King's Shield move counter.
''' </summary>
Public KingsShield As Integer = 0
''' <summary>
''' Spiky Shield move counter.
''' </summary>
Public SpikyShield As Integer = 0
''' <summary>
''' Baneful Bunker move counter.
''' </summary>
Public BanefulBunker As Integer = 0
''' <summary>
''' Crafty Shield move counter.
''' </summary>
Public CraftyShield As Integer = 0
''' <summary>
''' Mat Block move counter.
''' </summary>
Public MatBlock As Integer = 0
''' <summary>
''' Wide Guard move counter.
''' </summary>
Public WideGuard As Integer = 0
''' <summary>
''' Quick Guard move counter.
''' </summary>
Public QuickGuard As Integer = 0
''' <summary>
''' Ingrain move counter.
@ -375,6 +403,10 @@
''' </summary>
Public Cursed As Integer = 0
''' <summary>
''' If the Pokémon is affected by Grounding.
''' </summary>
Public Smacked As Integer = 0
''' <summary>
''' Turns until Perish Song faints Pokémon.
''' </summary>
Public PerishSong As Integer = 0
@ -436,12 +468,19 @@
Me.SleepTurns = 0
Me.TruantRound = 0
Me.Taunted = 0
Me.Telekinesis = 0
Me.Rage = 0
Me.Uproar = 0
Me.Endure = 0
Me.Protect = 0
Me.Detect = 0
Me.KingsShield = 0
Me.SpikyShield = 0
Me.BanefulBunker = 0
Me.CraftyShield = 0
Me.MatBlock = 0
Me.WideGuard = 0
Me.QuickGuard = 0
Me.ProtectMoveCounter = 0
Me.ToxicRound = 0
Me.Nightmare = 0
@ -495,6 +534,7 @@
Me.Bide = 0
Me.BideDamage = 0
Me.Roost = 0
Me.Smacked = 0
'If Baton Pass is not used to switch, also reset these variables:
If BatonPassed = False Then

View File

@ -0,0 +1,370 @@
Imports System.Xml
Namespace BattleSystem
Public Class AnimationQueryObject
Inherits QueryObject
Dim AnimationStarted As Boolean = False
Dim AnimationEnded As Boolean = False
Dim BattleFlipped As Boolean = Nothing
Dim AnimationSequence As List(Of BattleAnimation3D)
Dim SpawnedEntities As List(Of Entity)
Dim CurrentEntity As Entity
Public DrawBeforeEntities As Boolean
Dim Backgrounds As List(Of Entity)
Dim RenderObjects As List(Of Entity)
Public Overrides ReadOnly Property IsReady As Boolean
Get
Return AnimationEnded
End Get
End Property
Public Sub New(ByVal Entity As Entity, ByVal BattleFlipped As Boolean, Optional DrawBeforeEntities As Boolean = False)
MyBase.New(QueryTypes.MoveAnimation)
Me.AnimationSequence = New List(Of BattleAnimation3D)
Me.SpawnedEntities = New List(Of Entity)
Me.DrawBeforeEntities = DrawBeforeEntities
Me.BattleFlipped = BattleFlipped
Me.Backgrounds = New List(Of Entity)
Me.RenderObjects = New List(Of Entity)
If Entity IsNot Nothing Then
Me.CurrentEntity = Entity
End If
AnimationSequenceBegin()
End Sub
Public Overrides Sub Draw(ByVal BV2Screen As BattleScreen)
For Each a As BattleAnimation3D In Me.AnimationSequence
If Backgrounds.Contains(a) = False AndAlso a.AnimationType = BattleAnimation3D.AnimationTypes.Background Then
Backgrounds.Add(a)
End If
Next
For Each entity As BattleAnimation3D In Me.SpawnedEntities
If RenderObjects.Contains(entity) = False Then
RenderObjects.Add(entity)
End If
Next
If RenderObjects.Count > 0 Then
RenderObjects = (From r In RenderObjects Order By r.CameraDistance Descending).ToList()
End If
For Each [Object] As Entity In Backgrounds
[Object].Render()
Next
For Each [Object] As Entity In RenderObjects
[Object].UpdateModel()
[Object].Render()
Next
RenderObjects.Clear()
Backgrounds.Clear()
End Sub
Public Overrides Sub Update(BV2Screen As BattleScreen)
If AnimationStarted = True Then
For i = 0 To AnimationSequence.Count - 1
If i <= AnimationSequence.Count - 1 Then
Dim a As BattleAnimation3D = AnimationSequence(i)
If a.CanRemove = True Then
i -= 1
AnimationSequence.Remove(a)
Else
a.Update()
End If
End If
Next
If AnimationSequence.Count <= 0 Then
AnimationSequenceEnd()
End If
For Each Animation As BattleAnimation3D In AnimationSequence
Animation.UpdateEntity()
Next
For Each Entity As Entity In SpawnedEntities
Entity.Update()
Entity.UpdateEntity()
Next
For i = 0 To Me.SpawnedEntities.Count - 1
If i <= SpawnedEntities.Count - 1 Then
Dim entity As Entity = SpawnedEntities(i)
If entity.CanBeRemoved = True Then
i -= 1
RemoveEntity(entity)
End If
End If
Next
End If
End Sub
Public Sub AnimationSequenceBegin()
AnimationStarted = True
End Sub
Public Sub AnimationSequenceEnd()
SpawnedEntities.Clear()
Backgrounds.Clear()
RenderObjects.Clear()
AnimationEnded = True
End Sub
Public Function SpawnEntity(ByVal Position As Vector3, ByVal Texture As Texture2D, ByVal Scale As Vector3, ByVal Opacity As Single, Optional ByVal startDelay As Single = 0.0F, Optional ByVal endDelay As Single = 0.0F, Optional ModelPath As String = "") As Entity
Dim NewPosition As Vector3
If Not Position = Nothing Then
If CurrentEntity IsNot Nothing Then
If BattleFlipped = True Then
Position.X *= -1
End If
NewPosition = CurrentEntity.Position + Position
If CurrentEntity.Model IsNot Nothing Then
NewPosition.Y += 0.5F
End If
Else
NewPosition = Position
End If
Else
If CurrentEntity IsNot Nothing Then
NewPosition = CurrentEntity.Position
If CurrentEntity.Model IsNot Nothing Then
NewPosition.Y += 0.5F
End If
Else
NewPosition = New Vector3(0, 0, 0)
End If
End If
Dim SpawnedEntity = New BattleAnimation3D(NewPosition, Texture, Scale, startDelay, endDelay, False)
SpawnedEntity.Opacity = Opacity
SpawnedEntity.Visible = False
If ModelPath <> "" Then
SpawnedEntity.ModelPath = ModelPath
SpawnedEntity.Model = ModelManager.GetModel(SpawnedEntity.ModelPath)
SpawnedEntity.Scale *= ModelManager.MODELSCALE
If BattleFlipped = True Then
Dim FlipRotation As Integer = Entity.GetRotationFromVector(SpawnedEntity.Rotation)
FlipRotation += 2
If FlipRotation > 3 Then
FlipRotation -= 4
End If
SpawnedEntity.Rotation.Y = Entity.GetRotationFromInteger(FlipRotation).Y
End If
End If
SpawnedEntities.Add(SpawnedEntity)
Return SpawnedEntity
End Function
Public Sub RemoveEntity(Entity As Entity)
SpawnedEntities.Remove(Entity)
End Sub
Public Sub AnimationChangeTexture(ByVal Entity As Entity, RemoveEntityAfter As Boolean, ByVal Texture As Texture2D, ByVal startDelay As Single, ByVal endDelay As Single)
Dim TextureChangeEntity As Entity
If Entity Is Nothing Then
TextureChangeEntity = CurrentEntity
Else
TextureChangeEntity = Entity
End If
Dim baEntityTextureChange As BAEntityTextureChange = New BAEntityTextureChange(TextureChangeEntity, RemoveEntityAfter, Texture, startDelay, endDelay)
AnimationSequence.Add(baEntityTextureChange)
End Sub
Public Sub AnimationMove(ByVal Entity As Entity, ByVal RemoveEntityAfter As Boolean, ByVal DestinationX As Single, ByVal DestinationY As Single, ByVal DestinationZ As Single, ByVal Speed As Single, ByVal SpinX As Boolean, ByVal SpinZ As Boolean, ByVal startDelay As Single, ByVal endDelay As Single, Optional ByVal SpinXSpeed As Single = 0.1F, Optional ByVal SpinZSpeed As Single = 0.1F, Optional MoveYSpeed As Single = 0.0F, Optional MovementCurve As Integer = 3)
Dim MoveEntity As Entity
Dim Destination As Vector3
If Entity Is Nothing Then
MoveEntity = CurrentEntity
Else
MoveEntity = Entity
End If
If Not BattleFlipped = Nothing Then
If BattleFlipped = True Then
DestinationX *= -1.0F
If SpinZ = True Then
SpinXSpeed *= -1.0F
SpinZSpeed *= -1.0F
End If
End If
End If
If CurrentEntity Is Nothing Then
Destination = MoveEntity.Position + New Vector3(DestinationX, DestinationY, DestinationZ)
Else
Destination = CurrentEntity.Position + New Vector3(DestinationX, DestinationY, DestinationZ)
End If
Dim baEntityMove As BAEntityMove = New BAEntityMove(MoveEntity, RemoveEntityAfter, Destination, Speed, SpinX, SpinZ, startDelay, endDelay, SpinXSpeed, SpinZSpeed, MovementCurve, MoveYSpeed)
AnimationSequence.Add(baEntityMove)
End Sub
Public Sub AnimationOscillateMove(ByVal Entity As Entity, ByVal RemoveEntityAfter As Boolean, ByVal Distance As Vector3, ByVal Speed As Single, ByVal BothWays As Boolean, ByVal Duration As Single, ByVal startDelay As Single, ByVal endDelay As Single, Optional MovementCurve As Integer = 0, Optional ReturnToStart As Vector3 = Nothing)
Dim MoveEntity As Entity
Dim ReturnPosition As New Vector3(0)
If Entity Is Nothing Then
MoveEntity = CurrentEntity
Else
MoveEntity = Entity
End If
If Not BattleFlipped = Nothing Then
If BattleFlipped = True Then
Distance.Z *= -1.0F
End If
End If
Dim DurationWhole = CSng(Math.Truncate(CDbl(Duration / 6.0F)))
Dim DurationFraction = CSng((Duration / 6.0F - DurationWhole) * 1000)
Dim DurationTime As TimeSpan = New TimeSpan(0, 0, 0, CInt(DurationWhole), CInt(DurationFraction))
Dim baEntityOscillateMove As BAEntityOscillateMove = New BAEntityOscillateMove(MoveEntity, RemoveEntityAfter, Distance, Speed, BothWays, DurationTime, startDelay, endDelay, MovementCurve, ReturnToStart)
AnimationSequence.Add(baEntityOscillateMove)
End Sub
Public Sub AnimationSetPosition(ByVal Entity As Entity, ByVal RemoveEntityAfter As Boolean, ByVal PositionX As Single, ByVal PositionY As Single, ByVal PositionZ As Single, ByVal startDelay As Single, ByVal endDelay As Single)
Dim SetEntity As Entity
Dim SetPosition As Vector3
If Entity Is Nothing Then
SetEntity = CurrentEntity
Else
SetEntity = Entity
End If
SetPosition = New Vector3(PositionX, PositionY, PositionZ) + BattleScreen.BattleMapOffset
Dim baEntitySetPosition As BAEntitySetPosition = New BAEntitySetPosition(SetEntity, RemoveEntityAfter, SetPosition, startDelay, endDelay)
AnimationSequence.Add(baEntitySetPosition)
End Sub
Public Sub AnimationColor(ByVal Entity As Entity, ByVal RemoveEntityAfter As Boolean, ByVal TransitionSpeedIn As Single, ByVal ReturnToFromWhenDone As Boolean, ByVal startDelay As Single, ByVal endDelay As Single, ByVal VectorColorTo As Vector3, Optional ByVal VectorColorFrom As Vector3 = Nothing, Optional TransitionSpeedOut As Single = -1)
Dim ColorEntity As Entity
If Entity Is Nothing Then
ColorEntity = CurrentEntity
Else
ColorEntity = Entity
End If
Dim baEntityColor As BAEntityColor = New BAEntityColor(ColorEntity, RemoveEntityAfter, TransitionSpeedIn, ReturnToFromWhenDone, startDelay, endDelay, VectorColorTo, VectorColorFrom, TransitionSpeedOut)
AnimationSequence.Add(baEntityColor)
End Sub
Public Sub AnimationColor(ByVal Entity As Entity, ByVal RemoveEntityAfter As Boolean, ByVal TransitionSpeedIn As Single, ByVal ReturnToFromWhenDone As Boolean, ByVal startDelay As Single, ByVal endDelay As Single, ByVal ColorTo As Color, Optional ByVal ColorFrom As Color = Nothing, Optional TransitionSpeedOut As Single = -1)
Dim ColorEntity As Entity
If Entity Is Nothing Then
ColorEntity = CurrentEntity
Else
ColorEntity = Entity
End If
Dim VectorColorTo As Vector3 = ColorTo.ToVector3
Dim VectorColorFrom As Vector3 = Nothing
If ColorFrom <> Nothing Then
VectorColorFrom = ColorFrom.ToVector3
End If
Dim baEntityColor As BAEntityColor = New BAEntityColor(ColorEntity, RemoveEntityAfter, TransitionSpeedIn, ReturnToFromWhenDone, startDelay, endDelay, VectorColorTo, VectorColorFrom, TransitionSpeedOut)
AnimationSequence.Add(baEntityColor)
End Sub
Public Sub AnimationFade(ByVal Entity As Entity, ByVal RemoveEntityAfter As Boolean, ByVal TransitionSpeed As Single, ByVal FadeIn As Boolean, ByVal EndState As Single, ByVal startDelay As Single, ByVal endDelay As Single, Optional ByVal startState As Single = -1.0F)
Dim FadeEntity As Entity
If Entity Is Nothing Then
FadeEntity = CurrentEntity
Else
FadeEntity = Entity
End If
If startState = -1 Then startState = FadeEntity.NormalOpacity
Dim baEntityOpacity As BAEntityOpacity = New BAEntityOpacity(FadeEntity, RemoveEntityAfter, TransitionSpeed, FadeIn, EndState, startDelay, endDelay, startState)
AnimationSequence.Add(baEntityOpacity)
End Sub
Public Sub AnimationRotate(Entity As Entity, ByVal RemoveEntityAfter As Boolean, ByVal RotationSpeedX As Single, ByVal RotationSpeedY As Single, ByVal RotationSpeedZ As Single, ByVal EndRotationX As Single, ByVal EndRotationY As Single, ByVal EndRotationZ As Single, ByVal startDelay As Single, ByVal endDelay As Single, ByVal DoXRotation As Boolean, ByVal DoYRotation As Boolean, ByVal DoZRotation As Boolean, ByVal DoReturn As Boolean)
Dim RotateEntity As Entity
If Entity Is Nothing Then
RotateEntity = CurrentEntity
Else
RotateEntity = Entity
End If
Dim RotationSpeedVector As Vector3 = New Vector3(RotationSpeedX, RotationSpeedY, RotationSpeedZ)
Dim EndRotation As Vector3 = New Vector3(EndRotationX, EndRotationY, EndRotationZ)
Dim baEntityRotate As BAEntityRotate = New BAEntityRotate(RotateEntity, RemoveEntityAfter, RotationSpeedVector, EndRotation, startDelay, endDelay, DoXRotation, DoYRotation, DoZRotation, DoReturn)
AnimationSequence.Add(baEntityRotate)
End Sub
Public Sub AnimationTurnNPC(ByVal TurnSteps As Integer, ByVal startDelay As Single, ByVal endDelay As Single, Optional ByVal EndFaceRotation As Integer = -1, Optional ByVal TurnSpeed As Integer = 1, Optional ByVal TurnDelay As Single = 0.25F)
Dim TurnNPC As NPC = Nothing
If CurrentEntity IsNot Nothing Then
TurnNPC = CType(CurrentEntity, NPC)
End If
If Not BattleFlipped = Nothing AndAlso BattleFlipped = True Then
EndFaceRotation += 2
TurnSpeed *= -1
End If
Dim BAEntityFaceRotate As BAEntityFaceRotate = New BAEntityFaceRotate(TurnNPC, TurnSteps, startDelay, endDelay, EndFaceRotation, TurnSpeed, TurnDelay)
AnimationSequence.Add(BAEntityFaceRotate)
End Sub
Public Sub AnimationScale(ByVal Entity As Entity, ByVal RemoveEntityAfter As Boolean, ByVal Grow As Boolean, ByVal EndSizeX As Single, ByVal EndSizeY As Single, ByVal EndSizeZ As Single, ByVal SizeSpeed As Single, ByVal startDelay As Single, ByVal endDelay As Single, Optional ByVal Anchors As String = "", Optional SpeedMultiplier As Vector3 = Nothing)
Dim ScaleEntity As Entity
If Entity Is Nothing Then
ScaleEntity = CurrentEntity
If ScaleEntity.Model IsNot Nothing Then
EndSizeX *= ModelManager.MODELSCALE
EndSizeY *= ModelManager.MODELSCALE
EndSizeZ *= ModelManager.MODELSCALE
SizeSpeed *= ModelManager.MODELSCALE
End If
Else
ScaleEntity = Entity
End If
Dim Scale As Vector3 = ScaleEntity.Scale
Dim EndSize As Vector3 = New Vector3(EndSizeX, EndSizeY, EndSizeZ)
Dim baEntityScale As BAEntityScale = New BAEntityScale(ScaleEntity, RemoveEntityAfter, Scale, Grow, EndSize, SizeSpeed, startDelay, endDelay, Anchors, SpeedMultiplier)
AnimationSequence.Add(baEntityScale)
End Sub
Public Sub AnimationPlaySound(ByVal sound As String, ByVal startDelay As Single, ByVal endDelay As Single, Optional ByVal stopMusic As Boolean = False, Optional ByVal IsPokemon As Boolean = False, Optional ByVal CrySuffix As String = "")
Dim baSound As BAPlaySound = New BAPlaySound(sound, startDelay, endDelay, stopMusic, IsPokemon, CrySuffix)
AnimationSequence.Add(baSound)
End Sub
Public Sub AnimationBackground(ByVal Texture As Texture2D, ByVal startDelay As Single, ByVal endDelay As Single, ByVal Duration As Single, Optional ByVal AfterFadeInOpacity As Single = 1.0F, Optional ByVal FadeInSpeed As Single = 0.125F, Optional ByVal FadeOutSpeed As Single = 0.125F, Optional ByVal DoTile As Boolean = False, Optional ByVal AnimationLength As Integer = 1, Optional ByVal AnimationSpeed As Integer = 4, Optional ByVal Scale As Integer = 4)
Dim baBackground As BABackground = New BABackground(Texture, startDelay, endDelay, Duration, AfterFadeInOpacity, FadeInSpeed, FadeOutSpeed, DoTile, AnimationLength, AnimationSpeed, Scale)
AnimationSequence.Add(baBackground)
End Sub
Public Sub AnimationCameraChangeAngle(ByRef Battlescreen As BattleScreen, ByVal CameraAngleID As Integer, ByVal startDelay As Single, ByVal endDelay As Single)
Dim baCameraChangeAngle As BACameraChangeAngle = New BACameraChangeAngle(Battlescreen, CameraAngleID, startDelay, endDelay)
AnimationSequence.Add(baCameraChangeAngle)
End Sub
Public Sub AnimationCameraOscillateMove(ByVal Distance As Vector3, ByVal Speed As Single, ByVal BothWays As Boolean, ByVal Duration As Single, ByVal startDelay As Single, ByVal endDelay As Single, Optional MovementCurve As Integer = 0, Optional ReturnToStart As Vector3 = Nothing)
Dim ReturnPosition As New Vector3(0)
If Not BattleFlipped = Nothing Then
If BattleFlipped = True Then
Distance.Z *= -1.0F
End If
End If
Dim DurationWhole = CSng(Math.Truncate(CDbl(Duration / 6.0F)))
Dim DurationFraction = CSng((Duration / 6.0F - DurationWhole) * 1000)
Dim DurationTime As TimeSpan = New TimeSpan(0, 0, 0, CInt(DurationWhole), CInt(DurationFraction))
Dim baCameraOscillateMove As BACameraOscillateMove = New BACameraOscillateMove(Distance, Speed, BothWays, DurationTime, startDelay, endDelay, MovementCurve, ReturnToStart)
AnimationSequence.Add(baCameraOscillateMove)
End Sub
End Class
End Namespace

View File

@ -1,3 +0,0 @@
Public Class MoveAnimationQueryObject
End Class

View File

@ -6,17 +6,19 @@
Dim _sound As String = ""
Dim _isPokemonSound As Boolean = False
Dim _crySuffix As String = ""
Dim _delay As Single = 0.0F
Public Sub New(ByVal sound As String, ByVal isPokemonSound As Boolean)
Me.New(sound, isPokemonSound, 0.0F)
Public Sub New(ByVal sound As String, ByVal isPokemonSound As Boolean, Optional ByVal CrySuffix As String = "")
Me.New(sound, isPokemonSound, 0.0F, CrySuffix)
End Sub
Public Sub New(ByVal sound As String, ByVal isPokemonSound As Boolean, ByVal delay As Single)
Public Sub New(ByVal sound As String, ByVal isPokemonSound As Boolean, ByVal delay As Single, Optional ByVal CrySuffix As String = "")
MyBase.New(QueryTypes.PlaySound)
Me._sound = sound
Me._isPokemonSound = isPokemonSound
Me._crySuffix = CrySuffix
Me._delay = delay
Me.PassThis = True
End Sub
@ -34,7 +36,7 @@
Private Sub InternalPlaySound()
If _isPokemonSound = True Then
SoundManager.PlayPokemonCry(CInt(_sound))
SoundManager.PlayPokemonCry(CInt(_sound), _crySuffix)
Else
SoundManager.PlaySound(Me._sound, False)
End If

View File

@ -10,7 +10,6 @@
Dim _text As String = ""
Dim _textColor As Color = Color.White
Dim _TextReady As Boolean = False
Dim _textIndex As Integer = 0
Dim _textDelay As Single = 0.015F
@ -31,6 +30,7 @@
Me._text = Me._text.Replace("~", " ")
Me._text = Me._text.Replace("<player.name>", Core.Player.Name)
Me._text = Me._text.Replace("<playername>", Core.Player.Name)
Me._text = Me._text.Replace("<rival.name>", Core.Player.RivalName)
Me._text = Me._text.Replace("<rivalname>", Core.Player.RivalName)
Me._text = Me._text.Replace("[POKE]", "Poké")
End Sub
@ -45,10 +45,6 @@
If Controls.Accept(True, True) = True And Me._textIndex > 2 Then
Me._textIndex = Me._text.Length
End If
Else
If Controls.Accept(True, True) = True Then
Me._TextReady = True
End If
End If
End Sub
@ -64,11 +60,11 @@
If GamePad.GetState(PlayerIndex.One).IsConnected = True And Core.GameOptions.GamePadEnabled = True And BV2Screen.IsCurrentScreen() = True Then
Dim d As New Dictionary(Of Buttons, String)
d.Add(Buttons.A, "OK")
d.Add(Buttons.A, Localization.GetString("global_ok", "OK"))
BV2Screen.DrawGamePadControls(d, New Vector2(rec.X + rec.Width - 100, rec.Y + rec.Height - 40))
Else
If TextReady = True Then
Core.SpriteBatch.DrawString(FontManager.InGameFont, "OK", New Vector2(rec.X + rec.Width - FontManager.InGameFont.MeasureString("OK").X - 20, rec.Y + rec.Height - FontManager.InGameFont.MeasureString("OK").Y - 5), Color.White)
Core.SpriteBatch.DrawString(FontManager.InGameFont, Localization.GetString("global_ok", "OK"), New Vector2(rec.X + rec.Width - FontManager.InGameFont.MeasureString(Localization.GetString("global_ok", "OK")).X - 20, rec.Y + rec.Height - FontManager.InGameFont.MeasureString(Localization.GetString("global_ok", "OK")).Y - 5), Color.White)
End If
End If
End Sub
@ -80,14 +76,6 @@
Dim _chooseIndex As Integer = 0
Private Sub UpdateChoose()
End Sub
Private Sub DrawChoose()
Dim rec As New Rectangle(Core.windowSize.Width - 250, Core.windowSize.Height - 450, 150, 150)
Canvas.DrawRectangle(rec, New Color(0, 0, 0, 150))
If Controls.Down(True, True, True, True, True) = True Then
_chooseIndex += 1
End If
@ -97,26 +85,103 @@
_chooseIndex = _chooseIndex.Clamp(0, 1)
If _chooseIndex = 0 Then
Canvas.DrawRectangle(New Rectangle(Core.windowSize.Width - 213, Core.windowSize.Height - 438, 80, 50), Color.White)
Core.SpriteBatch.DrawString(FontManager.InGameFont, "Yes", New Vector2(Core.windowSize.Width - 200, Core.windowSize.Height - 430), Color.Black)
Core.SpriteBatch.DrawString(FontManager.InGameFont, "No", New Vector2(Core.windowSize.Width - 200, Core.windowSize.Height - 370), Color.White)
Dim rec As New Rectangle(Core.windowSize.Width - 250, Core.windowSize.Height - 450, 150, 150)
If rec.Contains(MouseHandler.MousePosition) = False Then
If Controls.Accept(True, True, True) = True Then
If _chooseIndex = 0 Then
Dim selScreen = New PartyScreen(Core.CurrentScreen, Item.GetItemByID(5.ToString), AddressOf ChoosePokemon, Localization.GetString("battle_choose_pokemon"), False) With {.Mode = Screens.UI.ISelectionScreen.ScreenMode.Selection, .CanExit = True}
AddHandler selScreen.SelectedObject, AddressOf ChoosePokemonHandler
SoundManager.PlaySound("select")
Core.SetScreen(selScreen)
Else
SoundManager.PlaySound("select")
'TempScreen.BattleQuery.Clear()
'FinishOppSwitchAnimation(TempScreen)
'FinishOppSwitchEffects(TempScreen)
'Dim cq1 As ScreenFadeQueryObject = New ScreenFadeQueryObject(ScreenFadeQueryObject.FadeTypes.Vertical, Color.Black, True, 16)
'Dim cq2 As ScreenFadeQueryObject = New ScreenFadeQueryObject(ScreenFadeQueryObject.FadeTypes.Vertical, Color.Black, False, 16)
'cq2.PassThis = True
'TempScreen.BattleQuery.AddRange({cq1, cq2})
TempScreen.HasSwitchedOwn = False
'TempScreen.Battle.StartRound(TempScreen)
_ready = True
End If
End If
Else
Canvas.DrawRectangle(New Rectangle(Core.windowSize.Width - 213, Core.windowSize.Height - 378, 80, 50), Color.White)
Core.SpriteBatch.DrawString(FontManager.InGameFont, "Yes", New Vector2(Core.windowSize.Width - 200, Core.windowSize.Height - 430), Color.White)
Core.SpriteBatch.DrawString(FontManager.InGameFont, "No", New Vector2(Core.windowSize.Width - 200, Core.windowSize.Height - 370), Color.Black)
End If
If Controls.Accept(True, True, True) = True Then
If _chooseIndex = 0 Then
Dim selScreen = New PartyScreen(Core.CurrentScreen, Item.GetItemByID(5), AddressOf ChoosePokemon, "Choose Pokémon to battle!", False) With {.Mode = Screens.UI.ISelectionScreen.ScreenMode.Selection, .CanExit = True}
AddHandler selScreen.SelectedObject, AddressOf ChoosePokemonHandler
Core.SetScreen(selScreen)
Else
_ready = True
If Controls.Accept(False, True, True) = True Then
If _chooseIndex = 0 Then
Dim selScreen = New PartyScreen(Core.CurrentScreen, Item.GetItemByID(5.ToString), AddressOf ChoosePokemon, Localization.GetString("battle_choose_pokemon"), False) With {.Mode = Screens.UI.ISelectionScreen.ScreenMode.Selection, .CanExit = True}
AddHandler selScreen.SelectedObject, AddressOf ChoosePokemonHandler
SoundManager.PlaySound("select")
Core.SetScreen(selScreen)
Else
SoundManager.PlaySound("select")
'TempScreen.BattleQuery.Clear()
'FinishOppSwitchAnimation(TempScreen)
'FinishOppSwitchEffects(TempScreen)
'Dim cq1 As ScreenFadeQueryObject = New ScreenFadeQueryObject(ScreenFadeQueryObject.FadeTypes.Vertical, Color.Black, True, 16)
'Dim cq2 As ScreenFadeQueryObject = New ScreenFadeQueryObject(ScreenFadeQueryObject.FadeTypes.Vertical, Color.Black, False, 16)
'cq2.PassThis = True
'TempScreen.BattleQuery.AddRange({cq1, cq2})
TempScreen.HasSwitchedOwn = False
'TempScreen.Battle.StartRound(TempScreen)
_ready = True
End If
End If
If Controls.Accept(True, False, False) Then
If New Rectangle(Core.windowSize.Width - 213, Core.windowSize.Height - 438, 80, 50).Contains(MouseHandler.MousePosition) Then
_chooseIndex = 0
Dim selScreen = New PartyScreen(Core.CurrentScreen, Item.GetItemByID(5.ToString), AddressOf ChoosePokemon, Localization.GetString("battle_choose_pokemon"), False) With {.Mode = Screens.UI.ISelectionScreen.ScreenMode.Selection, .CanExit = True}
AddHandler selScreen.SelectedObject, AddressOf ChoosePokemonHandler
SoundManager.PlaySound("select")
Core.SetScreen(selScreen)
End If
If New Rectangle(Core.windowSize.Width - 213, Core.windowSize.Height - 378, 80, 50).Contains(MouseHandler.MousePosition) Then
_chooseIndex = 1
SoundManager.PlaySound("select")
'TempScreen.BattleQuery.Clear()
'FinishOppSwitchAnimation(TempScreen)
'FinishOppSwitchEffects(TempScreen)
'Dim cq1 As ScreenFadeQueryObject = New ScreenFadeQueryObject(ScreenFadeQueryObject.FadeTypes.Vertical, Color.Black, True, 16)
'Dim cq2 As ScreenFadeQueryObject = New ScreenFadeQueryObject(ScreenFadeQueryObject.FadeTypes.Vertical, Color.Black, False, 16)
'cq2.PassThis = True
'TempScreen.BattleQuery.AddRange({cq1, cq2})
TempScreen.HasSwitchedOwn = False
'TempScreen.Battle.StartRound(TempScreen)
_ready = True
End If
End If
End If
If Controls.Dismiss(True, True, True) = True Then
SoundManager.PlaySound("select")
'TempScreen.BattleQuery.Clear()
'FinishOppSwitchAnimation(TempScreen)
'FinishOppSwitchEffects(TempScreen)
'Dim cq1 As ScreenFadeQueryObject = New ScreenFadeQueryObject(ScreenFadeQueryObject.FadeTypes.Vertical, Color.Black, True, 16)
'Dim cq2 As ScreenFadeQueryObject = New ScreenFadeQueryObject(ScreenFadeQueryObject.FadeTypes.Vertical, Color.Black, False, 16)
'cq2.PassThis = True
'TempScreen.BattleQuery.AddRange({cq1, cq2})
TempScreen.HasSwitchedOwn = False
'TempScreen.Battle.StartRound(TempScreen)
_ready = True
End If
End Sub
Private Sub DrawChoose()
Dim rec As New Rectangle(Core.windowSize.Width - 250, Core.windowSize.Height - 450, 150, 150)
Canvas.DrawRectangle(rec, New Color(0, 0, 0, 150))
If _chooseIndex = 0 Then
Canvas.DrawRectangle(New Rectangle(Core.windowSize.Width - 213, Core.windowSize.Height - 438, 80, 50), Color.White)
Core.SpriteBatch.DrawString(FontManager.InGameFont, Localization.GetString("global_yes"), New Vector2(Core.windowSize.Width - 200, Core.windowSize.Height - 430), Color.Black)
Core.SpriteBatch.DrawString(FontManager.InGameFont, Localization.GetString("global_no"), New Vector2(Core.windowSize.Width - 200, Core.windowSize.Height - 370), Color.White)
Else
Canvas.DrawRectangle(New Rectangle(Core.windowSize.Width - 213, Core.windowSize.Height - 378, 80, 50), Color.White)
Core.SpriteBatch.DrawString(FontManager.InGameFont, Localization.GetString("global_yes"), New Vector2(Core.windowSize.Width - 200, Core.windowSize.Height - 430), Color.White)
Core.SpriteBatch.DrawString(FontManager.InGameFont, Localization.GetString("global_no"), New Vector2(Core.windowSize.Width - 200, Core.windowSize.Height - 370), Color.Black)
End If
End Sub
Dim TempScreen As BattleScreen
@ -126,24 +191,208 @@
End Sub
Private Sub ChoosePokemon(ByVal PokeIndex As Integer)
TempScreen.Battle.SwitchOutOwn(TempScreen, PokeIndex, insertIndex)
Me._ready = True
Dim Pokemon As Pokemon = Core.Player.Pokemons(PokeIndex)
If PokeIndex = TempScreen.OwnPokemonIndex Then
Screen.TextBox.Show(Pokemon.GetDisplayName() & " " & Localization.GetString("battle_switch_already_in_battle", "is already~in battle!"), {}, True, False)
Else
If Pokemon.IsEgg() = False Then
If Pokemon.Status <> P3D.Pokemon.StatusProblems.Fainted Then
If BattleCalculation.CanSwitch(TempScreen, True) = False Then
Screen.TextBox.Show(Localization.GetString("battle_cannot_switch", "Cannot switch out."), {}, True, False)
Else
Dim TempQuery = TempScreen.BattleQuery.ToArray
If TempScreen.OwnPokemonIndex <> PokeIndex Then
TempScreen.ParticipatedPokemon.Clear()
TempScreen.ParticipatedPokemon.Add(PokeIndex)
If TempScreen.IsRemoteBattle = True And TempScreen.IsHost = False Then
TempScreen.OppFaint = False
TempScreen.OwnStatistics.Switches += 1
TempScreen.BattleQuery.Clear()
FinishOppSwitchAnimation(TempScreen)
TempScreen.Battle.SwitchOutOwn(TempScreen, PokeIndex, -1)
FinishOppSwitchEffects(TempScreen)
Dim cq1 As ScreenFadeQueryObject = New ScreenFadeQueryObject(ScreenFadeQueryObject.FadeTypes.Vertical, Color.Black, True, 16)
Dim cq2 As ScreenFadeQueryObject = New ScreenFadeQueryObject(ScreenFadeQueryObject.FadeTypes.Vertical, Color.Black, False, 16)
cq2.PassThis = True
TempScreen.BattleQuery.AddRange({cq1, cq2})
TempScreen.HasSwitchedOwn = True
TempScreen.Battle.StartRound(TempScreen)
Else
TempScreen.BattleQuery.Clear()
FinishOppSwitchAnimation(TempScreen)
TempScreen.Battle.SwitchOutOwn(TempScreen, PokeIndex, -1)
FinishOppSwitchEffects(TempScreen)
Dim cq1 As ScreenFadeQueryObject = New ScreenFadeQueryObject(ScreenFadeQueryObject.FadeTypes.Vertical, Color.Black, True, 16)
Dim cq2 As ScreenFadeQueryObject = New ScreenFadeQueryObject(ScreenFadeQueryObject.FadeTypes.Vertical, Color.Black, False, 16)
cq2.PassThis = True
TempScreen.BattleQuery.AddRange({cq1, cq2})
TempScreen.HasSwitchedOwn = True
TempScreen.Battle.StartRound(TempScreen)
End If
Me._ready = True
End If
End If
Else
Screen.TextBox.Show(Pokemon.GetDisplayName() & " " & Localization.GetString("battle_switch_fainted", "is fainted!"), {}, True, False)
End If
Else
Screen.TextBox.Show(Localization.GetString("battle_switch_egg", "Cannot switch in~the egg!"), {}, True, False)
End If
End If
End Sub
#End Region
Dim insertIndex As Integer = 0
Public Sub New(ByVal BattleScreen As BattleScreen, ByVal NewPokemon As Pokemon)
MyBase.New(QueryTypes.SwitchPokemon)
Me.insertIndex = BattleScreen.BattleQuery.Count
Me.TempScreen = BattleScreen
TransformText(BattleScreen.Trainer.Name & " is about to send out a " & NewPokemon.GetDisplayName() & "! Do you want to switch your Pokémon?")
TransformText(BattleScreen.Trainer.Name & " " & Localization.GetString("battle_trainer_about_to_send_out_1") & " " & NewPokemon.GetDisplayName() & Localization.GetString("battle_trainer_about_to_send_out_2"))
End Sub
Dim delay As Single = 3.0F
Dim delay As Single = 2.0F
Public Sub FinishOppSwitchAnimation(BattleScreen As BattleScreen)
BattleScreen.OppPokemonNPC.Position.Y = 0 + BattleScreen.BattleMapOffset.Y
BattleScreen.Battle.ChangeCameraAngle(1, False, BattleScreen)
Dim oppModel As String = BattleScreen.GetModelName(False)
If oppModel = "" Then
BattleScreen.BattleQuery.Add(New ToggleEntityQueryObject(True, ToggleEntityQueryObject.BattleEntities.OppPokemon, PokemonForms.GetOverworldSpriteName(BattleScreen.OppPokemon, True), -1, -1, 0, 1))
Else
BattleScreen.BattleQuery.Add(New ToggleEntityQueryObject(False, oppModel, -1, -1, 1, 0))
End If
BattleScreen.BattleQuery.Add(New ToggleEntityQueryObject(True, ToggleEntityQueryObject.BattleEntities.OppPokemon, 1, -1, -1, -1, -1))
BattleScreen.BattleQuery.Add(New TextQueryObject(BattleScreen.Trainer.Name & ": ""Go, " & BattleScreen.OppPokemon.GetDisplayName() & "!"""))
Dim BallThrow As AnimationQueryObject = New AnimationQueryObject(BattleScreen.OppPokemonNPC, False)
If Core.Player.ShowBattleAnimations <> 0 AndAlso BattleScreen.IsPVPBattle = False Then
' Ball is thrown
BallThrow.AnimationMove(Nothing, False, 0, 0.5, 0, 0.5, False, False, 0, 0,,,, 3)
BallThrow.AnimationPlaySound("Battle\Pokeball\Throw", 0, 0)
Dim BallThrowEntity = BallThrow.SpawnEntity(New Vector3(2, -0.15, 0), BattleScreen.OppPokemon.CatchBall.Texture, New Vector3(0.3F), 1.0F)
BallThrow.AnimationMove(BallThrowEntity, True, 0, 0.35, 0, 0.1, False, True, 0F, 0.5F,, 0.3, 0.025F)
' Ball opens
BallThrow.AnimationPlaySound("Battle\Pokeball\Open", 3, 0)
Dim SmokeSpawned As Integer = 0
Do
Dim SmokePosition = New Vector3(0, 0.35, 0)
Dim SmokeDestination = New Vector3(CSng(Random.Next(-10, 10) / 10), CSng(Random.Next(-10, 10) / 10), CSng(Random.Next(-10, 10) / 10))
Dim SmokeTexture As Texture2D = TextureManager.GetTexture("Textures\Battle\Smoke")
Dim SmokeScale = New Vector3(CSng(Random.Next(2, 6) / 10))
Dim SmokeSpeed = CSng(Random.Next(1, 3) / 20.0F)
Dim SmokeEntity = BallThrow.SpawnEntity(SmokePosition, SmokeTexture, SmokeScale, 1, 3)
BallThrow.AnimationMove(SmokeEntity, True, SmokeDestination.X, SmokeDestination.Y, SmokeDestination.Z, SmokeSpeed, False, False, 3.0F, 0.0F)
Threading.Interlocked.Increment(SmokeSpawned)
Loop While SmokeSpawned <= 38
End If
If Core.Player.ShowBattleAnimations <> 0 AndAlso BattleScreen.IsPVPBattle = False Then
' Pokemon appears
BallThrow.AnimationFade(Nothing, False, 1, True, 1, 3, 0)
BallThrow.AnimationPlaySound(CStr(BattleScreen.OppPokemon.Number), 4, 0,, True)
' Pokémon falls down
BallThrow.AnimationMove(Nothing, False, 0, -0.5F, 0, 0.05F, False, False, 5, 0)
Else
' Pokemon appears
BallThrow.AnimationFade(Nothing, False, 1, True, 1, 0, 0)
BallThrow.AnimationPlaySound(CStr(BattleScreen.OppPokemon.Number), 0, 0,, True)
End If
BattleScreen.BattleQuery.Add(BallThrow)
End Sub
Public Sub FinishOppSwitchEffects(BattleScreen As BattleScreen)
With BattleScreen
Dim p As Pokemon = .OppPokemon
Dim op As Pokemon = .OwnPokemon
Dim spikeAffected As Boolean = True
Dim rockAffected As Boolean = True
spikeAffected = BattleScreen.FieldEffects.IsGrounded(False, BattleScreen)
If spikeAffected = True Then
If .FieldEffects.OwnSpikes > 0 And p.Ability.Name.ToLower() <> "magic guard" Then
Dim spikeDamage As Double = 1D
Select Case .FieldEffects.OwnSpikes
Case 1
spikeDamage = (p.MaxHP / 100) * 12.5D
Case 2
spikeDamage = (p.MaxHP / 100) * 16.7D
Case 3
spikeDamage = (p.MaxHP / 100) * 25D
End Select
BattleScreen.Battle.ReduceHP(CInt(spikeDamage), False, True, BattleScreen, "The Spikes hurt " & p.GetDisplayName() & "!", "spikes")
End If
End If
'Sticky Web
If spikeAffected = True Then
If .FieldEffects.OwnStickyWeb > 0 Then
BattleScreen.Battle.LowerStat(False, False, BattleScreen, "Speed", 1, "The opposing pokemon was caught in a Sticky Web!", "stickyweb")
End If
End If
If spikeAffected = True Then
If .FieldEffects.OwnToxicSpikes > 0 And p.Status = Pokemon.StatusProblems.None And p.Type1.Type <> Element.Types.Poison And p.Type2.Type <> Element.Types.Poison Then
Select Case .FieldEffects.OwnToxicSpikes
Case 1
BattleScreen.Battle.InflictPoison(False, True, BattleScreen, False, "The Toxic Spikes hurt " & p.GetDisplayName() & "!", "toxicspikes")
Case 2
BattleScreen.Battle.InflictPoison(False, True, BattleScreen, True, "The Toxic Spikes hurt " & p.GetDisplayName() & "!", "toxicspikes")
End Select
End If
If .FieldEffects.OwnToxicSpikes > 0 Then
If p.Type1.Type = Element.Types.Poison Or p.Type2.Type = Element.Types.Poison Then
.BattleQuery.Add(New TextQueryObject(p.GetDisplayName() & " removed the Toxic Spikes!"))
.FieldEffects.OwnToxicSpikes = 0
End If
End If
End If
If rockAffected = True Then
If .FieldEffects.OwnStealthRock > 0 And p.Ability.Name.ToLower() <> "magic guard" Then
Dim rocksDamage As Double = 1D
Dim effectiveness As Single = BattleCalculation.ReverseTypeEffectiveness(Element.GetElementMultiplier(New Element(Element.Types.Rock), p.Type1)) * BattleCalculation.ReverseTypeEffectiveness(Element.GetElementMultiplier(New Element(Element.Types.Rock), p.Type2))
Select Case effectiveness
Case 0.25F
rocksDamage = (p.MaxHP / 100) * 3.125D
Case 0.5F
rocksDamage = (p.MaxHP / 100) * 6.25D
Case 1.0F
rocksDamage = (p.MaxHP / 100) * 12.5D
Case 2.0F
rocksDamage = (p.MaxHP / 100) * 25D
Case 4.0F
rocksDamage = (p.MaxHP / 100) * 50D
End Select
BattleScreen.Battle.ReduceHP(CInt(rocksDamage), False, True, BattleScreen, "The Stealth Rocks hurt " & p.GetDisplayName() & "!", "stealthrocks")
End If
End If
BattleScreen.Battle.TriggerAbilityEffect(BattleScreen, False)
BattleScreen.Battle.TriggerItemEffect(BattleScreen, False)
If .OppPokemon.Status = Pokemon.StatusProblems.Sleep Then
.FieldEffects.OppSleepTurns = Core.Random.Next(1, 4)
End If
If BattleScreen.FieldEffects.OppHealingWish = True Then
BattleScreen.FieldEffects.OppHealingWish = False
If .OppPokemon.HP < .OppPokemon.MaxHP Or .OppPokemon.Status <> Pokemon.StatusProblems.None Then
BattleScreen.Battle.GainHP(.OppPokemon.MaxHP - .OppPokemon.HP, False, False, BattleScreen, "The Healing Wish came true for " & .OppPokemon.GetDisplayName() & "!", "move:healingwish")
BattleScreen.Battle.CureStatusProblem(False, False, BattleScreen, "", "move:healingwish")
End If
End If
End With
End Sub
Public Overrides Sub Update(BV2Screen As BattleScreen)
If TextReady = False Then
UpdateText()
@ -160,9 +409,11 @@
End Sub
Public Overrides Sub Draw(BV2Screen As BattleScreen)
DrawText(BV2Screen)
If TextReady = True Then
DrawChoose()
If Me._ready = False Then
DrawText(BV2Screen)
If TextReady = True Then
DrawChoose()
End If
End If
End Sub

View File

@ -9,7 +9,7 @@
Dim _ready As Boolean = False
Dim _textIndex As Integer = 0
Dim _textDelay As Single = 0.015F
Dim _textDelay As Single = 0.02F
Private ReadOnly Property TextReady() As Boolean
Get
@ -29,6 +29,7 @@
Me._text = Me._text.Replace("~", " ")
Me._text = Me._text.Replace("<player.name>", Core.Player.Name)
Me._text = Me._text.Replace("<playername>", Core.Player.Name)
Me._text = Me._text.Replace("<rival.name>", Core.Player.RivalName)
Me._text = Me._text.Replace("<rivalname>", Core.Player.RivalName)
Me._text = Me._text.Replace("[POKE]", "Poké")
@ -49,38 +50,53 @@
Public Overrides Sub Update(BV2Screen As BattleScreen)
If Me.TextReady = False Then
Me._textDelay -= 0.01F
Me._textDelay -= 0.1F
If Me._textDelay <= 0.0F Then
Me._textDelay = 0.015F
Me._textDelay = GetTextSpeed()
Me._textIndex += 1
End If
If Controls.Accept(True, True) = True And Me._textIndex > 2 Then
Me._textIndex = Me._text.Length
End If
Else
If Controls.Accept(True, True) = True Then
Me._ready = True
If CurrentScreen.Identification <> Screen.Identifications.PauseScreen AndAlso CurrentScreen.Identification <> Screen.Identifications.ChatScreen Then
If Controls.Accept(True, True) = True Then
SoundManager.PlaySound("select")
Me._ready = True
End If
End If
End If
End Sub
Private Function GetTextSpeed() As Single
Select Case TextBox.TextSpeed
Case 1
Return 0.3F
Case 2
Return 0.2F
Case 3
Return 0.1F
Case 4
Return 0.0F
End Select
Return 0.2F
End Function
Public Overrides Sub Draw(BV2Screen As BattleScreen)
Dim rec As New Rectangle(100, Core.windowSize.Height - 250, Core.windowSize.Width - 200, 200)
Canvas.DrawRectangle(rec, New Color(0, 0, 0, 150))
Dim text As String = Me._text.Substring(0, _textIndex)
text = text.CropStringToWidth(FontManager.TextFont, 2.0F, Core.windowSize.Width - 300)
If text.Length > 0 Then
Canvas.DrawRectangle(rec, New Color(0, 0, 0, 150))
End If
Text = text.CropStringToWidth(FontManager.TextFont, 2.0F, Core.windowSize.Width - 300)
Core.SpriteBatch.DrawString(FontManager.TextFont, text, New Vector2(rec.X + 20, rec.Y + 20), Color.White, 0.0F, Vector2.Zero, 2.0F, SpriteEffects.None, 0.0F)
If GamePad.GetState(PlayerIndex.One).IsConnected = True And Core.GameOptions.GamePadEnabled = True And BV2Screen.IsCurrentScreen() = True Then
Dim d As New Dictionary(Of Buttons, String)
d.Add(Buttons.A, "OK")
d.Add(Buttons.A, Localization.GetString("global_ok", "OK"))
BV2Screen.DrawGamePadControls(d, New Vector2(rec.X + rec.Width - 100, rec.Y + rec.Height - 40))
Else
If TextReady = True Then
Core.SpriteBatch.DrawString(FontManager.TextFont, "OK", New Vector2(rec.X + rec.Width - (FontManager.TextFont.MeasureString("OK").X * 2.0F) - 20, rec.Y + rec.Height - (FontManager.TextFont.MeasureString("OK").Y * 2.0F) - 5), Color.White, 0.0F, Vector2.Zero, 2.0F, SpriteEffects.None, 0.0F)
Core.SpriteBatch.DrawString(FontManager.TextFont, Localization.GetString("global_ok", "OK"), New Vector2(rec.X + rec.Width - (FontManager.TextFont.MeasureString(Localization.GetString("global_ok", "OK")).X * 2.0F) - 20, rec.Y + rec.Height - (FontManager.TextFont.MeasureString(Localization.GetString("global_ok", "OK")).Y * 2.0F) - 5), Color.White, 0.0F, Vector2.Zero, 2.0F, SpriteEffects.None, 0.0F)
End If
End If
End Sub

View File

@ -79,16 +79,9 @@
Public Overrides Sub Update(BV2Screen As BattleScreen)
If changedIDs = False Then
changedIDs = True
If Me.ownModelID > -1 Then
BV2Screen.OwnPokemonModel.ID = ownModelID
End If
If Me.ownNPCID > -1 Then
BV2Screen.OwnPokemonNPC.ID = ownNPCID
End If
If Me.oppModelID > -1 Then
BV2Screen.OppPokemonModel.ID = oppModelID
End If
If Me.oppNPCID > -1 Then
BV2Screen.OppPokemonNPC.ID = oppNPCID
End If
@ -98,35 +91,36 @@
Case 0
Select Case Me._entity
Case BattleEntities.OwnPokemon
If BV2Screen.OwnPokemonNPC.ID = 1 Then
BV2Screen.OwnPokemonNPC.Visible = GetVisible(BV2Screen.OwnPokemonNPC.Visible)
BV2Screen.OwnPokemonModel.Visible = False
Else
BV2Screen.OwnPokemonModel.Visible = GetVisible(BV2Screen.OwnPokemonModel.Visible)
BV2Screen.OwnPokemonNPC.Visible = False
End If
BV2Screen.OwnPokemonNPC.Visible = GetVisible(BV2Screen.OwnPokemonNPC.Visible)
Case BattleEntities.OppPokemon
If BV2Screen.OppPokemonNPC.ID = 1 Then
BV2Screen.OppPokemonNPC.Visible = GetVisible(BV2Screen.OppPokemonNPC.Visible)
BV2Screen.OppPokemonModel.Visible = False
Else
BV2Screen.OppPokemonModel.Visible = GetVisible(BV2Screen.OppPokemonModel.Visible)
BV2Screen.OppPokemonNPC.Visible = False
End If
BV2Screen.OppPokemonNPC.Visible = GetVisible(BV2Screen.OppPokemonNPC.Visible)
End Select
Case 1
Select Case Me._entity
Case BattleEntities.OwnPokemon
BV2Screen.OwnPokemonNPC.ModelPath = ""
BV2Screen.OwnPokemonNPC.Model = Nothing
BV2Screen.OwnPokemonNPC.Scale = New Vector3(1)
BV2Screen.OwnPokemonNPC.SetupSprite(_newTexture, "", False)
Case BattleEntities.OppPokemon
BV2Screen.OppPokemonNPC.ModelPath = ""
BV2Screen.OppPokemonNPC.Model = Nothing
BV2Screen.OppPokemonNPC.Scale = New Vector3(1)
BV2Screen.OppPokemonNPC.SetupSprite(_newTexture, "", False)
End Select
Case 2
Select Case Me._entity
Case BattleEntities.OwnPokemon
BV2Screen.OwnPokemonModel.LoadModel(_newTexture)
BV2Screen.OwnPokemonNPC.Scale = New Vector3(BV2Screen.OwnPokemon.GetModelProperties().Item1) * ModelManager.MODELSCALE * GameModeManager.PokeModelScale
BV2Screen.OwnPokemonNPC.Rotation = NPC.GetRotationFromInteger(BV2Screen.OwnPokemonNPC.faceRotation) + GameModeManager.PokeModelRotation
BV2Screen.OwnPokemonNPC.ModelPath = _newTexture
BV2Screen.OwnPokemonNPC.Model = ModelManager.GetModel(BV2Screen.OwnPokemonNPC.ModelPath)
Case BattleEntities.OppPokemon
BV2Screen.OppPokemonModel.LoadModel(_newTexture)
BV2Screen.OppPokemonNPC.Scale = New Vector3(BV2Screen.OppPokemon.GetModelProperties().Item1) * ModelManager.MODELSCALE * GameModeManager.PokeModelScale
BV2Screen.OppPokemonNPC.Rotation = NPC.GetRotationFromInteger(BV2Screen.OppPokemonNPC.faceRotation) + GameModeManager.PokeModelRotation
BV2Screen.OppPokemonNPC.ModelPath = _newTexture
BV2Screen.OppPokemonNPC.Model = ModelManager.GetModel(BV2Screen.OppPokemonNPC.ModelPath)
End Select
End Select
_done = True

View File

@ -10,7 +10,9 @@
End Sub
Public Overrides Sub Update(BV2Screen As BattleScreen)
BattleScreen.ReceivedInput = ""
If BattleScreen.FirstRound = False Then
BattleScreen.ReceivedInput = ""
End If
BV2Screen.SentHostData = False
BattleScreen.ReceivedQuery = ""
BV2Screen.SentInput = False

View File

@ -1,17 +1,19 @@
Namespace BattleSystem
Imports P3D.BattleSystem.Battle
Namespace BattleSystem
Public Class TrainerAI
'Trainer AI Levels:---------------------------------------------------------------------------------------------------------------------
'Normal Trainers: 0-20 (0 being not very smart trainers like Bugcatchers, 20 being Cooltrainers, get higher levels when rematches occur)
'(Johto) Gym Leaders: 10-40 (10 for Falkner, 40 for Clair)
'(Kanto) Gym Leaders: All 60
'Elite 4: 60
'Lance: 100
'Elder Li: 10
'Rival: 40
'Team Rocket Grunts: 5
'Team Rocket Admins: 20
'Normal Trainers: 0-1 (0 being not very smart trainers like Bugcatchers, 1 being Cooltrainers, get higher levels when rematches occur)
'(Johto) Gym Leaders: 0-2 (0 for Falkner, 2 for Clair)
'(Kanto) Gym Leaders: All 2
'Elite 4: 2
'Lance: 2
'Elder Li: 0
'Rival: 2
'Team Rocket Grunts: 0
'Team Rocket Admins: 1
Public Shared Function GetAIMove(ByVal BattleScreen As BattleScreen, ByVal OwnStep As Battle.RoundConst) As Battle.RoundConst
Dim p As Pokemon = BattleScreen.OppPokemon
@ -101,28 +103,56 @@
' - use never-miss attack when own accuracy is low/opp evasion is high
'-------------------------------------AI BEGIN------------------------------------------------------------------------------------'
'-------------------------------------Encore Move if an encore is in effect-------------------------------------------------------'
If BattleScreen.FieldEffects.OppEncore > 0 Then
Dim attackIndex As Integer = -1
For a = 0 To p.Attacks.Count - 1
If p.Attacks(a).ID = BattleScreen.FieldEffects.OppEncoreMove.ID Then
attackIndex = a
End If
Next
If attackIndex <> -1 AndAlso p.Attacks(attackIndex).CurrentPP > 0 Then
Return New RoundConst() With {.StepType = RoundConst.StepTypes.Move, .Argument = BattleScreen.FieldEffects.OppEncoreMove}
Else
BattleScreen.FieldEffects.OppEncoreMove = Nothing
BattleScreen.FieldEffects.OppEncore = 0
BattleScreen.BattleQuery.Add(New TextQueryObject(p.GetDisplayName() & "'s encore stopped."))
End If
End If
'-------------------------------------Random move depending on difficulty---------------------------------------------------------'
'Only applies if trainer has an AI level below 20:
If BattleScreen.Trainer.AILevel < 20 Then
If Core.Player.DifficultyMode = 0 Then
'Chance of 35% that the trainer is using a random move:
If Core.Random.Next(0, 100) < 35 Then
Return ProduceOppStep(m, Core.Random.Next(0, m.Count))
End If
ElseIf Core.Player.DifficultyMode = 1 Then
'Chance of 18% that the trainer is using a random move:
If Core.Random.Next(0, 100) < 18 Then
Return ProduceOppStep(m, Core.Random.Next(0, m.Count))
'Only applies if trainer has an AI level of 0:
If BattleScreen.Trainer.AILevel <= 0 Then
Dim AvailableAttacks As List(Of Integer) = New List(Of Integer)
For i = 0 To m.Count - 1
AvailableAttacks.Add(i)
Next
Dim OppAttackChoice As Integer = Core.Random.Next(0, AvailableAttacks.Count)
Dim Ready As Boolean = False
While Ready = False
If m(OppAttackChoice) Is BattleScreen.FieldEffects.OppTormentMove OrElse m(OppAttackChoice).Disabled > 0 OrElse BattleScreen.FieldEffects.OppTaunt > 0 AndAlso BattleScreen.OppPokemon.Attacks(OppAttackChoice).Category = Attack.Categories.Status Then
AvailableAttacks.Remove(OppAttackChoice)
If AvailableAttacks.Count > 0 Then
OppAttackChoice = AvailableAttacks(Core.Random.Next(0, AvailableAttacks.Count))
Else
Return New RoundConst() With {.StepType = RoundConst.StepTypes.Move, .Argument = Attack.GetAttackByID(165)}
End If
Else
Ready = True
End If
End While
'Chance of 35% that the trainer is using a random move:
If Core.Random.Next(0, 100) < 35 Then
Return ProduceOppStep(m, OppAttackChoice)
End If
End If
'-------------------------------------Switching-----------------------------------------------------------------------------------'
'Only applies if trainer has an AI level above or equal 40:
If BattleScreen.Trainer.AILevel >= 40 Then
'Only applies if trainer has an AI level above or equal to 2:
If BattleScreen.Trainer.AILevel >= 2 Then
If BattleCalculation.CanSwitch(BattleScreen, False) = True Then
If BattleScreen.Trainer.Pokemons.Count > 0 Then
Dim living As Integer = 0
@ -347,13 +377,17 @@
'-------------------------------------Moves---------------------------------------------------------------------------------------'
'If own pokemon is asleep, try to use Sleep Talk (100%)
If p.Status = Pokemon.StatusProblems.Sleep And BattleScreen.FieldEffects.OppSleepTurns > 1 And HasMove(m, 214) = True Then
Return ProduceOppStep(m, IDtoMoveIndex(m, 214))
If p.Status = Pokemon.StatusProblems.Sleep And BattleScreen.FieldEffects.OppSleepTurns > 1 And HasMove(m, 214) = True AndAlso m(IDtoMoveIndex(m, 214)).Disabled = 0 AndAlso m(IDtoMoveIndex(m, 214)) IsNot BattleScreen.FieldEffects.OppTormentMove Then
If BattleScreen.FieldEffects.OppTaunt = 0 OrElse m(IDtoMoveIndex(m, 214)).Category <> Attack.Categories.Status Then
Return ProduceOppStep(m, IDtoMoveIndex(m, 214))
End If
End If
'If own pokemon is asleep, try to use Snore (100%)
If p.Status = Pokemon.StatusProblems.Sleep And BattleScreen.FieldEffects.OppSleepTurns > 1 And HasMove(m, 173) = True Then
Return ProduceOppStep(m, IDtoMoveIndex(m, 173))
If p.Status = Pokemon.StatusProblems.Sleep And BattleScreen.FieldEffects.OppSleepTurns > 1 And HasMove(m, 173) = True AndAlso m(IDtoMoveIndex(m, 173)).Disabled = 0 AndAlso m(IDtoMoveIndex(m, 173)) IsNot BattleScreen.FieldEffects.OppTormentMove Then
If BattleScreen.FieldEffects.OppTaunt = 0 OrElse m(IDtoMoveIndex(m, 173)).Category <> Attack.Categories.Status Then
Return ProduceOppStep(m, IDtoMoveIndex(m, 173))
End If
End If
'If own pokemon is frozen and has a move to thraw out -> use that move
@ -365,7 +399,7 @@
End If
'Fake Out if first turn -> try to inflict flinch (100%)
If HasMove(m, 252) = True Then
If HasMove(m, 252) = True AndAlso m(IDtoMoveIndex(m, 252)).Disabled = 0 AndAlso m(IDtoMoveIndex(m, 252)) IsNot BattleScreen.FieldEffects.OppTormentMove Then
If op.Ability.Name.ToLower() <> "inner focus" Then
Dim turns As Integer = BattleScreen.FieldEffects.OppPokemonTurns
If turns = 0 Then
@ -386,7 +420,7 @@
'use attacking move if speed is higher than opp speed and opponent has low health (<= 30%) (75%)
If p.Speed > op.Speed And op.HP <= CInt((op.MaxHP / 100) * 30) Then
Dim chosenMove As Integer = GetAttackingMove(BattleScreen, m)
Dim chosenMove As Integer = MoveAI(m, Attack.AIField.Damage)
If chosenMove > -1 Then
If CheckForTypeIneffectiveness(BattleScreen, m, chosenMove) = True Then
Return ProduceOppStep(m, chosenMove)
@ -518,9 +552,11 @@
'try to set up leech seed (75%)
If op.IsType(Element.Types.Grass) = False Then
If BattleScreen.FieldEffects.OwnLeechSeed = 0 Then
If HasMove(m, 73) = True Then
If RPercent(75) = True Then
Return ProduceOppStep(m, IDtoMoveIndex(m, 73))
If HasMove(m, 73) = True AndAlso m(IDtoMoveIndex(m, 73)).Disabled = 0 AndAlso m(IDtoMoveIndex(m, 73)) IsNot BattleScreen.FieldEffects.OppTormentMove Then
If BattleScreen.FieldEffects.OppTaunt = 0 OrElse m(IDtoMoveIndex(m, 75)).Category <> Attack.Categories.Status Then
If RPercent(75) = True Then
Return ProduceOppStep(m, IDtoMoveIndex(m, 73))
End If
End If
End If
End If
@ -528,9 +564,11 @@
'try to use FocusEnergy (50%)
If BattleScreen.FieldEffects.OppFocusEnergy = 0 Then
If HasMove(m, 116) = True Then
If RPercent(50) = True Then
Return ProduceOppStep(m, IDtoMoveIndex(m, 116))
If HasMove(m, 116) = True AndAlso m(IDtoMoveIndex(m, 116)).Disabled = 0 AndAlso m(IDtoMoveIndex(m, 116)) IsNot BattleScreen.FieldEffects.OppTormentMove Then
If BattleScreen.FieldEffects.OppTaunt = 0 OrElse m(IDtoMoveIndex(m, 116)).Category <> Attack.Categories.Status Then
If RPercent(50) = True Then
Return ProduceOppStep(m, IDtoMoveIndex(m, 116))
End If
End If
End If
End If
@ -622,21 +660,31 @@
'Use LightScreen/Reflect (75%):
If RPercent(75) = True Then
If HasMove(m, 113) = True And op.SpAttack > op.Attack And BattleScreen.FieldEffects.OppLightScreen = 0 Then
Return ProduceOppStep(m, IDtoMoveIndex(m, 113))
If HasMove(m, 113) = True And op.SpAttack > op.Attack And BattleScreen.FieldEffects.OppLightScreen = 0 AndAlso m(IDtoMoveIndex(m, 113)).Disabled = 0 AndAlso m(IDtoMoveIndex(m, 113)) IsNot BattleScreen.FieldEffects.OppTormentMove Then
If BattleScreen.FieldEffects.OppTaunt = 0 OrElse m(IDtoMoveIndex(m, 113)).Category <> Attack.Categories.Status Then
Return ProduceOppStep(m, IDtoMoveIndex(m, 113))
End If
End If
If HasMove(m, 115) = True And op.Attack > op.SpAttack And BattleScreen.FieldEffects.OppReflect = 0 Then
Return ProduceOppStep(m, IDtoMoveIndex(m, 115))
If HasMove(m, 115) = True And op.Attack > op.SpAttack And BattleScreen.FieldEffects.OppReflect = 0 AndAlso m(IDtoMoveIndex(m, 115)).Disabled = 0 AndAlso m(IDtoMoveIndex(m, 115)) IsNot BattleScreen.FieldEffects.OppTormentMove Then
If BattleScreen.FieldEffects.OppTaunt = 0 OrElse m(IDtoMoveIndex(m, 115)).Category <> Attack.Categories.Status Then
Return ProduceOppStep(m, IDtoMoveIndex(m, 115))
End If
End If
End If
'Special Moveset combos:
' - Defense Curl + Rollout
If HasMove(m, 205) = True And HasMove(m, 111) = True Then
If BattleScreen.FieldEffects.OppDefenseCurl = 0 Then
Return ProduceOppStep(m, IDtoMoveIndex(m, 111))
If BattleScreen.FieldEffects.OppDefenseCurl = 0 AndAlso m(IDtoMoveIndex(m, 111)).Disabled = 0 AndAlso m(IDtoMoveIndex(m, 111)) IsNot BattleScreen.FieldEffects.OppTormentMove Then
If BattleScreen.FieldEffects.OppTaunt = 0 OrElse m(IDtoMoveIndex(m, 111)).Category <> Attack.Categories.Status Then
Return ProduceOppStep(m, IDtoMoveIndex(m, 111))
End If
Else
Return ProduceOppStep(m, IDtoMoveIndex(m, 205))
If BattleScreen.FieldEffects.OppTaunt = 0 OrElse m(IDtoMoveIndex(m, 205)).Category <> Attack.Categories.Status Then
If m(IDtoMoveIndex(m, 205)).Disabled = 0 Then
Return ProduceOppStep(m, IDtoMoveIndex(m, 205))
End If
End If
End If
End If
@ -644,8 +692,10 @@
Dim attackDic As New Dictionary(Of Integer, Integer)
For i = 0 To m.Count - 1
If MoveHasAIField(m(i), Attack.AIField.Damage) = True Then
attackDic.Add(i, 0)
If MoveHasAIField(m(i), Attack.AIField.Damage) = True AndAlso m(i).Disabled = 0 AndAlso m(i) IsNot BattleScreen.FieldEffects.OppTormentMove Then
If BattleScreen.FieldEffects.OppTaunt = 0 OrElse m(IDtoMoveIndex(m, 214)).Category <> Attack.Categories.Status Then
attackDic.Add(i, 0)
End If
End If
Next
'If has more than 0 attacking moves:
@ -792,8 +842,31 @@
Return ProduceOppStep(m, chosenAttackMove)
End If
'catch crash: return random move:
Return ProduceOppStep(m, Core.Random.Next(0, m.Count))
'if no attacking moves, return random move:
If BattleScreen.Trainer.AILevel >= 0 Then
Dim AvailableAttacks As List(Of Integer) = New List(Of Integer)
For i = 0 To m.Count - 1
AvailableAttacks.Add(i)
Next
Dim OppAttackChoice As Integer = Core.Random.Next(0, AvailableAttacks.Count)
Dim Ready As Boolean = False
While Ready = False
If m(OppAttackChoice) Is BattleScreen.FieldEffects.OppTormentMove OrElse m(OppAttackChoice).Disabled > 0 OrElse BattleScreen.FieldEffects.OppTaunt > 0 AndAlso BattleScreen.OppPokemon.Attacks(OppAttackChoice).Category = Attack.Categories.Status Then
AvailableAttacks.Remove(OppAttackChoice)
If AvailableAttacks.Count > 0 Then
OppAttackChoice = AvailableAttacks(Core.Random.Next(0, AvailableAttacks.Count))
Else
Return New RoundConst() With {.StepType = RoundConst.StepTypes.Move, .Argument = Attack.GetAttackByID(165)}
End If
Else
Ready = True
End If
End While
Return ProduceOppStep(m, OppAttackChoice)
End If
'catch crash: return struggle
Return New RoundConst() With {.StepType = RoundConst.StepTypes.Move, .Argument = Attack.GetAttackByID(165)}
End Function
Private Shared Function HasOtherAttackingMoveThanExplosion(ByVal m As List(Of Attack), ByVal leaveOutIndex As Integer) As Boolean
@ -835,9 +908,17 @@
Private Shared Function MoveAI(ByVal m As List(Of Attack), ByVal AIType As Attack.AIField) As Integer
Dim validMoves As New List(Of Integer)
Dim _battleScreen As Screen = Core.CurrentScreen
While _battleScreen.Identification <> Screen.Identifications.BattleScreen
_battleScreen = _battleScreen.PreScreen
End While
For i = 0 To m.Count - 1
If m(i).AIField1 = AIType Or m(i).AIField2 = AIType Or m(i).AIField3 = AIType Then
validMoves.Add(i)
If m(i).Disabled = 0 AndAlso m(i) IsNot CType(_battleScreen, BattleScreen).FieldEffects.OppTormentMove Then
If CType(_battleScreen, BattleScreen).FieldEffects.OppTaunt = 0 OrElse m(i).Category <> Attack.Categories.Status Then
If m(i).AIField1 = AIType Or m(i).AIField2 = AIType Or m(i).AIField3 = AIType Then
validMoves.Add(i)
End If
End If
End If
Next

View File

@ -23,7 +23,7 @@ Public Class Trainer
Public VSImageOrigin As String = "VSIntro"
Public VSImagePosition As Vector2 = New Vector2(0, 0)
Public VSImageSize As Size = New Size(61, 54)
Public VSImageSize As Size = New Size(64, 64)
Public BarImagePosition As Vector2 = New Vector2(0, 0)
Public OutroMessage As String = "TRAINER_DEFAULT_MESSAGE"
@ -140,7 +140,7 @@ Public Class Trainer
isDoubleTrainerValid += 1
End If
Case "money"
Me.Money = CInt(ScriptCommander.Parse(value).ToString())
Me.Money = CInt(ScriptConversion.ToInteger(ScriptCommander.Parse(value).ToString()))
Case "intromessage"
Me.IntroMessage = ScriptCommander.Parse(value).ToString()
Case "outromessage"
@ -179,7 +179,7 @@ Public Class Trainer
If value <> "" Then
Dim itemData() As String = ScriptCommander.Parse(value).ToString().Split(CChar(","))
For Each ItemID As String In itemData
Items.Add(Item.GetItemByID(CInt(ItemID)))
Items.Add(Item.GetItemByID(ItemID.ToString))
Next
End If
Case "gender"
@ -207,28 +207,35 @@ Public Class Trainer
Dim PokeData As String = PokeLine.GetSplit(1, "|")
If PokeData <> "" Then
If ScriptCommander.Parse(PokeData).ToString().StartsWith("{") = True Then
PokeData = ScriptCommander.Parse(PokeData).ToString().Replace("§", ",")
PokeData = ScriptCommander.Parse(PokeData).ToString().Replace("§", ",").Replace("«", "[").Replace("»", "]")
End If
If PokeData.StartsWith("{") = True And PokeData.EndsWith("}") = True Then
Dim p As Pokemon = Pokemon.GetPokemonByData(PokeData)
If Core.Player.DifficultyMode > 0 Then
Dim level As Integer = p.Level
Dim level As Integer = p.Level
Dim addLevel As Integer = 0
If Core.Player.DifficultyMode = 1 Then
addLevel = CInt(Math.Ceiling(level / 10))
ElseIf Core.Player.DifficultyMode = 2 Then
addLevel = CInt(Math.Ceiling(level / 5))
End If
While level + addLevel > p.Level
p.LevelUp(False)
p.Experience = p.NeedExperience(p.Level)
End While
p.HP = p.MaxHP
Dim addLevel As Integer = 0
If Core.Player.DifficultyMode = 0 Then
addLevel = CInt(Math.Ceiling(level * CSng(GameModeManager.GetGameRuleValue("LevelMultiplier", "1.0").InsertDecSeparator) - level))
ElseIf Core.Player.DifficultyMode = 1 Then
addLevel = CInt(Math.Ceiling(level * CSng(GameModeManager.GetGameRuleValue("LevelMultiplier", "1.1").InsertDecSeparator) - level))
ElseIf Core.Player.DifficultyMode = 2 Then
addLevel = CInt(Math.Ceiling(level * CSng(GameModeManager.GetGameRuleValue("LevelMultiplier", "1.2").InsertDecSeparator) - level))
End If
If level + addLevel > CInt(GameModeManager.GetGameRuleValue("MaxLevel", "100")) Then
addLevel = CInt(GameModeManager.GetGameRuleValue("MaxLevel", "100")) - level
End If
If addLevel <= 0 Then
addLevel = 0
End If
While level + addLevel > p.Level
p.LevelUp(False)
p.Experience = p.NeedExperience(p.Level)
End While
p.HP = p.MaxHP
Pokemons.Add(p)
Else
Dim firstPart As String = ""
@ -260,15 +267,31 @@ Public Class Trainer
readData = readData.Remove(0, 1)
End While
Dim ID As Integer = ScriptConversion.ToInteger(ScriptCommander.Parse(firstPart))
Dim PK As String = ScriptCommander.Parse(firstPart).ToString()
Dim Level As Integer = ScriptConversion.ToInteger(ScriptCommander.Parse(secondPart))
Dim addLevel As Integer = 0
If Core.Player.DifficultyMode = 1 Then
addLevel = CInt(Math.Ceiling(Level / 10))
ElseIf Core.Player.DifficultyMode = 2 Then
addLevel = CInt(Math.Ceiling(Level / 5))
Dim ID As Integer = ScriptConversion.ToInteger(PK.Split(CChar("_"))(0))
Dim AD As String = ""
If PK.Contains(CChar("_")) Then
AD = PK.Split(CChar("_"))(1)
End If
Dim addLevel As Integer = 0
If Core.Player.DifficultyMode = 0 Then
addLevel = CInt(Math.Ceiling(Level * CSng(GameModeManager.GetGameRuleValue("LevelMultiplier", "1.0").InsertDecSeparator) - Level))
ElseIf Core.Player.DifficultyMode = 1 Then
addLevel = CInt(Math.Ceiling(Level * CSng(GameModeManager.GetGameRuleValue("LevelMultiplier", "1.1").InsertDecSeparator) - Level))
ElseIf Core.Player.DifficultyMode = 2 Then
addLevel = CInt(Math.Ceiling(Level * CSng(GameModeManager.GetGameRuleValue("LevelMultiplier", "1.2").InsertDecSeparator) - Level))
End If
If Level + addLevel > CInt(GameModeManager.GetGameRuleValue("MaxLevel", "100")) Then
addLevel = CInt(GameModeManager.GetGameRuleValue("MaxLevel", "100")) - Level
End If
If addLevel <= 0 Then
addLevel = 0
End If
Level += addLevel
Dim maxLevel As Integer = CInt(GameModeManager.GetGameRuleValue("MaxLevel", "100"))
@ -282,8 +305,13 @@ Public Class Trainer
If FrontierTrainer > -1 Then
p = FrontierSpawner.GetPokemon(Level, FrontierTrainer, Nothing)
Else
p = Pokemon.GetPokemonByID(ID)
p.Generate(Level, True)
If AD <> "" Then
p = Pokemon.GetPokemonByID(ID, AD)
p.Generate(Level, True, AD)
Else
p = Pokemon.GetPokemonByID(ID)
p.Generate(Level, True)
End If
End If
If p.IsGenderless = False Then
@ -299,6 +327,8 @@ Public Class Trainer
End Select
End If
p.IsShiny = False
Pokemons.Add(p)
End If
End If
@ -318,25 +348,25 @@ Public Class Trainer
Me.VSImagePosition = New Vector2(0, 0)
Case "orange", "1"
Me.VSImagePosition = New Vector2(1, 0)
Case "green", "2"
Case "lightgreen", "2"
Me.VSImagePosition = New Vector2(0, 1)
Case "3"
Case "gray", "3"
Me.VSImagePosition = New Vector2(1, 1)
Case "4"
Case "violet", "4"
Me.VSImagePosition = New Vector2(0, 2)
Case "5"
Case "green", "5"
Me.VSImagePosition = New Vector2(1, 2)
Case "6"
Case "yellow", "6"
Me.VSImagePosition = New Vector2(0, 3)
Case "7"
Case "brown", "7"
Me.VSImagePosition = New Vector2(1, 3)
Case "8"
Case "lightblue", "8"
Me.VSImagePosition = New Vector2(0, 4)
Case "9"
Case "lightgray", "9"
Me.VSImagePosition = New Vector2(1, 4)
Case "red", "10"
Me.VSImagePosition = New Vector2(0, 5)
Case "11"
Case "empty", "11"
Me.VSImagePosition = New Vector2(1, 5)
Case "battlefrontier"
Me.VSImagePosition = New Vector2(0, 0)
@ -378,7 +408,7 @@ Public Class Trainer
Me.BarImagePosition = New Vector2(1, 4)
Case "red", "10"
Me.BarImagePosition = New Vector2(0, 5)
Case "11"
Case "empty", "11"
Me.BarImagePosition = New Vector2(1, 5)
Case Else
If StringHelper.IsNumeric(barType) = True Then
@ -477,4 +507,4 @@ Public Class Trainer
Return i
End Function
End Class
End Class

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -2,7 +2,7 @@
@text.show(Yeah, I am the designated healer.*Let me heal your Pokémon!)
@screen.fadeout
@pokemon.heal
@sound.play(pokemon_heal,true)
@sound.play(Heal_Party,true)
@level.wait(200)
@screen.fadein
@text.show(There you go!*The boss said there should~be someone trying to stop us,~so we need to be in~tip-top shape!*Let me know if you~need to be healed up!)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -6,17 +6,17 @@ version=2
:endif
:if:<register.registered(clairtmget)>=False <and> <register.registered(ddenquizpass)>=True
@player.move(0)
@npc.warp(0,11,0,26)
@player.move(0)
@level.update
@text.show(Wait!)
@npc.turn(0,3)
@player.move(0)
@player.turnto(1)
@npc.move(0,3)
@text.show(Clair: I'm sorry~about this.*Here, take this as~my apology.)
@item.give(214,1)
@item.messagegive(214,1)
@Text.show(That contains~Dragonbreath.*No, it doesn't~have anything to~do with my breath.*If you don't want~it, you don't have~to take it.)
@Text.show(That contains~Dragon Breath.*No, it doesn't~have anything to~do with my breath.*If you don't want~it, you don't have~to take it.)
@Text.show(Clair: What's the matter?*Aren't you going on~to the Pokémon League?*Do you know how to~get there?*From here, go to~New Bark Town.*Then Surf east to~the Pokémon League.*The route there is~very tough.*Don't you dare~lose at the~Pokémon League!*If you do, I'll~feel even worse*about having lost~to you!*Give it everything~you've got.)
@register.register(clairtmget)
:endif

View File

@ -1,19 +0,0 @@
version=2
@text.show(If you've come to Dragon's~Den, you must be looking~to master the Dragon-type.)
:if:<pokemon.type1(0)>=dragon <or> <pokemon.type2(0)>=dragon <or> <pokemon.number(0)>=493 <or> <pokemon.number(0)>=773
:if:<pokemon.hasattack(0,434)>=false
@text.show(Your <pokemon.name(0)>~seems capable.*Do you want it to learn~Draco Meteor, the most~powerful Dragon move?)
@options.show(Yes,No)
:when:Yes
@text.show(I shall teach it, then.)
@pokemon.learnattack(0,434)
:when:No
@text.show(Such a waste of potential.)
:endwhen
:else
@text.show(Now that <pokemon.name(0)>~masters the draconic power,~nothing stands a chance!)
:endif
:else
@text.show(But your <pokemon.name(0)>~is no Dragon-type.*If you catch any,~show it to me.)
:endif
:end

View File

@ -1,108 +1,92 @@
version=2
:if:<register.registered(ddenquizpass)>=False
:then
@player.move(6)
@player.turnto(3)
@player.move(1)
@player.turnto(0)
@npc.warp(0,4,0.1,9)
@npc.move(1,1)
@text.show(Hm... Good to see~you here.*No need to explain~why you came.*Clair sent you~here, didn't she?*That girl is a~handful...*I am sorry, but I~must test you.*Not to worry, you~are to answer only~a few questions.*Ready?*What are Pokémon~to you?)
@storage.set(integer,Q,0)
@options.show(Pal,Underling,Friend)
:when:Underling
@storage.set(integer,Q,<storage.get(integer,Q)>+1)
:endwhen
@Text.show(Oh, I understand...*What helps you to~win battles?)
@options.show(Strategy,Raising,Cheating)
:when:Cheating
@storage.set(integer,Q,<storage.get(integer,Q)>+1)
:endwhen
@Text.show(Oh, I understand...*What kind of~trainer do you~wish to battle?)
@options.show(Weak person,Tough person,Anybody)
:when:Weak person
@storage.set(integer,Q,<storage.get(integer,Q)>+1)
:when:Tough person
@storage.set(integer,Q,<storage.get(integer,Q)>+1)
:endwhen
@Text.show(Oh, I understand...*What is most~important for~raising Pokémon?)
@Options.show(Love,Violence,Knowledge)
:when:Violence
@storage.set(integer,Q,<storage.get(integer,Q)>+1)
:endwhen
@Text.show(Oh, I understand...*Strong Pokémon.~Weak Pokémon.*Which is more~important?)
@Options.show(Tough,Both,Weak)
:when:Tough
@storage.set(integer,Q,<storage.get(integer,Q)>+1)
:when:Weak
@storage.set(integer,Q,<storage.get(integer,Q)>+1)
:endwhen
:if:<storage.get(integer,Q)>>0
:then
@text.show(I am sorry you~failed.*Please leave.)
@screen.fadeout
@player.warp(blackthorn\center.dat,7,0.1,3,0)
@level.update
@screen.fadein
@text.show(Huh? Was that~a day dream?)
:else
@Text.show(Hm... I see...*You care deeply~for Pokémon.*Very commendable.*That conviction is~what is important!*<player.name>, don't~lose that belief.*It will see you~through at the~Pokémon League.)
@player.turnto(2)
@npc.turn(0,0)
@sound.play(enter)
@npc.move(0,7)
@npc.turn(0,3)
@player.turnto(1)
@npc.turn(1,1)
@text.show(So how did it go?*I guess there's no~point in asking.*You did fail?*......................*...What? You passed?)
@npc.move(0,-1)
@text.show(That can't be!)
@npc.move(0,-1)
@text.show(You're lying!*Even I haven't~been approved!)
@npc.move(1,3)
@npc.turn(1,2)
@text.show(Clair!*This child is~impeccable, in~skill and spirit!*Admit defeat and~confer the Rising Badge!*...Or must I inform~Lance of this?)
@text.show(I-I understand...)
@npc.turn(0,3)
@npc.move(0,2)
@text.show(Here, this is the~Rising Badge...*Hurry up! Take it!)
@player.getbadge(16)
@player.achieveemblem(rising)
@register.register(risingbadge_obtain)
@Text.show(Risignbagde will~enable your*Pokémon to use the~move for climbing~Waterfalls.*Also, all Pokémon~will recognize you*as a trainer and~obey your every~command without~question.)
@npc.turn(1,3)
@npc.move(1,3)
@npc.turn(1,2)
@npc.turn(0,0)
@player.turnto(0)
@text.show(Clair...*Reflect upon what~it is that you*lack and this~child has.)
@text.show(.....................)
@player.turnto(2)
@npc.turn(0,2)
@npc.move(0,7)
@sound.play(enter)
@npc.remove(0)
@register.register(ddenquizpass)
:endif
@player.move(6)
@player.turnto(3)
@player.move(1)
@player.turnto(0)
@npc.warp(0,4,0.1,9)
@npc.move(1,1)
@storage.set(integer,Q,0)
@text.show(Hm... Good to see~you here.*No need to explain~why you came.*Clair sent you~here, didn't she?*That girl is a~handful...*I am sorry, but I~must test you.*Not to worry, you~are to answer only~a few questions.*Ready?*What are Pokémon~to you?)
@options.show(Pal,Underling,Friend)
:when:Underling
@storage.set(integer,Q,<storage.get(integer,Q)>+1)
:endwhen
@Text.show(Oh, I understand...*What helps you to~win battles?)
@options.show(Strategy,Raising,Cheating)
:when:Cheating
@storage.set(integer,Q,<storage.get(integer,Q)>+1)
:endwhen
@Text.show(Oh, I understand...*What kind of~trainer do you~wish to battle?)
@options.show(Weak person,Tough person,Anybody)
:when:Weak person
@storage.set(integer,Q,<storage.get(integer,Q)>+1)
:when:Tough person
@storage.set(integer,Q,<storage.get(integer,Q)>+1)
:endwhen
@Text.show(Oh, I understand...*What is most~important for~raising Pokémon?)
@Options.show(Love,Violence,Knowledge)
:when:Violence
@storage.set(integer,Q,<storage.get(integer,Q)>+1)
:endwhen
@Text.show(Oh, I understand...*Strong Pokémon.~Weak Pokémon.*Which is more~important?)
@Options.show(Tough,Both,Weak)
:when:Tough
@storage.set(integer,Q,<storage.get(integer,Q)>+1)
:when:Weak
@storage.set(integer,Q,<storage.get(integer,Q)>+1)
:endwhen
:if:<storage.get(integer,Q)>>0
@text.show(I am sorry you~failed.*Please leave.)
@screen.fadeout
@player.warp(blackthorn\center.dat,7,0.1,3,0)
@level.update
@screen.fadein
@text.show(Huh? Was that~a day dream?)
:else
@Text.show(Hm... I see...*You care deeply~for Pokémon.*Very commendable.*That conviction is~what is important!*<player.name>, don't~lose that belief.*It will see you~through at the~Pokémon League.)
@player.turnto(2)
@npc.turn(0,0)
@sound.play(enter)
@npc.move(0,7)
@npc.turn(0,3)
@player.turnto(1)
@npc.turn(1,1)
@text.show(So how did it go?*I guess there's no~point in asking.*You did fail?*......................*...What? You passed?)
@npc.move(0,-1)
@text.show(That can't be!)
@npc.move(0,-1)
@text.show(You're lying!*Even I haven't~been approved!)
@npc.move(1,3)
@npc.turn(1,2)
@text.show(Clair!*This child is~impeccable, in~skill and spirit!*Admit defeat and~confer the Rising Badge!*...Or must I inform~Lance of this?)
@text.show(I-I understand...)
@npc.turn(0,3)
@npc.move(0,2)
@text.show(Here, this is the~Rising Badge...*Hurry up! Take it!)
@player.getbadge(16)
@player.achieveemblem(rising)
@register.register(risingbadge_obtain)
@Text.show(Rising Bagde will~enable your*Pokémon to use the~move for climbing~Waterfalls.*Also, all Pokémon~will recognize you*as a trainer and~obey your every~command without~question.)
@npc.turn(1,3)
@npc.move(1,3)
@npc.turn(1,2)
@npc.turn(0,0)
@player.turnto(0)
@text.show(Clair...*Reflect upon what~it is that you*lack and this~child has.)
@text.show(.....................)
@player.turnto(2)
@npc.turn(0,2)
@npc.move(0,7)
@sound.play(enter)
@npc.remove(0)
@register.register(ddenquizpass)
:endif
:endif
:end

Some files were not shown because too many files have changed in this diff Show More