level_script_parse description (#340)

enhanced level_script_parse description
This commit is contained in:
PeachyPeach 2023-04-10 12:25:26 +02:00 committed by GitHub
parent 2c8488e879
commit 318807d3c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 14 deletions

View file

@ -222,8 +222,12 @@ function djui_hud_render_texture_tile_interpolated(texInfo, prevX, prevY, prevSc
end
--- @param levelNum number
--- @param func fun(areaNum:number, bhv:table)
--- @param func fun(areaIndex:number, bhvData:table, macroBhvIds:table, macroBhvArgs:table)
--- @return nil
--- When `func` is called, arguments are filled depending on the level command:
--- - `AREA` command: only `areaIndex` is filled. It's a number.
--- - `OBJECT` command: only `bhvData` is filled. `bhvData` is a table with two fields: `behavior` and `behaviorArg`.
--- - `MACRO` command: only `macroBhvIds` and `macroBhvArgs` are filled. `macrobhvIds` is a list of behavior ids. `macroBhvArgs` is a list of behavior params. Both lists have the same size and start at index 0.
function level_script_parse(levelNum, func)
-- ...
end

View file

@ -2195,27 +2195,46 @@ possibility.\
Good luck and\
frustration resistance.")
-- smlua_text_utils_dialog_replace(DIALOG_063,1,5,30,200, "It's really a shame but\
-- this level was way too\
-- big for the level importer\
-- so I had to split it\
-- into two parts.\
-- That means I CAN'T place\
-- red coins in the whole\
-- level. Sad, isn't it?\
-- I know that you would\
-- enjoy collecting 30\
-- red coins, right?\
-- Well then, instead,\
-- the red coins are all\
-- beyond the cannon.\
-- And since they are so\
-- close together\
-- I won't tell you how\
-- many there are.\
-- \
-- (Well, honestly, I forgot\
-- how many I placed.)")
smlua_text_utils_dialog_replace(DIALOG_063,1,5,30,200, "It's really a shame but\
this level was way too\
big for the level importer\
so I had to split it\
into two parts.\
That means I CAN'T place\
Nah! Just kidding!\
You're no longer playing\
a Nintendo 64 rom-hack.\
It's the pc port we're\
talking about!\
That means I CAN place\
red coins in the whole\
level. Sad, isn't it?\
level. Great, isn't it?\
I know that you would\
enjoy collecting 30\
red coins, right?\
Well then, instead,\
the red coins are all\
beyond the cannon.\
And since they are so\
close together\
I won't tell you how\
many there are.\
\
(Well, honestly, I forgot\
how many I placed.)")
red coins. So, after 9\
years, it's finally\
possible. Have fun!")
smlua_text_utils_dialog_replace(DIALOG_064,1,5,30,200, "You should already know\
the concept of this\