Scripting Question
Started by
Professor Bedwetter
, Dec 09 2011 03:32 AM
7 replies to this topic
#1
Posted 09 December 2011 - 03:32 AM
Ey Yo, PureZC. I Got A little Quickedy Question about Tha Scripting. Two Actualyy, MEBBE 3
But seriously, is it possible to have multiple subscreens with scripting, because if it isnt is it possible to script an NPC to keep track of a specific thing (I want to have these Journal Entries one finds along the way in m quest, and I want one to be able to go back and read them)
Also, do I use Joe's NPC script or is it broken as per HellA Mad Updates Yo?
But seriously, is it possible to have multiple subscreens with scripting, because if it isnt is it possible to script an NPC to keep track of a specific thing (I want to have these Journal Entries one finds along the way in m quest, and I want one to be able to go back and read them)
Also, do I use Joe's NPC script or is it broken as per HellA Mad Updates Yo?
#2
Posted 09 December 2011 - 08:35 AM
"Is It Possible" questions always seriously bug me in this forum. If it's ZScript, the answer is always yes.
Though with what you're trying to accomplish, I don't think multiple subscreens would be the way to do it. Really it sounds like you'd be just fine using a classic "cutscene sequence", with scripts to assist. A hub screen to select an entry with a cursor and press A to read it is quite doable, and for the entries themselves, each page could be on its own screen, and the arrow buttons or the A or B button could scroll back and forth through pages (screens), ending by jumping back to the hub screen (and then that could be exited with the B button to send you back to the library or wherever you were reading from).
Truth be told I was (and still am) debating on doing this, and having a Beastiary for my Quest, since every enemy in the game will be scripted with some pretty dynamic behaviors, and I thought maybe I could give players some ways to get hints on fighting them, as well as appeal to "completionist gamers" who like to try and get all the collectables. If I were to do this, the method I described would basically be how I do it.
Though with what you're trying to accomplish, I don't think multiple subscreens would be the way to do it. Really it sounds like you'd be just fine using a classic "cutscene sequence", with scripts to assist. A hub screen to select an entry with a cursor and press A to read it is quite doable, and for the entries themselves, each page could be on its own screen, and the arrow buttons or the A or B button could scroll back and forth through pages (screens), ending by jumping back to the hub screen (and then that could be exited with the B button to send you back to the library or wherever you were reading from).
Truth be told I was (and still am) debating on doing this, and having a Beastiary for my Quest, since every enemy in the game will be scripted with some pretty dynamic behaviors, and I thought maybe I could give players some ways to get hints on fighting them, as well as appeal to "completionist gamers" who like to try and get all the collectables. If I were to do this, the method I described would basically be how I do it.
#3
Posted 09 December 2011 - 08:49 AM
Yes, it is possible with varying levels of effectiveness...I'll be damned if I know how to do it though.
"Is It Possible" questions always seriously bug me in this forum. If it's ZScript, the answer is always yes.
Ocarina of Time remade in ZC, 3D and everything?
"Is It Possible" questions always seriously bug me in this forum. If it's ZScript, the answer is always yes.
Edited by Pokemonmaster64, 09 December 2011 - 08:49 AM.
#4
Posted 09 December 2011 - 09:09 AM
Yeah, Schwa's answer is rather... wrong. A lot is possible with ZScript. Really, a lot is. However, you have to stick with 2D. But, even then, while almost everything 2D is definitely possible, it's not necessarily very reasonable, and you'd have to jump through so many hoops to get it done with ZScript, it's just not worth it.
My main beef with "Is it possible" questions in this forum is because a lot of times from what I've seen, these dive to "Oh, it's possible? Well then can someone do it for me?" or "Oh, it's possible? Well teach me how to do it."
As far as this particular question, it's certainly possible to have a second subscreen, but there's a lot of stuff you have to bring into play.
1. You need to freeze Link and freeze enemies. While the subscreen is up.
2. You'll need to make sure you freeze all other scripts (particularly FFC scripts)
3. You need to freeze and keep track of every weapon on the screen. Or else you might get problems with weapons either continuing while the subscreen is up, which under most scenarios means that they'll go off the screen, and you'll come back to no weapons.
3 is the most difficult part, still, it's possible to just stash the speed of the weapons into Misc[0] and set the speed to 0. Then, when the subscreen is over, simply push the Misc[0] value into the speed. A piece of cake, really.
So, it's definitely doable, but you'd have to put a bit of time into it, and that's before you get to things such as the actual menu itself. In all honesty, it would just be easier to do everything with an NPC in a more controlled screen. Your question about the NPC asking it is definitely possible.
As far as Joe's script, it should still work. I haven't tested it myself, but I can't imagine anything in it being broken.
My main beef with "Is it possible" questions in this forum is because a lot of times from what I've seen, these dive to "Oh, it's possible? Well then can someone do it for me?" or "Oh, it's possible? Well teach me how to do it."
As far as this particular question, it's certainly possible to have a second subscreen, but there's a lot of stuff you have to bring into play.
1. You need to freeze Link and freeze enemies. While the subscreen is up.
2. You'll need to make sure you freeze all other scripts (particularly FFC scripts)
3. You need to freeze and keep track of every weapon on the screen. Or else you might get problems with weapons either continuing while the subscreen is up, which under most scenarios means that they'll go off the screen, and you'll come back to no weapons.
3 is the most difficult part, still, it's possible to just stash the speed of the weapons into Misc[0] and set the speed to 0. Then, when the subscreen is over, simply push the Misc[0] value into the speed. A piece of cake, really.
So, it's definitely doable, but you'd have to put a bit of time into it, and that's before you get to things such as the actual menu itself. In all honesty, it would just be easier to do everything with an NPC in a more controlled screen. Your question about the NPC asking it is definitely possible.
As far as Joe's script, it should still work. I haven't tested it myself, but I can't imagine anything in it being broken.
#5
Posted 09 December 2011 - 09:31 AM
3 is the most difficult part, still, it's possible to just stash the speed of the weapons into Misc[0] and set the speed to 0. Then, when the subscreen is over, simply push the Misc[0] value into the speed. A piece of cake, really.
Or you could use a custom array with enough space for every weapon onscreen. If for some reason you're using all 16 misc values somewhere.
Edited by Pokemonmaster64, 09 December 2011 - 09:31 AM.
#6
Posted 09 December 2011 - 05:57 PM
"Is It Possible" questions always seriously bug me in this forum. If it's ZScript, the answer is always yes.
I have literally never ever used scripts ever. I've never even opened up the script thing in ZQ. This is the first time I have actually thought about really using scripts.
My main beef with "Is it possible" questions in this forum is because a lot of times from what I've seen, these dive to "Oh, it's possible? Well then can someone do it for me?" or "Oh, it's possible? Well teach me how to do it."
Can someone do it for me/teach me how to do it
#8
Posted 15 December 2011 - 05:33 PM
Can someone do it for me/teach me how to do it
Yes, Saffith can. Read his tutorials, then practice a little, then re-read them, then practice a little more. They're Stickied in the Scripting Practice forums on three different threads, you can't possibly miss them.
Back where I come from in the Rom Hacking scene, our #1 rule was "do the work yourself" and our #2 rule was "share what you find". If you're a human being, with a brain, you're completely capable of being autonomous with anything, even if some people naturally understand it moreso than other people. Someone with Dyslexia can still learn to read as good as someone without it, even if it takes them more time and effort, amirite?
So, there is absolutely zero excuses for laziness. We're all happy to help you learn, but you better be willing to put in the effort. Give and take, brother, that's how we indie game designers do things.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users