Non-threaded

Forums » Newbie Central » Read Thread

Introduce yourself and get to know the community.

Is there a way to activate a link?

3 years ago

I need the player to pick up an item THEN continue. Is there a way? 

Thanks~

Is there a way to activate a link?

3 years ago
I don't use items, but check the articles in Help & Info. There's regular link restrictions that would prevent them from continuing without it. But that's actually very annoying when you have ability to just place the item in their inventory when they click a link.

Is there a way to activate a link?

3 years ago

Really? how does that work? I can't seem to find it.

Is there a way to activate a link?

3 years ago
It's the article called Scripting: Items.

It will reveal the mysteries of....well gosh I don't want to spoil what it's about.

Is there a way to activate a link?

3 years ago

Ok! Thanks so much!

Is there a way to activate a link?

3 years ago
Or, if you want to get into scripting, you can just force the item into the player's hands and let them continue on that way...

Is there a way to activate a link?

3 years ago

Do you know where's the button for scripting?

Also, say if I force it to someone's hands, which button should I use? Like, The button on the page of the item, or the one before?

Lastly, $ITEMSTATE2 = 1 doesn't seem to work. Do you know why?

Thanks

Is there a way to activate a link?

3 years ago
Itemstates can only be changed in page scripts, so if you're using a link script it wont work.

The ":=" image to the left of the title of a page is the page script.

Note: You'll need to do this on the page you want them to get the item on.

Is there a way to activate a link?

3 years ago

Did not expect '='. Col=13

Oh.

Is there a way to activate a link?

3 years ago
Setting something equal to something requires you use :=

= only checks to see if two things are equal

$ITEMSTATE2 := 1

Is what it should look like.

Is there a way to activate a link?

3 years ago

Ohhhh

Thanks

Is there a way to activate a link?

3 years ago
It has to be :=

If you're checking a variable for its total you do something like
IF %VAR = 1 THEN whatever.


With something like %VAR := 1, the := means 'set to'.
That's what you're doing with the item, you're not checking for something first, you're telling the game to set the item state.

The 'Col' message is just telling you exactly where it ran into the error so that you can fix ir. Line something, column something