Confused about terms in scripting

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the when posting support requests.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Jordan Ashby
Member
Member
Posts: 16
Joined: November 15th, 2012, 1:32 pm
Name: Jordan
IRC Username: Jordy
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Confused about terms in scripting

Postby Jordan Ashby » March 14th, 2013, 2:04 pm

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

Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Confused about terms in scripting

Postby Hirato » March 14th, 2013, 5:35 pm

it's including a script file from the game's directory, specifically one with the name "valleyvillager.cfg" from the directory named "includes"
This is not a url, clicking it is pointless

Jordan Ashby
Member
Member
Posts: 16
Joined: November 15th, 2012, 1:32 pm
Name: Jordan
IRC Username: Jordy
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Confused about terms in scripting

Postby Jordan Ashby » March 15th, 2013, 1:20 am

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


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Sandbox General Support”

Who is online

Users browsing this forum: No registered users and 3 guests