Author
|
Topic: Scripting help
|
DMOD Guy |
posted 06-05- 11:02 PM CT (US)
I have a sript to make dink say Who are you??? then the guy goes into a long thing and i follow the directions perfectly, and i apply the script to the guy, the i go to it in the game and dink says Who are you??? and then the dink closes down, i figure, its no big deal, have him say something different, and it still closes down, that happens everytime i try it! Help!
|
Nexis
|
posted 06-06- 06:52 AM CT (US)
Post the script here and I'm sure someone can point out the problem. |
Gerben
|
posted 06-06- 09:56 AM CT (US)
The tut1 file contains a couple of mistakes. You'd be better off looking at some of the original scripts. They are somewehere in the game directory... Just make a search for files containing *.c The files with *.d are the same, but you can't read those. |
DMOD Guy
|
posted 06-06- 05:58 PM CT (US)
Thanks |
dark wolf shadow hunter
|
posted 06-06- 10:13 PM CT (US)
source.zip contains all the original dinkc files |
DMOD Guy
|
posted 06-07- 04:42 PM CT (US)
see if you can find any problems here...void talk(void) { say("Who are you???", 1); wait(500); say(Nevermind that, you must go through the teleporter behind me, once you do there is no going back.", ¤t_sprite); } |
Gerben
|
posted 06-08- 02:51 AM CT (US)
I'm no programming king, but I guess there are two things you could try. First of all you forgot to open the quote " in the second piece of text. Say("Neverm...... Secondly I'm not too sure about this... change the ¤t_sprite bit to ¤t_sprite. This will make the whole line look like this: say("Nevermind that, you must go through the teleporter behind me, once you do there is no going back.", ¤t_sprite);
|
Gerben
|
posted 06-08- 02:54 AM CT (US)
Huh weird? If I use the and sign followed by curren, it changes to the annoying little thingy sign. Ok, you probably did that part right then, Use the quotes to open the piece of text. Also in the tut1 file, Seth forgot to use the & sign before current_sprite, small mistake but deadly. |
DMOD Guy
|
posted 06-08- 11:25 AM CT (US)
Thanks, but acctually, he didnt forget the "&". but that info will help thanks. |