Post new topic    
Page «  1, 2, 3, 4
Slime Knight
Send private message
 
 PostTue Jul 10, 2012 6:42 am
Send private message Reply with quote
OK, this has been vexing me for hours. When I open the menu, the quick status opens OK, but the top two heroboxes don't appear (as if there's no one in the slot) and the 3rd one shows its generic data (as if it wasn't written to at all).

Beyond that, if you're not too quick releasing the ESC key to close the menu, the quick status just pops back up!

Here's my current code:
http://pastebin.com/mfzGTF6w
Liquid Metal King Slime
Send private message
 
 PostTue Jul 10, 2012 2:12 pm
Send private message Reply with quote
This part looks wrong:

Code:

for(i, -1, 2) do, begin
                if(hero by slot(i) <> -1) then, begin


If you want to loop through each party slot, you should do:

Code:

for(i, 0, 3) do, begin


As for the rest of it, it is hard for me to know what is going on without knowing the exact layout of your slice collection.

Have you looked at the "lookup slice" command? You can assign lookup codes to specific slices, and then get a handle to them without having to care about how many parents they have, or which order they are in relative to their siblings.
Slime Knight
Send private message
 
 PostTue Jul 10, 2012 4:18 pm
Send private message Reply with quote
Here's the files if you want to take a look, James: https://docs.google.com/folder/d/0B5vKFsvtp2V6U2t0YUhiNkRvOGs/edit
Slime Knight
Send private message
 
 PostWed Jul 11, 2012 8:23 pm
Send private message Reply with quote
Bob the Hamster wrote:
This part looks wrong:

Code:

for(i, -1, 2) do, begin
                if(hero by slot(i) <> -1) then, begin


If you want to loop through each party slot, you should do:

Code:

for(i, 0, 3) do, begin


As for the rest of it, it is hard for me to know what is going on without knowing the exact layout of your slice collection.

Have you looked at the "lookup slice" command? You can assign lookup codes to specific slices, and then get a handle to them without having to care about how many parents they have, or which order they are in relative to their siblings.


So would I just need a lookup code for the first hero box?
Liquid Metal King Slime
Send private message
 
 PostWed Jul 11, 2012 8:42 pm
Send private message Reply with quote
Ichiro wrote:
So would I just need a lookup code for the first hero box?


First you would want a separate lookup code for each hero's information box.

Then you would have a single lookup code that gets re-used for each portrait, a single lookup code that gets re-used for each Level XX text, a single code that gets re-used for each hp meter rectangle, and so-on.

Does that make any sense?
Slime Knight
Send private message
 
 PostThu Jul 12, 2012 1:49 am
Send private message Reply with quote
I think so.
Slime Knight
Send private message
 
 PostThu Jul 12, 2012 2:17 am
Send private message Reply with quote
Did the script changes and the lookup codes, and the same problems occur. Is there a way to check to see if the main menu is open instead of listening to ESC? That seems to be where my "stays open after menu closes" problem stems from.

Updated the archive on Google Drive, and here's the new HSS file: http://pastebin.com/zSu4c4ii
Metal King Slime
Send private message
 
 PostThu Jul 12, 2012 8:25 am
Send private message Reply with quote
The problem is "key is pressed". What you want to write instead is
Code:

if (keyval(key: esc) >> 1) then (
  # menu...


When you press ESC, this will only return true for one tick, and then return false until key repeat kicks in. I've been meaning to add a friendly wrapper around it for years...
Slime Knight
Send private message
 
 PostThu Jul 12, 2012 8:33 pm
Send private message Reply with quote
Did some edits and now it works poifectly! Had to eliminate the loop and do things in kind of a roundabout fashion, but it's all good now.
Slime Knight
Send private message
 
 PostSat Jul 28, 2012 4:23 am
Send private message Reply with quote
I'm so lost... I haven't made any progress for three weeks.
Metal King Slime
Send private message
 
 PostSat Jul 28, 2012 8:51 am
Send private message Reply with quote
Anything we can do to help? What exactly are you lost in? Scripting, graphics-ing, music-ing, etc...?
Being from the third world, I reserve the right to speak in the third person.

Using Editor version wip 20170527 gfx_sdl+fb music_sdl
Slime Knight
Send private message
 
 PostMon Jul 30, 2012 3:33 am
Send private message Reply with quote
It's mostly the graphics work that I'm struggling with. I have the plot all figured out, and the scripting I believe I can handle.
Display posts from previous:
Page «  1, 2, 3, 4