Help, pls!

Trying to make multiple tempt texts but only the first one appears.
Can anyone take a look and help me see what’s missing/ went wrong?

Thanks in advance

The code

*temp strength_text 0
*temp magic_text 0
*temp intellect_text 0
*temp charm_text 0

*if strength = 0
*set strength_text “Pathetic”
*goto chart
*elseif strength = 1
*set strength_text “Okay”
*goto chart
*elseif strength = 2
*set strength_text “Good”
*goto chart
*elseif strength = 3
*set strength_text “Speciality”
*goto chart

*elseif magic = 0
*set magic_text “Pathetic”
*goto chart
*elseif magic = 1
*set magic_text “Okay”
*goto chart
*elseif magic = 2
*set magic_text “Good”
*goto chart
*elseif magic = 3
*set magic_text “Speciality”
*goto chart

*elseif intellect = 0
*set intellect_text “Pathetic”
*goto chart
*elseif intellect = 1
*set intellect_text “Okay”
*goto chart
*elseif intellect = 2
*set intellect_text “Good”
*goto chart
*elseif intellect = 3
*set intellect_text “Speciality”
*goto chart

*elseif charm = 0
*set charm_text “Pathetic”
*goto chart
*elseif charm = 1
*set charm_text “Okay”
*goto chart
*elseif charm = 2
*set charm_text “Good”
*goto chart
*elseif charm = 3
*set charm_text “Speciality”

*label chart

*stat_chart
text strength_text Fortitude
text magic_text Hoodoo
text intellect_text Bookworm
text charm_text Darling

for each new text, start over from *if

so like for magic, instead of

*elseif magic = 0
*set magic_text “Pathetic”

do

*if magic = 0
*set magic_text “Pathetic”

and then repeat for the = 0 on all of them

Oh, okay! I’ll try it
Thanks!

Umm, I’ve changed it but the other stats still won’t show text.

Edited code

*temp strength_text 0
*temp magic_text 0
*temp intellect_text 0
*temp charm_text 0

*if strength = 0
*set strength_text “Pathetic”
*goto chart
*elseif strength = 1
*set strength_text “Okay”
*goto chart
*elseif strength = 2
*set strength_text “Good”
*goto chart
*elseif strength = 3
*set strength_text “Speciality”
*goto chart

*if magic = 0
*set magic_text “Pathetic”
*goto chart
*elseif magic = 1
*set magic_text “Okay”
*goto chart
*elseif magic = 2
*set magic_text “Good”
*goto chart
*elseif magic = 3
*set magic_text “Speciality”
*goto chart

*if intellect = 0
*set intellect_text “Pathetic”
*goto chart
*elseif intellect = 1
*set intellect_text “Okay”
*goto chart
*elseif intellect = 2
*set intellect_text “Good”
*goto chart
*elseif intellect = 3
*set intellect_text “Speciality”
*goto chart

*if charm = 0
*set charm_text “Pathetic”
*goto chart
*elseif charm = 1
*set charm_text “Okay”
*goto chart
*elseif charm = 2
*set charm_text “Good”
*goto chart
*elseif charm = 3
*set charm_text “Speciality”

*label chart

*stat_chart
text strength_text Fortitude
text magic_text Hoodoo
text intellect_text Bookworm
text charm_text Darling

The *goto chart in the strength if is skipping straight to the stat chart. Have a seperately named label and go to for each stat, label should be after the if statements but before the next stat’s if statements.

Can write an example, but am on mobile rn

*temp strength_text 0
*temp magic_text 0
*temp intellect_text 0
*temp charm_text 0

*if strength = 0
	*set strength_text “Pathetic”
	*goto str_end
*elseif strength = 1
	*set strength_text “Okay”
	*goto str_end
*elseif strength = 2
	*set strength_text “Good”
	*goto str_end
*elseif strength = 3
	*set strength_text “Speciality”
	*goto str_end
*label str_end

*if magic = 0
	*set magic_text “Pathetic”
	*goto mag_end
*elseif magic = 1
	*set magic_text “Okay”
	*goto mag_end
*elseif magic = 2
	*set magic_text “Good”
	*goto mag_end
*elseif magic = 3
	*set magic_text “Speciality”
	*goto mag_end
*label mag_end

*if intellect = 0
	*set intellect_text “Pathetic”
	*goto int_end
*elseif intellect = 1
	*set intellect_text “Okay”
	*goto int_end
*elseif intellect = 2
	*set intellect_text “Good”
	*goto int_end
*elseif intellect = 3
	*set intellect_text “Speciality”
	*goto int_end
*label int_end

*if charm = 0
	*set charm_text “Pathetic”
	*goto cha_end
*elseif charm = 1
	*set charm_text “Okay”
	*goto cha_end
*elseif charm = 2
	*set charm_text “Good”
	*goto cha_end
*elseif charm = 3
	*set charm_text “Speciality”
	*goto cha_end
*label cha_end

*stat_chart
text strength_text Fortitude
text magic_text Hoodoo
text intellect_text Bookworm
text charm_text Darling

Something like this, might have to substitute the tabs with spaces, I use tabs, not sure what you use for indent blocks

The indentation might be the issue. Each if & elseif starts its own indent block, by which I mean it’d go:

*if magic = 0
—*set magic_text “Pathetic”
—*goto chart
*elseif magic = 1
—*set magic_text “Okay”
—*goto chart

etc.

The *goto chart in the strength if is skipping straight to the stat chart. Have a seperately named label and go to for each stat, label should be after the if statements but before the next stat’s if statements.

Actually, this is unnecessary. You can just remove the “goto” commands altogether, since the if statements will bypass any remaining elseifs once they find a matching one.

I actually alrd did as dreamofeden suggested lol—adding seperate labels after each stat but before the next one.

Oh, and it works so mweh.
But thanks for your help!

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the moderators.