using vbs script to blok a waypart????

This forum is meant for posting anything related to Adventure Maker that doesn't fit in the other forums.Please post technical questions in the Technical Support Forum!

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

using vbs script to blok a waypart????

Postby dreamfighter » Tue Feb 26, 2008 9:15 am

hello everybody
i have really a big pbs with that:
i would like to know if there is a possibility to block a way part in the background picture in the game using vbs script in a hotspot ??? i don't know how to use vbs script but i'm searching a solution to block parts of my background to oblige my character to go only where i want like in rpg maker ...

if someone know a solution please can help me ?

thanks
dreamfighter
Member
 
Posts: 22
Joined: Fri Jan 11, 2008 8:22 pm
Location: FRANCE

Postby Lyberodoggy » Tue Feb 26, 2008 1:24 pm

Are you are using the third person plugin?
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby dreamfighter » Tue Feb 26, 2008 5:24 pm

thanks Lyberodoggy for your reply
yes i use the third person plugin and i have full version of AM. Can you help me?

THIS MY PBS

i have a room, in the middle of the room a box. i created 4 hotspot, and when i clic arround the box, if my character start in a hotspot3 he is going to hotspot1 across the box. i would like to have a solution to oblige my character turn arround the box (green) and a solution to block the way across the box (yellow). i hope you understand my pbs. If someone can help me it will bie very very cool because it's a big pbs for me.

Thank you very much
Attachments
Untitled-1.jpg
Untitled-1.jpg (28.77 KiB) Viewed 5299 times
dreamfighter
Member
 
Posts: 22
Joined: Fri Jan 11, 2008 8:22 pm
Location: FRANCE

Postby Mystery » Tue Feb 26, 2008 6:13 pm

Isn't it the same question that you have already posted here?
http://www.adventuremaker.com/phpBB2/vi ... php?t=3528
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland

Postby Candle » Tue Feb 26, 2008 6:20 pm

I lock the other one now.
Please keep your question to one post thank you.
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3077
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar

Postby dreamfighter » Tue Feb 26, 2008 6:50 pm

yes sorry for the two post.
dreamfighter
Member
 
Posts: 22
Joined: Fri Jan 11, 2008 8:22 pm
Location: FRANCE

Postby Lyberodoggy » Tue Feb 26, 2008 7:10 pm

One easy, but not so nice way to do what you want is:
Create as many Integer Variables as your hotspots.
Initialize them in the Advanced Tab of your frame.
To do so type
Code: Select all
//supposing you have named your variables hotspot1, hotspot2 etc
//suposing hotspot1 is where your actor is standing at first
hotspot1=1
hotspot2=0
hotspot3=0
hotspot4=0
//etc


then you 'll have to set the hotspots to be visible only if the variable of the front hotspot is 0. This way the player will have to walk around using other hotspots. Check the picture I 've provided to fully understand this solution.
I 've also provided you with a sample project... If you customize it a little bit, it may work better... (I suggest adding even more hotspots.)
Attachments
block.rar
The sample project
(764.68 KiB) Downloaded 344 times
variables2.jpg
managing variables
variables2.jpg (43.92 KiB) Viewed 5280 times
variables1.jpg
Creating and initialising variables.
variables1.jpg (38.26 KiB) Viewed 5280 times
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby dreamfighter » Wed Feb 27, 2008 1:32 am

Lyberodoggy really thank you very much. it's clear, with details. your explain is a big big help for me really and i 'm sure for a lot of other people too.

thanks
dreamfighter
Member
 
Posts: 22
Joined: Fri Jan 11, 2008 8:22 pm
Location: FRANCE

Postby Lyberodoggy » Wed Feb 27, 2008 7:10 am

You are welcome!
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens


Return to Adventure Maker General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests