Page 1 of 1

Confused about terms in scripting

Posted: March 14th, 2013, 2:04 pm
by Jordan Ashby
This is a small question but I can't find the answer on wiki. I'm in the process of learning to script NPCs and I'm getting hung up on some things. first of all, I see include "includes/valleyvillager" at the top of some default example scripts. I can't find what this is referring to. I'm sure it's a quick answer but thanks in advance. I'm also unclear about the use of ifbit so clarification on that would be appreciated.
Thanks

Re: Confused about terms in scripting

Posted: March 14th, 2013, 5:35 pm
by Hirato
it's including a script file from the game's directory, specifically one with the name "valleyvillager.cfg" from the directory named "includes"

Re: Confused about terms in scripting

Posted: March 15th, 2013, 1:20 am
by Jordan Ashby
Oh man, that's so obvious now. Thanks for answering such an eye roller for a novice. I don't know how I missed that one. Do most users who mess with the RPG mode have some kind of programming knowledge? I feel like there are basics that I don't understand need to study up a little. I know some simple c++ which is supposed to be complicated but makes sense to me much more than cubescript does so far. Some of my questions are so beginner that I don't want to post. Things about ifbit, onbit, and bracketing in the dialog construction confuse me the most, like a seemingly random [] than I know must be important. I don't want to post 1008 stupid questions that I could learn from a book if I knew the right one. Any suggestions?? This community is very friendly and helpful. Thanks guys