HELP PLEASE

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

HELP PLEASE

Postby tripper1977 » Fri Sep 05, 2008 4:28 pm

dose eney one know how to make it so you cant get out of a room with out

having all the items in your Inventory please help because i am realy stuck with this thanks :lol: :lol:
tripper1977
Member
 
Posts: 20
Joined: Fri Nov 30, 2007 2:37 pm

Postby pennsteve » Fri Sep 05, 2008 7:41 pm

It would be something like my spot the difference game. Go to this post for an explanation.

http://www.adventuremaker.com/phpBB2/vi ... php?t=4266
pennsteve
Expert Member
 
Posts: 329
Joined: Wed Aug 06, 2008 3:55 pm

Postby Lyberodoggy » Fri Sep 05, 2008 9:06 pm

Ok.
You should first add this code to your projects VBS Procedures.

Then let's say you have 3 items you want the player to pick up
Type this code in the hotspot that is used to take the player to the next frame:
Code: Select all
If HasItem("Firstitem") then item_count1=1
If HasItem("Seconditem") then item_count2=1
If HasItem("Thirditem") then item_count3=1
If item_count1+item_count2+item_count3=3 then Action.GotoFrame "NextFrame"
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby tripper1977 » Fri Sep 05, 2008 9:23 pm

thanks for all the help will try later and let you know how i get on :lol: :lol:
tripper1977
Member
 
Posts: 20
Joined: Fri Nov 30, 2007 2:37 pm

Postby Mystery » Fri Sep 05, 2008 11:08 pm

It would be also possible to create a variable for each item, and when it's picked up, to set its value to 1.

And then use
Code: Select all
If item1 + item2 + item3 = 3 Then Action.GoToFrame "NextFrame"


(you can give the items of course other names, like "apple", "key", "knife" - but then use their names in the code above)
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests