Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

Duurrrr... Help me, Hurrr...

11 years ago

I know, you guys never thought I'd be here, making an advanced game, (at least I didn't...) but here I am...

How do you make it so every time you use an item, your score goes down by X amount of points?

Duurrrr... Help me, Hurrr...

11 years ago

Make a variable call %ITEMUSE

Put this in the item script page: %ITEMUSE := %ITEMUSE + 1

Put this on previous page link of the the page where your item brings your to:

IF %ITEMUSE = 1 THEN 

BEGIN

%SCORE := %SCORE - X

%ITEMUSE := %ITEMUSE - 1 

END

 

 

 

 

Duurrrr... Help me, Hurrr...

11 years ago

Oh my, how do I do that?

Duurrrr... Help me, Hurrr...

11 years ago

I can be your script co-author if you'd like. 

 

Duurrrr... Help me, Hurrr...

11 years ago

That would defeat the purpose, since with what I'm doing is supposed to be used in a test game.

Duurrrr... Help me, Hurrr...

11 years ago

So, it'd be easier for me to guide you through the steps if I can see what you're seeing, and what you're doing wrong. 

Duurrrr... Help me, Hurrr...

11 years ago

You DO understand the above steps, right? o.O

Duurrrr... Help me, Hurrr...

11 years ago

Ahh, No, I do not... On second thought, though, now that I think about what this item is actually going to do, I'd rather just make a normal, itemless quiz.

Duurrrr... Help me, Hurrr...

11 years ago

Ah, so quick on the give up -.-

Duurrrr... Help me, Hurrr...

11 years ago

It's not that I'm giving up, it's just that the item I had in mind would allow people to cheat the fuck out of the quiz. I'll come back again though if I fail to understand the articles that tell me what your dirctions meant.

Duurrrr... Help me, Hurrr...

11 years ago

There is no item script...(it's there whoops)

and there is already by default a $ITEMUSED variable.

 

%SCORE:=%SCORE-%ITEMUSED1-ITEMUSED2-ITEMUSED3

Put this in the last page's script.

Duurrrr... Help me, Hurrr...

11 years ago

You know it's $ITEMUSED, not %ITEMUSED, right? o.O 

Duurrrr... Help me, Hurrr...

11 years ago

I could have sworn I used $ITEMUSED..

Yes

Duurrrr... Help me, Hurrr...

11 years ago

And Penguin's only using 1 item not 3.