Questions
Ok, I have a few questions and I can't figure out the answer to them. I would have just put this on the .C post I made but I decided I would just make a new post to avoid going off topic as much.
1.How do add a status bar? I can select the fists and one will pop up, but it will not stay and I want one to be there when the game begins.
2.How can I make Dink's health go down, and have Dink die when it runs out? I made that happen once and that was all.
3.I can give Dink an item, like, a fireball, but the fireball doesn't shoot out, it's just an icon in my inventory.
4.How do I make a person walk around? (Probably a stupid question)
5. I can kill monsters and gain experience, but can't go up a level.
6. With WinDinkEdit, how do I attach and create a script to a screen?
That's it for now. I'm a beginner and just learned how to script. I learned what the monster scripts were today. Thanks.
1.How do add a status bar? I can select the fists and one will pop up, but it will not stay and I want one to be there when the game begins.
2.How can I make Dink's health go down, and have Dink die when it runs out? I made that happen once and that was all.
3.I can give Dink an item, like, a fireball, but the fireball doesn't shoot out, it's just an icon in my inventory.
4.How do I make a person walk around? (Probably a stupid question)
5. I can kill monsters and gain experience, but can't go up a level.
6. With WinDinkEdit, how do I attach and create a script to a screen?
That's it for now. I'm a beginner and just learned how to script. I learned what the monster scripts were today. Thanks.
I'm also a beginner but I can answer 4 and 6 for you:
For a person to walk it needs a brain (16 for people I think) and don't forget to set the speed. The same thing for any moving sprite but you don't need the speed for something like fire. You may also need the sequence number, I forget.
Right click anywhere on the screen, select properties and type the name of the script you want to attach in the box.
Hope it helps!
For a person to walk it needs a brain (16 for people I think) and don't forget to set the speed. The same thing for any moving sprite but you don't need the speed for something like fire. You may also need the sequence number, I forget.
Right click anywhere on the screen, select properties and type the name of the script you want to attach in the box.
Hope it helps!
Thanks. I got a person walking, and am now studying the rudiments of scripting more on the screen scripting issue.
I have a solution to the status bar problem, I can make him shoot a fireball now, he can die (usually something I wouldn't be happy about
) he can go up a level, but still, those things only happen, except with the fireball, when I load a game. If I start a game up, Dink can't die, there isn't a status bar, etc.
I have a solution to the status bar problem, I can make him shoot a fireball now, he can die (usually something I wouldn't be happy about

He should just automatically die as soon as his HP reaches 0. Go searching through the code for the main game and you'll find the answer to pretty much all your questions. If not, then look through the 'dinkc.chm' file in the 'develop' directory.
I don't know the exact details, but the trick is to:
look in your own story directory.
look for a script start-1.c.
if it's not there: copy start-1.c from the source zip (develop/source.zip)
Now you have a start-1.c, open it with your favourite editor.
On the line before kill_this_task(), add:
&update_status = 1;
draw_status();
That should take care of points 1, 2, 3 and 5.
look in your own story directory.
look for a script start-1.c.
if it's not there: copy start-1.c from the source zip (develop/source.zip)
Now you have a start-1.c, open it with your favourite editor.
On the line before kill_this_task(), add:
&update_status = 1;
draw_status();
That should take care of points 1, 2, 3 and 5.
Thanks. I'll try that soon, but I think I fixed problem 3 for good. What happened was that I didn't have any magic points so I had to fix going up a level to get a mgaic stat. lol
Uh-oh. I did that and then when I tried to to go one screen over, I was in another screen that I created.
I copied what you gave me, and pasted it right before kill_this_task(); or however it says it. That happened every time until I deleted the script from my story folder.
