Re: Scripting
September 8th 2009, 03:58 AM

MsDink


Can anyone recommend some scripting how to's/ info that will show me (i am a tad technologically challenged ) in plain speak how I go about scripting the story in my wee DMod. From looking thru others I see things like if story = 1or2 or 3 or so on then this .....
How do I do that... is it changed in Dinkc or something or just the script?
Can someone give me a synopsis of how that works so I can understand and get this dmod finished (mapping is all completed and that's all that's left to do). I have figured the basic script stuff like making things say something when hit or space is pressed, but I want to stop areas from being 'open' until a task is completed or have dink be told he has to do X before say a bolder is moved..or a screen is changed (how does THAT work!!) . There is SO much reading out there on scripting I dont know where to start or even what half of it means, any help for a noob that wants to be productive?
How do I do that... is it changed in Dinkc or something or just the script?
Can someone give me a synopsis of how that works so I can understand and get this dmod finished (mapping is all completed and that's all that's left to do). I have figured the basic script stuff like making things say something when hit or space is pressed, but I want to stop areas from being 'open' until a task is completed or have dink be told he has to do X before say a bolder is moved..or a screen is changed (how does THAT work!!) . There is SO much reading out there on scripting I dont know where to start or even what half of it means, any help for a noob that wants to be productive?
Generally quest stuff works on Global Variables. In the develop folder there is a file called dinkc.chm. There's a section in there all about them and how they work in relation to a storyline.
September 8th 2009, 06:03 AM

MsDink


Ohh nice, lotsa info there thanks (not a file extention I am used to so woulda never looked in there). Thanks !
So all the variable is, is just a script, and I just attach it to a sprite, it doesn't really specify that?
Things don't have to be done in the order I create it to be done... ie 1 2 3 4 5 someone may do it 1 4 3 2 5 and it will keep track of which ones are done and then know when all are completed?
So all the variable is, is just a script, and I just attach it to a sprite, it doesn't really specify that?
Things don't have to be done in the order I create it to be done... ie 1 2 3 4 5 someone may do it 1 4 3 2 5 and it will keep track of which ones are done and then know when all are completed?
Global Variables are numbers in memory that a store values. They usually change throughout a quest. There's a great little file called The Rudiments of Scripting which is quite nice and it tells you how to do all that. Look for it in the dev section. It goes into it all, and also has a tutorial Dmod which puts it into practice.
It's sticky for a reason

September 9th 2009, 05:54 AM

MsDink


Thanks for the advice, apprieciate it
err... Sticky?? Hmmm did you sit in something?

err... Sticky?? Hmmm did you sit in something?
Heh.
A sticky topic will stick to the top of a forum no matter how old it is.

A sticky topic will stick to the top of a forum no matter how old it is.