The Dink Network

Choice Error

July 22nd 2010, 07:12 PM
anon.gif
Absolution
Peasant They/Them
The Dark Lord of the DN. 
SOLVED
July 22nd 2010, 07:21 PM
fairy.gif
GlennGlenn
Peasant He/Him Norway
GlennGlenn doesn't want a custom title. 
Replace the 2 with 1. Dink is always 1.
July 22nd 2010, 07:52 PM
anon.gif
Absolution
Peasant They/Them
The Dark Lord of the DN. 
Oh crap. I thought that was the screen. I am so dumb.
July 22nd 2010, 07:56 PM
anon.gif
Absolution
Peasant They/Them
The Dark Lord of the DN. 
SOLVED
July 23rd 2010, 01:16 AM
anon.gif
Absolution
Peasant They/Them
The Dark Lord of the DN. 
Once again, I am stumped.
void hit ( void )
{
say("That's the dumbest slogan I've ever heard!" ,1);
}

void talk ( void )
{
say("`1Boster's Farm, Everything FOOD you need!" , &current_sprire);
}


I have tried everything. Even the Rudiments of Scripting failed me.

EDIT: Oh bloody hell, how blatantly obvious...*sigh*
July 23rd 2010, 01:22 AM
anon.gif
Absolution
Peasant They/Them
The Dark Lord of the DN. 
So sick of this crap. I hope nothing else happens like this.
July 23rd 2010, 02:10 AM
fairy.gif
GlennGlenn
Peasant He/Him Norway
GlennGlenn doesn't want a custom title. 
Change &current_sprire to &current_sprite.
July 23rd 2010, 10:10 AM
anon.gif
Absolution
Peasant They/Them
The Dark Lord of the DN. 
Heheh, yeah, that's why I said "Bloody hell, how blatantly obvious". XD
July 23rd 2010, 11:14 AM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
If you make those kind of typos a lot (I did when I started out), you might want to try one of the code editors. Some have a syntax check built in so that can't happen.
July 23rd 2010, 11:35 AM
slimeb.gif
DaVince
Peasant He/Him Netherlands
Olde Time Dinkere 
Not to be critical or anything, but it seems like these were simple typos you could have found (and HAVE found) yourself not too long later. You should probably hold off asking for help here until you're sure it's not a typo or simple stupidity (don't worry, those happen all the time).
July 23rd 2010, 09:15 PM
custom_msdink.png
MsDink
Peasant She/Her New Zealand
Tag - Umm.. tag, you're it? 
As a newbie dinker, I prefer the law of natural consequences to kick in here so I totally disagree with davince's statement! Posting here makes you more critical of what you put up, helps teach you what needs to be checked for first... (teaches others what to look for without the fear of being answered like this ^ ) as not all of us are programmers with experience in this sort of thing - we just want to have a go at making a game that others will hopefully enjoy. Consider us beginners and we need all the help we can get because even you started somewhere...

If you post things with spelling errors so what... you won't do it too many times before you learn to check for that first. I thought this community was helpful and by being selective of the sort of errors we will look at is just plain arrogance that shouldn't have any place here. On the other hand that also means you have to figure whats wrong before you ask for help - ludicrous! Kinda defeats the purpose IMHO and maybe, if you don't want to help others, take up the option not to read this sort of thread because comments like that are really unhelpful. Hopefully other dinkers are way more tolerant.
July 23rd 2010, 09:18 PM
anon.gif
Absolution
Peasant They/Them
The Dark Lord of the DN. 
0_0
July 24th 2010, 04:53 AM
custom_skull.gif
Skull
Peasant He/Him Finland bloop
A Disembodied Sod 
MsDink, he's got a point though.
July 24th 2010, 05:27 AM
custom_msdink.png
MsDink
Peasant She/Her New Zealand
Tag - Umm.. tag, you're it? 
Calling people stupid just rubs me up the wrong way Skull...
July 24th 2010, 05:30 AM
custom_skull.gif
Skull
Peasant He/Him Finland bloop
A Disembodied Sod 
He didn't call people stupid. He said that people make stupid mistakes sometimes, and that happens to all of us. Geez, calm down already. It's not like he started a nuclear war or something.
July 24th 2010, 05:27 PM
slimeb.gif
DaVince
Peasant He/Him Netherlands
Olde Time Dinkere 
Who's calling who stupid?

I agree that it is okay to post these simple mistakes as a beginner - the first one or two times (which this is). After that, you should have learned yourself to check closely for any typos. I'm just speeding up that process by actually mentioning it to him, so we don't have as many self-solving and thus pointless threads in the end.

This means I was helping him by giving him some advice, yes?

EDIT: I see how you think I may have called Absolution stupid, but let me clear that up; a simple stupidity like these typos is something even a seasoned coder will stumble upon. They will just appear less over time, and the coder will manage to find them himself instead of ask someone else.
July 25th 2010, 02:13 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
Not always believe me, not always.
July 28th 2010, 02:51 PM
anon.gif
Absolution
Peasant They/Them
The Dark Lord of the DN. 
void main ( void )
{
say("`8Oh, Gawd. It's him..." , &current_sprite);
}

void talk ( void )
{
freeze(1)
freeze(&current_sprite)
choice_start();
"Ask about the Farm"
"Act like a dick"
choice_end();

if (&result == 1)
{
say_stop("What's new with my farm?" ,1);
say_stop("`8Lots of pillbugs are eating away at it." , &current_sprite);
say_stop("You she dog! Why not do anything about it!?" ,1);
say_stop("`8Well, they are really strong..." , &current_sprite);
say_stop("Strong!? A pillbug?! Pah!" ,1);
say_stop("`8..." , &current_sprite);
say_stop("I gotta do everything around here!" ,1);
say_stop("Don't I!?" ,1);
wait(200)
say_stop("DON'T I!?" ,1);
say_stop("`8Yes, Dink. You do..." , &current_sprite);
unfreeze(1)
unfreeze(&current_sprite)
}

if (&result == 2)
{
say_stop("Hey, baby. You wanna go into my room for -" ,1);
say_stop("`8Whatever, Dink!" , &current_sprite);
unfreeze(1)
unfreeze(&current_sprite)
}



The first choice, after it it is done, freezes the game. The last bit of text is frozen there and nobody moves. What's this all about?
July 28th 2010, 03:07 PM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
The last two lines in every of the if statements lack a semicolon...

EDIT: Oh and the wait also.
EDDIT 2: also the freeze(&current_sprite) in void talk
July 28th 2010, 03:10 PM
anon.gif
Absolution
Peasant They/Them
The Dark Lord of the DN. 
I don't need semicolons there IPD.

EDIT: I should get rid of the wait(200) then? Ok, let's try.
July 28th 2010, 03:11 PM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
Of course you do, otherwise it will not read the line.
July 28th 2010, 03:12 PM
anon.gif
Absolution
Peasant They/Them
The Dark Lord of the DN. 
Well I have never needed them before!

EDIT: It still freezes with the semicolons. -.-
July 28th 2010, 03:21 PM
anon.gif
Absolution
Peasant They/Them
The Dark Lord of the DN. 
Hah! Got it. I had to add an extra semicolon at the end of the script!!
July 29th 2010, 07:49 PM
anon.gif
Absolution
Peasant They/Them
The Dark Lord of the DN. 
*sigh* Got more crap messed up. I'm such a n00b scripter. Anyways, this is the script:
void talk ( void )
{
freeze(1)
freeze(&current_sprite)
choice_start();
"Say Hi"
"Rumors"
"Brag"
choice_end();
}

if (&result == 1)
{
say_stop("Hey." ,1);
say_stop("`2Go away!" , &current_sprite);
say_stop("Geez, whatever." ,1);
unfreeze(1)
unfreeze(&current_sprite)
}

if (&result == 2)
{
say_stop("Anything new?" ,1);
say_stop("`2There are a lot of Boncas as of late." , &current_sprite);
say_stop("Yeah?" ,1);
say_stop("`2But they're not bothering us so it doesn't matter." , &current_sprite);
unfreeze(1)
unfreeze(&current_sprite)

if (&result == 3)
{
say_stop("I have Super Strength!" ,1);
say_stop("`2Super Strength?! Are you insane!?" , &current_sprite);
say_stop("<grumble>" ,1);
unfreeze(1)
unfreeze(&current_sprite);
}

void hit ( void )
{
playsound(16, 21050, 4000, &current_sprite, 0);
say("`2Ow! Bloody hell that hurts!" , &current_sprite);
}


For no reason at all, choice three freezes the game and nothing happens.

EDIT: I swear! I see no errors. WTF?!
July 29th 2010, 07:53 PM
anon.gif
Absolution
Peasant They/Them
The Dark Lord of the DN. 
dangit! My errors are stupid! CEdit didn't point that one out! XD
July 29th 2010, 08:33 PM
dinkdead.gif
A tip to help with not messing up brackets - type both and then do the code in between, rather than typing the opening one, then the code, and then closing it. Makes it much easier.

Edit: And you're still missing a load of semicolons. Some things might well run if you miss a couple but it's much safer to always use them.
July 30th 2010, 05:19 AM
custom_iplaydink.gif
Iplaydink
Peasant He/Him Sweden
Hmm.. 
The 'if's aren't in the void talk