Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: cyclope on July 17, 2010, 12:55:33 pm

Title: [RESOLVED][XP]Buttons in map
Post by: cyclope on July 17, 2010, 12:55:33 pm
Hi, i am looking for a way to put buttons in the map that will open a window whene you click on them during gameplay, like in www.runescape.com (http://www.runescape.com). I am ussing blizz abs. :D
Title: Re: (xp)Buttons in map
Post by: element on July 18, 2010, 06:04:58 am
u will need blizz's mouse system for that and then sombody  can make a script that when you click on an image it opens a scene
Title: Re: (xp)Buttons in map
Post by: G_G on July 18, 2010, 11:26:02 am
no actually a simple event system. Just need the mouse system and blizz abs or tons of addons
Spoiler: ShowHide
(http://i678.photobucket.com/albums/vv143/GameGuysProjects/simple.png)


EDIT: THat last branch
$mouse.x >= should be $mouse.y <= small typo when making the event.
Title: Re: (xp)Buttons in map
Post by: stripe103 on July 18, 2010, 11:58:30 am
Though it would be easier with a script than having an event on every single map...
Title: Re: (xp)Buttons in map
Post by: WhiteRose on July 18, 2010, 12:04:54 pm
Quote from: stripe103 on July 18, 2010, 11:58:30 am
Though it would be easier with a script than having an event on every single map...

Not if it's a common event.
Title: Re: (xp)Buttons in map
Post by: stripe103 on July 18, 2010, 12:07:05 pm
Oh, yea... Didn't think of that. :^_^':
Title: Re: (xp)Buttons in map
Post by: cyclope on July 18, 2010, 02:22:19 pm
Quote from: game_guy on July 18, 2010, 11:26:02 am
no actually a simple event system. Just need the mouse system and blizz abs or tons of addons
Spoiler: ShowHide
(http://i678.photobucket.com/albums/vv143/GameGuysProjects/simple.png)


EDIT: THat last branch
$mouse.x >= should be $mouse.y <= small typo when making the event.

It works but i need the button to always be in the the upper left corner of the
Title: Re: (xp)Buttons in map
Post by: SBR* on July 18, 2010, 02:23:50 pm
Make a picture and show it. The event system should be a common event.
Title: Re: (xp)Buttons in map
Post by: cyclope on July 18, 2010, 02:39:52 pm
I made this
Spoiler: ShowHide
(http://i915.photobucket.com/albums/ac351/cyclope_hud/CE.png)
but it didnt work :wacko:
Title: Re: (xp)Buttons in map
Post by: G_G on July 18, 2010, 02:47:21 pm
You didnt change the button x in the conditional branches. th 16 is button x. so you gotta change them all to 608 because thats the button x. Also change the width and height to the buttons picture width and height. Also the button y needs to be set to 0.

And like I said the last branch had a typo in it.
it needs to be
$mouse.x <= 16 + 32
Title: Re: (xp)Buttons in map
Post by: cyclope on July 18, 2010, 03:15:52 pm
Quote from: game_guy on July 18, 2010, 02:47:21 pm
You didnt change the button x in the conditional branches. th 16 is button x. so you gotta change them all to 608 because thats the button x. Also change the width and height to the buttons picture width and height. Also the button y needs to be set to 0.

And like I said the last branch had a typo in it.
it needs to be
$mouse.x <= 16 + 32


like this???
Spoiler: ShowHide
(http://i915.photobucket.com/albums/ac351/cyclope_hud/CE-1.png)
Title: Re: (xp)Buttons in map
Post by: G_G on July 18, 2010, 04:04:01 pm
Yup. Did it work?
Title: Re: (xp)Buttons in map
Post by: cyclope on July 18, 2010, 04:09:52 pm
No  :'(
Title: Re: (xp)Buttons in map
Post by: winkio on July 18, 2010, 04:17:54 pm
err, that picture would go off the screen if it's 120 pixels wide and at 608.
Title: Re: (xp)Buttons in map
Post by: cyclope on July 18, 2010, 04:21:14 pm
It is 24 px
Title: Re: (xp)Buttons in map
Post by: nathmatt on July 18, 2010, 04:45:06 pm
just make a selectable icon on the map if my virus detector didn't expire I'd make you 1 real fast it's not that hard just check if the item command is at index 0 and if c is pressed
Title: Re: (xp)Buttons in map
Post by: cyclope on July 18, 2010, 04:47:01 pm
Thanks! :D
Title: Re: (xp)Buttons in map
Post by: G_G on July 18, 2010, 04:52:00 pm
if the width is only 24 dont add 128 add 24
Title: Re: (xp)Buttons in map
Post by: cyclope on July 18, 2010, 04:55:52 pm
I changed it to 24 but its still not working
Title: Re: (xp)Buttons in map
Post by: G_G on July 18, 2010, 05:02:26 pm
I'll make a demo real fast.
Title: Re: (xp)Buttons in map
Post by: cyclope on July 18, 2010, 10:17:06 pm
Did you made the demo???
Title: Re: (xp)Buttons in map
Post by: G_G on July 18, 2010, 10:18:41 pm
Not yet, been busy all day. Expect it tomorrow k?
Title: Re: (xp)Buttons in map
Post by: cyclope on July 19, 2010, 11:25:13 am
ok, np :)
Title: Re: (xp)Buttons in map
Post by: G_G on July 20, 2010, 05:17:28 pm
Here ya go
http://www.sendspace.com/file/udboz1
Title: Re: (xp)Buttons in map
Post by: cyclope on July 20, 2010, 06:32:58 pm
It works :clap: