Choicescript help pllz

I tried everything but having an experinced author look at it

Is anybody willing to look at it?

Sure, I’ll PM you my email.

Thank you alot

Hey i’m sorry but I don’t get *if and else I’ve tried everything I was wondering if anybody would try to fix it and tell me where I went wrong but you can’t share the coding with anybody. Thank you

If you need help, you’re going to have to share your code.
It’s un-compiled anyway so as soon as you publish your game we’ll be able to see it, so stop being so don’t be so protective over it.
You’ll cause more harm than good.

here is how it goes

 the man creeps up on you wat do u do?
\*if (strength > 50)
 #kill him
\*if (strength < 50)
 #run

so u have to use variables for the if command

but ask cjw he is much more experienced

There’s a flaw in your design, @irule9344; what if strength = 50 ? But basically, that’s how *if works with choices.

ahh oh my bad :smiley:

 
*if (strength = 50) 
 #pick up a weapon and beat him up

*choice
#Go behind him and paralysis him
*if (strength = 55)
You silently step to him his back
and punch his vertebra violently sending him
down without a peep time to move on.
*finish
*else
you die a slow death
*finish
expected one line for *if

writ pre inside <> before u start and it will look like this

@irule9344 Technically you don’t have to use variables for an if command, but two values are always going to be the same, so it’s pretty pointless.

*if ((5*2) = 10)

Should be valid, but it’s a pretty pointless comparison as it will always be true.

wat i don’t understand u cjw ur coding skill is much higher than mine

Nevermind then :slight_smile:

<pre \*choice #Go behind him and paralysis him \*if (strength = 55) You silently step to him his back and punch his vertebra violently sending him down without a peep time to move on. \*finish \*else you die a slow death \*finish expected one line for \*if I still dont get the problem

You need to indent it properly:
*choice
-#Go behind him and paralysis him

–*if (strength = 55)

—You silently step to him his back

—and punch his vertebra violently sending him

—down without a peep time to move on.

—*finish

–*else
—you die a slow death

—*finish

u have to have a choice after the if command and u have to use the if command again so u can do it this way:


*if (strength = 50)
 #go behind him and paralysis him.
   You silently step to him his back 
   and punch his vertebra violently sending him 
   down without a peep time to move on. 

but iam not sure about the *else command