I'm trying to set up a feature in House Heroes for people that are new to the show and wouldn't want things ruined for them. So, like with the Bio section, I'm making it so you can't see certain extra characters until you've watched a certain episode. I have all of my tags in place and stuff, but the autosaving is messing with me...
I did saving in Mr.Triangle's Maze and it worked fine really. But that's because when you ran the load in slot (1) script or whatever it's called script, it takes you to the last level you were at. With Heroes, I need to make it so when you load you go back to the main menu, and then have the menu script play so that the pressing numbers for shows works.
Anyone have an easy idea on how to get this to work? Everytime I think I get it, it doesn't work just right... I'll play with it a little more and see if I can rig SOMETHING. Cause I think for the show to be a little more accessible to new comers this needs to work, heh.
I just answered this over IM, but I'll copy the answer here in case anyone could use it.
Save script:
Put this at the beginning of your newgame script:
Change all instances of "20, 29" to whatever your range of tags is.
Mega Tact v1.1
Super Penguin Chef
Wizard Blocks
Save script:
Code:
script, save data, begin
variable(i)
for(i, 20, 29) do ( # for tags 20-29
if (check tag(i)) then (write global(i, 1))
)
export globals(5, 20, 29)
end
variable(i)
for(i, 20, 29) do ( # for tags 20-29
if (check tag(i)) then (write global(i, 1))
)
export globals(5, 20, 29)
end
Put this at the beginning of your newgame script:
Code:
variable(i)
import globals(5, 20, 29)
for(i, 20, 29) do (
if (read global(i)) then (set tag(i, on))
)
import globals(5, 20, 29)
for(i, 20, 29) do (
if (read global(i)) then (set tag(i, on))
)
Change all instances of "20, 29" to whatever your range of tags is.
Mega Tact v1.1
Super Penguin Chef
Wizard Blocks



