Scripting Question

Started by StarLite, Mon 10/04/2006 21:25:21

Previous topic - Next topic

StarLite

Hi All:

First of all I would just like to thank eveyrone for their help with my walking nightmare. My character is walking now, he still walks like he's drunk but I can live with that.

I know I've said that I didn't want anything to do with script but I started reading the script tutorial and I think I may be able to handle it. My question is. Can I do a combo, for instance use the Interactions and just use script for things that can't be done through the Interaction like I want to have it so that when my characters talk to each other, it will be like in the game Keepsake. I'm guessing I will need script for that. I want the dialogue to be at the bottom of the screen inside a rectangle box and you hit a button when you are finished reading so it will scroll to the next text line. I think I read something about it in the manual. I'm not sure if I've asked this before and if I did please accept my apology, but once I start scripting does everything I do have to be done in script? I guess that's the real question. Thank you in advance. Take care

StarLite

Colxfile

#1
Quote from: StarLite on Mon 10/04/2006 21:25:21
I know I've said that I didn't want anything to do with script but I started reading the script tutorial and I think I may be able to handle it. My question is. Can I do a combo, for instance use the Interactions and just use script for things that can't be done through the Interaction

Yeah. Just do your thing in the interaction editor, and then add one "Run Script" Interaction and do your scripting in there. You can use both the interaction editor and script editor for all your interactivity needs :)

Quote from: StarLite on Mon 10/04/2006 21:25:21like I want to have it so that when my characters talk to each other, it will be like in the game Keepsake. I'm guessing I will need script for that. I want the dialogue to be at the bottom of the screen inside a rectangle box and you hit a button when you are finished reading so it will scroll to the next text line. I think I read something about it in the manual.

I've not played that game, myself. But, if I've got this right, then I think it would be possible to script. (Though it may be tedious) If you suggesting the following:

A: blah blah blah blah blah blah blah blah blah blah blah blah blah blah
[Push the Button to continue]
B: blah blah blah blah blah ? blah !
[Push button to go on]
A: Lol!

Then it depends on what the button is. If it's a button that appears on the screen beside the text, which you click on with the mouse to advance it, then that strikes me as being very difficult to script. (Unless someone out there can prove me wrong... :))
However, if you want a specific key on the keyboard and only that key to advance speech, then there is the global variable: game.skip_speech_specific_key which you can set to a specific keycode and only that key will advance the speech. (If you set it to zero, then any key would advance it).
O'course, one of your general settings must be set to Skip Speech: Mouse+Key / Key only.


EDIT:
Just seen a screenshot of it here and it looks like your after a button on the screen that advances the text. As far as I know this would be very tricky to implement using the scripting.
Always carry a UV marker pen with you. When you go to a shop or a friend's house, if you see something you like, put your name and postcode on it. If it gets stolen and subsequently recovered, the police will get in touch with you so that they can 'return' it.

StarLite

Thank you for your reply. The link you showed me with Keepsake is what I was trying to achieve, but it isn't impairative for the game. I just thought of trying to do something unique. Thank you once again. Take care

StarLite

SMF spam blocked by CleanTalk