Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Granknight on Sat 06/01/2007 21:07:05

Title: Picking up an item (solved)
Post by: Granknight on Sat 06/01/2007 21:07:05
For doing it i chosen:
1)to make the char move there
2)to add the item to the inventory
3)to make the computer write "you picked up the key"
4)to make the item on the room dissappear

It worked as this:
1)told me-added to inv-removed from room
2)moved there.

Why?
Title: Re: Picking up an item
Post by: Ishmael on Sat 06/01/2007 21:08:28
Add the blocking parameter as eBlock into the walk command, or change it if it's currently eNoBlock.
Title: Re: Picking up an item
Post by: Granknight on Sat 06/01/2007 21:21:29
How do i change it? i can't find the AGS section talking of it.
Title: Re: Picking up an item (not yet solved)
Post by: Ishmael on Sat 06/01/2007 22:17:49
Assuming you scripted it, you just add eBlock after the last co-ordinate in that command. The appearing tooltip will tell you which parameter you're at when you add a comma in the parameter list. I'm not sure how the interaction editor works with that, since I've never really used it myself.
Title: Re: Picking up an item (not yet solved)
Post by: Ashen on Sat 06/01/2007 22:23:11
In the Interaction Editor, there should be a 'Wait for move to finish' option (or words to that effect). Setting that to 'true' is the same as the eBlock parameter.

Granknight, for future reference - If you're using coding, show us what you've you've got so far; if you're using Interaction Editor say so, as it'll help with the answers you get.
Title: Re: Picking up an item (not yet solved)
Post by: Granknight on Sun 07/01/2007 08:52:31
It works now  ;)
i'll listen your advice ashen, but i used AGS to do it, maybe can i explain it with a screenshot?