Scripting
Can anyone teach me how to script. I need to learn these things in order of importance.
1) How to make one thing happen after one thing is done
2) How to do the script of Dink
3) How to make enemies move
4) How to make enemies talk
5) How to make other people move
6) How to make other people talk
I would perfer if people only responded if you have made at least 3 D-Mods (In perticular: ReDink1, SimonK, Jveenhof, And whoever made PotA (Prophecy of the Ancients))
1) How to make one thing happen after one thing is done
2) How to do the script of Dink
3) How to make enemies move
4) How to make enemies talk
5) How to make other people move
6) How to make other people talk
I would perfer if people only responded if you have made at least 3 D-Mods (In perticular: ReDink1, SimonK, Jveenhof, And whoever made PotA (Prophecy of the Ancients))
I'm sorry that I can't really help you, but just so you know:
1. It's "red ink 1", not "re dink 1"
2. Jveenhof and Gary Hertel (PotA dude) only show up here when the sky's green and the cattle are dancing, so don't count on them replying.
1. It's "red ink 1", not "re dink 1"
2. Jveenhof and Gary Hertel (PotA dude) only show up here when the sky's green and the cattle are dancing, so don't count on them replying.
June 2nd 2005, 07:10 PM

SimonK


1) use a global variable to track what happens... let's say &quest... and let this equal 0 at the start of the game. So when Dink accepts the task given to him by the mighty wizard you would change &quest from 0 to 1. When he completes the first part (say find the golden duck) then you would change &quest from 1 to 2. Use "if" statements to check what the value of &quest is to see what characters should do or say...
2)Not sure what you're after here. Usually you script everything else and have Dink's responses etc in those scripts.
3) Enemies need a brain, walk, attack (for brain 9), strength, defense, hitpoints, speed and a few other things to make work.
4) To make a sprite talk, use say() or say_stop()
5) Other people move is similar to enemies except different brains, like 16 can be used, and then don't need an attack
6) see 4)
If you haven't already done so - read Dink Goes Boating, Creating Enemy Sprites and other stuff in the development section. Have a look into some source files to see how others scripted things - that's the best way to learn.
2)Not sure what you're after here. Usually you script everything else and have Dink's responses etc in those scripts.
3) Enemies need a brain, walk, attack (for brain 9), strength, defense, hitpoints, speed and a few other things to make work.
4) To make a sprite talk, use say() or say_stop()
5) Other people move is similar to enemies except different brains, like 16 can be used, and then don't need an attack
6) see 4)
If you haven't already done so - read Dink Goes Boating, Creating Enemy Sprites and other stuff in the development section. Have a look into some source files to see how others scripted things - that's the best way to learn.
That's weird it logged me out, and now I'm back in... and I mangaged to deleted the link to:
Rudiments of Scripting which is a great starting point.
And then use DinkC Reference when you get stuck - either text or WinHelp version
Rudiments of Scripting which is a great starting point.
And then use DinkC Reference when you get stuck - either text or WinHelp version
Ironically, "Rudiments of Scripting" is the only one of the three files that you haven't released. Selective deletion perhaps?
yeah probably... but I honestly had the url cut and pasted... but something weird happened when I hit submit, I got logged out... and that bit got deleted...
I was going to make it 3 out of 4 by putting in DinkC Reference WinHelp version... and even thought of links to PQ source... but well, even I have to draw a line somewheres.
I was going to make it 3 out of 4 by putting in DinkC Reference WinHelp version... and even thought of links to PQ source... but well, even I have to draw a line somewheres.

I'll reveal the secret technique I used to learn how to script:
Stare at the existing scripts until they start to make sense. Change things, see what happens. Look in the DinkC Reference if you're confused. If that doesn't help, stare some more.
Granted, I've learned a lot since then, but that gave me enough ground to create 'Lost in Dink'.
Stare at the existing scripts until they start to make sense. Change things, see what happens. Look in the DinkC Reference if you're confused. If that doesn't help, stare some more.
Granted, I've learned a lot since then, but that gave me enough ground to create 'Lost in Dink'.
And whatever you do, don't suddenly assume that it is a big block of code that no-one in the universe can understand.
Thank you for your help. Mostly SimonK. I have figured some stuff out like how to set the attack, defence, magic, and gold. but that is about it so far in scripting. So thanks again.