Commit Graph

820 Commits

Author SHA1 Message Date
haven1433
63fb9b3ac6 add mul rA, rA, rB alias for mul rA, rB 2023-08-19 07:40:02 -05:00
haven1433
ac1f6dedc5 compile error on invalid command 2023-08-18 21:20:37 -05:00
haven1433
068695beaf adjust readable script reference 2023-08-18 20:53:57 -05:00
haven1433
9fbd269958 Update readable scriptReference
* Include example usage for commands, created using random options (fixed seed)
* Include example usage of specials, using special2 with the most common var based on usage in whatever tabs are loaded.
* Use collapsible sections for details of both script commands and specials, so it's easier to browse.
2023-08-18 20:46:17 -05:00
haven1433
1b6ee6d639 specials documentation update 2023-08-18 20:42:43 -05:00
haven1433
067bdb0883 setfarbyte bugfix 2023-08-18 20:42:21 -05:00
haven1433
e3b1dde092 formatting fix 2023-08-18 20:42:03 -05:00
haven1433
cc66577c01 implement autocomplete for script commands
when typing a script command, when you press space, it'll autocomplete to the 'best' match. So if you forget a period or capital letter, it'll still work the way you expect.
2023-08-16 22:25:27 -05:00
haven1433
924e7008ce move sprites.elevation table higher in the tool to put it next to coordinates.front 2023-08-15 20:40:18 -05:00
haven1433
857d6f115f add offset pointers for trainer stats
there are pointers directly to the trainer names
there's a pointer directly to the trainer items
2023-08-14 22:43:54 -05:00
haven1433
6af14ce89b update script reference 2023-08-13 23:39:46 -05:00
haven1433
2a57fb4c28 pokemart data needs to be 4-byte aligned
When creating pokemart data using <auto>, make sure the resulting data is 4-byte aligned.
2023-08-13 23:16:49 -05:00
haven1433
b8aa9ee781 smarter line splitting during scripts 2023-08-13 22:28:56 -05:00
haven1433
446f9b4502 only allow msgbox.instant.* macros for Emerald (relies on preparemsg3) 2023-08-13 22:12:14 -05:00
haven1433
d32c0c2e1d count empty lines when adding error squiggles 2023-08-13 11:43:42 -05:00
haven1433
1a8f2732e2 Update NoNamespaceHasMoreThanNineElements test / names
* Check all namespaces, not just final namespaces.
* Allow 16 elements in the top-level namespaces, and 9 in lower levels.
* Include some exemptions for categories that are already too large, but would be brittle to fix.
* Rename tables/images to get things back under the limit.
* Upgrade tests to provide better failure information
2023-08-11 20:26:50 -05:00
haven1433
83dbe06e12 allow elevation to be 0 through 10 instead of 0 through 9 2023-08-10 22:43:07 -05:00
haven1433
8dad38be4a fix nested table format code
* look for matching braces
* expect whitespace
* add sanity checks to `tpt` format
* add formatting for pokemon teams
2023-08-10 21:11:40 -05:00
ShinyTillDawn
42147c9802
Added the THUMB configuration for scrolling MCs. (#187)
Special Thanks to Axcellerator for providing the information.

This is for Emerald only as only Emerald has scrolling multichoices without 3rd-party implementations.
2023-08-09 21:17:37 -05:00
ShinyTillDawn
bb97eea2b3
Added some Battle Tent data. (#186)
* Added the table at Emerald's address 5DE02C.

Added the list of Pokémon available from the Slateport Battle Tent.

The formatting is the way it is presumably due to a bug that thinks that putting a space after a nested table field invalidates the entire table format. It may change.

* Added the corresponding trainers table.

Same formatting deal as the preceding commit.

The `pokemon<>` field should be `pokemon<[pokemon:data.pokemon.names]!FFFF>`, but HMA does not allow that.

* Added the corresponding data for Verdanturf's tent

* Added the corresponding data for Fallarbor's tent.
2023-08-09 21:17:10 -05:00
agsmgmaster64
01fc86e263
added macros and lists to battle scripts to make battle scripting much easier (#180)
* tweaked some battle script commands

tweaked some battle script commands to allow reading pointers for those that support it

* Implemented macros and lists for battle scripts

Implemented many macros from the decomps along with many new lists relevant to battle scripting

* Implemented a list for stat animation

Implemented a list for playstatchangeanimation which shows which stats are displayed exactly

* Implemented HMA-consistent macros

Implemented HMA-consistent macros alongside the decomp macros per haven's request
2023-08-09 21:16:41 -05:00
ShinyTillDawn
605b4bd1c9
Multiple things (#184)
- Added the animation bg. table anchor reference for Emerald.
- Added the addresses that contain pointers to specific animation bgs. for Emerald, as well.
- Added the table formats & their meanings of \`uct\` and \`ucm` into the file, as well.
2023-08-02 23:40:31 -05:00
ShinyTillDawn
610be56f0b
Commands subdirectory (#181)
* scripts.battle.thumb→scripts.commands.battlescript

* Made "scripts.commands.battle" encompass a lot.

I'm trying to make sure that while restructuring the `scripts` subdirectory so that commands are in one place, I don't radically change the preexisting naming schemes.

* scripts.callstd → scripts.commands.events.callstd

* Multiple renames

scripts.specials.thumb → +scripts.commands.events.specials

Put "buffercommands" underneath "commands". Same with events onstep & both "weather" subdirectories.

* scripts.events.thumb→scripts.commands.events.thumb

* Moved the animation script commands table.
2023-08-02 23:35:40 -05:00
ShinyTillDawn
5f1123a230
Added the "scripts.battle.badge.obey" category. (#178)
* Added the "scripts.battle.badge.obey" category.

Credit to Axcellerator for finding these offsets.

For the life of me, I could not link the flags table to the other 4 new anchors.

Since all of these are part of a THUMB routine, nothing points to these individual anchors, so I had to put them here.

The 0badges to 6badges anchors link to each other, so that's why 3 of them do not have a 1 after their [level.] formatting.

* Fixed a typo from a merge-fix commit.

* Added obedience anchors for FireRed/LeafGreen 1.0.

I tested these, and they seem to work and load correctly.

* Added obedience anchors for FireRed/LeafGreen 1.1.

* Added obedience anchors for Ruby & Sapphire.

I tested it, and these 5 additions work universally for AXVE0, AXVE1, AXPE0, and AXPE1.
2023-08-02 23:23:49 -05:00
ShinyTillDawn
217b9e9a24
Intro Music Enumeration (#185)
* Added the encounter songs [[List]].

Different trainers in FRLG use different numbers for their intro music field, so I decided to put their numbers after the words "boy," "girl," and "rocket" to keep track.

* Mentioned the [[List]] in the trainer table.
2023-08-02 23:21:45 -05:00
haven1433
db232c9675 Improve hover help logic 2023-08-02 23:11:00 -05:00
haven1433
2db6f890e9 update fadescreen 2023-08-02 23:10:35 -05:00
haven1433
b6cfcb3577 hide filler arguments 2023-07-31 23:03:57 -05:00
haven1433
0914efdb62 improve matching algorithm
instead of just preferring to match the lowest possible ID that counts as a partial match, add some extra criteria to make it act closer to how people expect.
* prefer entries where no letters are skipped
* prefer entries where the start of the partial matches the start of the full
2023-07-31 22:35:22 -05:00
haven1433
23a891a5eb improve documentation for msgbox.npc 2023-07-31 20:52:32 -05:00
haven1433
788d343357 text warnings get orange underline, not red underline (warning, not error) 2023-07-31 20:48:08 -05:00
haven1433
a958748824 script improvements: double-click highlight and tips
double-click on a command should highlight the entire command, even if it's a macro with `.`s.
When selecting a command, show the help tip for it.
2023-07-31 20:40:52 -05:00
haven1433
6bdc9e801c fixes from merge 2023-07-20 07:04:47 -05:00
haven1433
9930f21f9e Merge branch 'master' of https://github.com/haven1433/HexManiacAdvance 2023-07-20 07:00:07 -05:00
ShinyTillDawn
47e54ec278
Professor Birch's Introduction Speech Dialogues (Attempt 2) (#173)
* Brought in the changes from PR #170.

I'll need to get the anchor refs for RS & FRLG.

I also bundled the \`tse` feature request for this file.

* Fixed Emerald's addresses.

Previously, they were addresses of the strings themselves instead of anchor references.

* Nested "speeches" under "professor."

* Making progress on finding FRLG anchor refs.

There are a few more I still need to add.

* Finished the Anchor refs for FRLG.

The Ruby/Sapphire Anchor refs are being started.

* Finished the Anchor refs for Ruby & Sapphire.

I tested them, and all of the anchors show up in the Generation III games.
2023-07-20 06:49:20 -05:00
ShinyTillDawn
34ea580f12
Made "buffer1" through "buffer3" valid arguments. (#176)
"buffer1" is associated with 0 for a parameter in a command like "buffernumber." That misalignment by 1 can cause some confusion, so this change will allow the word "buffer1" to be used instead of 0 for such commands to line up with the \\ 02 text macro ([buffer1]) that would be used afterwards.
2023-07-20 06:45:56 -05:00
agsmgmaster64
56fc56265f
tweaked some battle script commands (#175)
tweaked some battle script commands to allow reading pointers for those that support it
2023-07-20 06:43:52 -05:00
haven1433
65b51641c5 Add specials to documentation. 2023-07-19 22:33:26 -05:00
haven1433
c76acd2536 improve comments 2023-07-19 21:06:04 -05:00
haven1433
435a36a535 Add human-readable documentation for scripts 2023-07-14 06:44:03 -05:00
haven1433
c7485c5275 bugfixes from testing
* pressing escape should close the script tip
* fix automatic inclusion of <auto> behavior
* Fix possible crash when looking for closing } when there isn't one
* Only update TextEditor layers if they've changed (performance)
* creating a new event script should include lock/faceplayer/release
* adjust focus when switching tabs (close open tips)
* only try to access list coments if the list isn't null
2023-07-12 21:32:44 -05:00
haven1433
1fc1566d4c add comment 2023-07-09 20:23:47 -05:00
haven1433
cce2153c2b fix broken macro-arg-order conversion 2023-07-08 22:22:01 -05:00
haven1433
46f57a0a97 add error underlines for scripts 2023-07-08 00:05:34 -05:00
haven1433
daea25bd4e make it possible to add comments to list elements
right now the comments are only shown by the script editor. But they could be added to other things too, like maybe wild pokemon rates?
2023-07-07 08:58:16 -05:00
haven1433
f14b44eb5e decompiled scripts now have sections appearing in address order
instead of labeling sections based on what address calls them, label section based on what order they appear in memory.
2023-07-01 21:40:59 -05:00
haven1433
419f83a6fb allow 2-argument sub in thumb
both `sub rd, #` and `sub rd, rn` are now supported
2023-06-30 08:05:33 -05:00
haven1433
e095bace1e beef up insert missing closers
make the caret adjust correctly
insert a blank line between {}
move {} to newlines
2023-06-30 08:04:14 -05:00
haven1433
6fc0f568dc Basic implementation for flag/vars show&tell
Currently hidden
2023-06-29 19:31:08 -05:00
haven1433
348e1e5b96 don't combine scripts if an anchor has multiple pointers 2023-06-26 23:08:27 -05:00