mob |
Problem description: I'm still new to the world of BYOND Development, and I can't seem to solve this problem. I get 21 errors of Inconsistent Indentation and everything I do doesn't help. Any help at all is gladly accepted, thank you.
ID:139811
Aug 20 2010, 8:02 pm
|
||
Code:
Problem description: I'm still new to the world of BYOND Development, and I can't seem to solve this problem. I get 21 errors of Inconsistent Indentation and everything I do doesn't help. Any help at all is gladly accepted, thank you. | ||
#1 Aug 20 2010, 8:19 pm
|
|
Never mind, problem solved.
| |
TheDarkJak wrote:
Never mind, problem solved. Just as a reminder for the future: You can delete your own posts that have not been replied to. | |
#3 Aug 20 2010, 8:39 pm (Edited on Aug 20 2010, 10:37 pm)
|
|||
You have many inneffficencies in that, I suggest you read the guide before progressing.
Instead of using 1's and 0's for true and false statements, you should be doing checks with the !(NOT) operator, setting them to 1 or 0 only if you aren't handling it in parenthesis.
Inconsistent indentation is just a typographical error. Instead of having to set all of those variables for your clan, you can just have ONE variable which sets them all up, but still have it be simple. This is an example of how you can do this:
So as you can see, you have a lot to work on, so once again, read the guide if you truly want to become a good programmer. | |||
OrangeWeapons wrote:
That will always be true. It gets read like this:
which will always be true as JASHIN or HYUUGA by itself is a 'true' value. What you meant was
Also, the output for failing that will never run because the return statement runs first. | ||||
furthermore as an addition to everything these guys have said.
Do NOT use the source for NWOTS that you are currently using it is bad and inefficient if you intend to use that for any purpose at all do not release your game to the general public as there is already enough rips out there. | |
Okay, and thank you all for your replies, they have been very helpful. :)
And by the way, I'm not USING NWOTS for a RIP, I'm simply referencing some of the code because I'm still learning and I've heard it helps to look at other sources. | |
Kk, id advise against even looking at that source as it is a bad example of how things are to be displayed and work. there are many other tutorials and or sources that you can look out.
If your willing to search for it although not advised you could find the GoA source which would be much more educational then a NWOTS source. Or use the natural method everyone else uses and read through the DM Guide and the vast amount of resources/ dream maker threads. | |
Thanks for that, I hadn't noticed it.
By the way, I noticed a small 'error' in your game while playing it. When using whisper, you are given a list of every mob in the world to whisper, when you should just be given a list of the ones owned by clients. | |
He wouldn't want to use GOA source to code from. Everything is vars for everything. And it's too big so it would probably be confusing for him. Yea don't use WOTS. There's like 43 and a half rips out thee tat use WOTS.
| |
TheDarkJak wrote:
And by the way, I'm not USING NWOTS for a RIP, I'm simply referencing some of the code because I'm still learning and I've heard it helps to look at other sources. If you need to use stolen code, I would imagine that you are not ready to create your game. It is always advice not to rummage through a BYOND game's source code. The code is usually inefficient and you are better off learning on your own. Try using the DM Guide as your reference. Remember, if you come across a problem, you can always return to these forums and ask for help. | |