Commit Graph

45 Commits

Author SHA1 Message Date
haven1433
9205f7b360 give.item is better than take.item
* take.item may be confusing, making the user think an item is being removed
* give.item is closer to the XSE name
2023-02-01 21:35:10 -06:00
haven1433
649a4f5f6d replace give.item with take.item and npc.item
npc's also want to give items, but without making the NPC disappear.
2023-02-01 21:26:38 -06:00
haven1433
44d841ad6c checktrainerflag / cleartrainerflag argument update 2023-01-30 23:09:23 -06:00
haven1433
6ac5c89dfb add if.flagset macro 2023-01-24 20:16:37 -06:00
haven1433
1d4749b41f misc feature updates from pins
* add anchor for misc animations
* flags should be seen as hex in the script editor
* various table updates
* update text in empty block selection case
2023-01-15 23:03:48 -06:00
haven1433
3e16f8ee20 add stream content recursively for scripts
This should make <auto> able to work even when there are scripts that point to scripts, as the content will appear after the last attached script.
2022-12-20 22:34:26 -06:00
haven1433
6874768ffc additional macros
support for out-of-order macro commands
also allows for arguments to be applied multiple times
2022-12-15 08:06:26 -06:00
haven1433
0285808eb0 bufferPokemon species should allow pokemon names as input 2022-12-06 21:40:08 -06:00
haven1433
7d8ae74a00 script bugfixes
add enum types for fanfare / bufferitem
allow script constants to contain underscores
allow autocomplete for constants that are the last argument
allow 'find usages -> scripts' to find usages from macros (and fix crash)
2022-12-04 22:38:04 -06:00
haven1433
4a5f351d6f final fixes for 0.5
givePokemon, use item constants
fix crashes/errors in hover-tip logic for trainerbattle commands
* tested that macros and array args still work right
2022-12-03 22:50:33 -06:00
haven1433
bf1d30fe7d more macros
also clear constant cache when refreshing ViewPort
2022-12-02 23:28:56 -06:00
haven1433
d6d6a6c54f initial macro support 2022-12-02 22:41:39 -06:00
haven1433
a44841290f first pass at updating script pointer logic
instead of the script line itself knowing that it points to something,
pull it down to the argument level, so that each argument knows
if it points to something.

This will allow a single script line to point to multiple things (like trainers pointing to multiple text or scripts)
2022-12-02 08:38:21 -06:00
haven1433
a7b1734404 add data.items.stats format for item-related script commands 2022-11-28 20:22:55 -06:00
haven1433
4c2089196b usability feedback
label stuff
center new connections
berry shortcuts
fix goto shortcuts
2022-11-24 11:24:56 -06:00
haven1433
e285eaaf7b add 'scripts' option to 'show uses' button
Unlike the other ones, this one doesn't pre-calculate, and may end up being empty when you click on it.
2022-11-23 08:26:46 -06:00
haven1433
7d0022d6a3 template progress 2022-11-08 22:29:37 -06:00
haven1433
9fcbb6a89d remove expired warning 2022-11-02 00:04:15 -05:00
haven1433
10579058b3 add song names for playsong command 2022-10-29 22:52:58 -05:00
haven1433
7a6ce76b23 serialize null list items as numbers
also fix width on script tooltip
2022-09-22 07:36:26 -05:00
Haven1433
b25a480f52 wild editing
also improve goto menu
* hide shortcuts when using the buttons, to make more room
* remember text when switching tabs
2022-09-15 19:45:11 -05:00
Haven1433
d24e150eff add names for specials in FR/LG 2022-09-04 22:21:34 -05:00
Haven1433
be3b053d12 Merge branch 'master' of https://github.com/haven1433/HexManiacAdvance 2022-09-04 21:26:06 -05:00
TheDiamondMiner
7f86f06817
Updated description for setmaptile command (#97)
* Added list varmacros on the defaut .toml and updates script reference as per shiny's request

* changed description

* Made your changes
2022-09-04 19:01:59 -05:00
Haven1433
ed5a9eb47c fix D5 in scripts for R/S/E
R/S don't seem to have this commmand. Emerald does. In FR it's a nop.
2022-09-03 20:12:48 -05:00
Haven1433
587dada550 update script commands 2022-09-01 07:24:44 -05:00
Haven1433
810f8c7a65 ScriptParser needs to know which game it is.
The 'showmoney' and 'updatemoney' commands are different from game to game. It has 2 parameters in R/S, but 3 parameters in FR/LG/E.

Update the scriptReference to specify that these commands have different versions for the different games.

Update ScriptParser to be able to read this new addition to the script reference format.

Add tests to show that the new commands are read correctly between games.
2022-08-25 06:51:51 -05:00
Haven1433
de7554f307 fix script reference typo 2022-05-27 23:33:49 -05:00
TheDiamondMiner
53446ff917
Added gender-ratio values for presets & improved a name in toml (#88)
* added 10 values for gender ratio presets.

* Fixed an error made by me
2022-05-14 15:43:50 -05:00
Haven1433
cd904b27f5 XSE was wrong, command 0x7B is for setting moves, not setting pp 2022-03-05 22:46:13 -06:00
Haven1433
a25a2e0ce6 Update playsong parameters
The second parameter makes the song play once or continuously
2022-02-08 07:27:16 -06:00
Benjamin Popp
26a417e30c fix bufferpartypokemon argument bug 2021-08-02 10:30:15 -05:00
Benjamin Popp
7d4ad93871 fix comments/arg names 2021-07-31 00:26:20 -05:00
Benjamin Popp
c5f909d274 Fix script command format bug 2021-02-27 22:45:06 -06:00
Benjamin Popp
e63f27209e Fix typos 2020-11-28 22:53:14 -06:00
Benjamin Popp
128c075676 trainerbattle 03 should have only 3 args after the 03 2020-09-26 22:53:16 -05:00
Benjamin Popp
a83e380991 Refactor 2020-09-11 07:08:06 -05:00
Benjamin Popp
7f726de0d2 Improve script parsing 2020-08-13 22:35:20 -05:00
Benjamin Popp
cd34638396 Rename pokestats, evolutions, items, and movedata 2020-07-13 22:32:09 -05:00
Benjamin Popp
23bfa77890 rename pokenames -> data.pokemon.names 2020-07-13 07:47:10 -05:00
Benjamin Popp
6dc1c8b8fe general improvements 2020-05-22 20:38:58 -05:00
Benjamin Popp
862cade012 add more enums for scripting 2020-05-12 08:23:47 -05:00
Benjamin Popp
077557a5b8 Scripting bugfixes
* special and special2 are different commands
* showpokepic should know it uses pokenames
* don't show tooltip during content curlies
2020-04-28 08:29:39 -05:00
Benjamin Popp
85422d06e1 Make it possible to edit scripts inline
Also add support for operator decoding for if statements
Inform users on repoint
2020-04-20 14:56:28 -05:00
Benjamin Popp
7f2655655e Add Scripting to Code Tool
Being able to dissassemble ARM code is only half of the code that hackers want to see. They also need to be able to read/write pokescript, often done via tools like XSE. Eventually I can be more intelligent with scripts, but for now a simple decoder is plenty.
2019-07-17 22:02:15 -05:00