Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

Variables and items

13 years ago
Hey all, I need some help. In the advanced editor I want to make it that when you use an item the variable then changes. For example, say you are soldier with a sword battling a dragon. When you use your item, the sword, you are then taken to another page and the dragon loses 50 health points because you cut it. How do I make it that as soon as you go to that page the dragons health is depleted? Any help us welcome.

Variables and items

13 years ago

You could just have the page that you're taken to be called "Attack Dragon with sword" and in the page script have it take away 50 health.

Variables and items

13 years ago

But then the effect doesn't kick in until the page after, because the page script seems to load after the page layout has been loaded (so the health won't decrease by 50 until a page layout is loaded again). I suspect he means how to have heaelth decrease by 50 and have that be visible on the immediate page after the item is initiated.

Variables and items

13 years ago

Exactly.

I know that your games usually have something like that.(Especially in the first three.) How do you do it? A detailed example is appreciated if possible.

Variables and items

13 years ago
Actually, this never worked, the solution Killa named did not work for any of my stories, and the main reason I changed the power system in HP 4 and 5 was to fix this.

Variables and items

13 years ago

It affects it right away. I just tested it with the "show variable on every page" check.

Variables and items

13 years ago

Thanks Killa!!

With your help I was able to get it done. Thank's a bunch.

Variables and items

13 years ago

I can second this as it appears in my story the same way.