Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - beaver

#21
yeh that works great. you too kind.
only thing was i had to add another closing bracket at the end of the script
#22
if (GetLocationType(mouse.x,mouse.y)== 2) {
if (GetCharacterAt(mouse.x, mouse.y) == 0) {
SetButtonPic(INTY, 0, 1, 177);
}
else SetButtonPic(INTY, 0, 1, 179);
}
if (GetLocationType(mouse.x,mouse.y)==0)
SetButtonPic(INTY, 0, 1, 175);  
}
if (GetGUIAt(mouse.x,mouse.y) == INTY) {          <-------------- this one
if (GetGUIObjectAt(mouse.x,mouse.y) == 1) {
SetButtonPic(INTY, 0, 1, 177);
}
else SetButtonPic(INTY, 0, 1, 179);
}

i dont think its your code, i think ive just screwed up =)
#23
hm, something is a bit wrong with it, says parse error unexpected if. would that just be how ive put the script in though?
#24
1 last thing, i take it you can only do it with a maximum of 2 characters?
oh, and can rolling over a button change the image on another button?


ignore that, i just found GetGUIObjectAt that should do it i think
#25
excellent, that works great.
thanks
#26
im not sure how to implement that... here is what i tried to do using it. but it just made the button change to the same sprite regardless of which character it was over (player or npc)

if (GetLocationType(mouse.x,mouse.y)== 2)
   SetButtonPic(INTY, 0, 1, 179);
   if (GetPlayerCharacter() == 0)
   SetButtonPic(INTY, 0, 1, 177);
   if (GetLocationType(mouse.x,mouse.y)==0)
   SetButtonPic(INTY, 0, 1, 175);
#27
doh, that works nicely, only thing is i wanted the button to change to a different pic depending on what character it was over, not just any character. is that possible?
#28
ah i see, i was thinking it would only do it when the player was over the coordinates stated, but it relies on where u put the mouse.

thanks very muchly.
#29
hmm, usefull, but what if the character was moving/moved to a different location?
#30
Ok, I know i can make a button pic change when the mouse goes over a hotspot, (and change back again by using another hotspot around it). and i can make a button pic change when the player stands on a region... but is there a way to make a button pic change when the mouse passes over a character?

thanks
#31
Beginners' Technical Questions / Re:GUIon?
Sat 01/05/2004 21:18:04
ehhe, thanks. i forgot counting started at 0 and not 1 =)
#32
Beginners' Technical Questions / Re:GUIon?
Sat 01/05/2004 21:02:47
ok cheers for the help, i got it working now...
Ive just tried to make it turn off using GUIOff, but it only seems to work if i have another command before the GUIOff command.
below is what id imagine would work but doesnt.

 if (interface == MAP) {
   if (button == 1)
   GUIOff(7);
     }

here is what does work

 if (interface == MAP) {
   if (button == 1)
   SetButtonPic(MAP, 0, 1, 2060);
   GUIOff(7);
     }

any ideas why that is?

#33
Beginners' Technical Questions / GUIon?
Fri 30/04/2004 06:34:40
Hi, Im probably being really stupid, but how do i make a gui load when i click a button? is it done by using GUIon (number)? I tried that and i couldnt get it to work, could somebody please show me how to do this.

thanks.
#34
lol!!!

thanks a lot! I cant believe i missed that, i knew u must be able to do it, but i couldnt see it for looking.

thanks again.
#35
Hi, this one should be easy for you.

Is it possible to make the interface and other screen elements not get grey'd out when it goes into talk mode or whatever. i dont want to use the other things at the same time, but it looks a bit naff when it does it bvecause my interface isnt all square, but it puts a square box around it...

ta for any help
#36
Hi all, This is my first post here.

How would i display the current navigation mode (walk, look at etc) in a set location on the gui/screen rather than have it change the icon itself?

for example; when u switch between the navigation modes using right click the icon changes to the mode you are on, like if you are on walk mode it shows feet, and look at is an eye. how would i have it do that? but instead of it changing the icon it shows the current mode on the gui.
I looked in the manual and have browsed around the forums and not had any luck.
any help would be great, thanks.
SMF spam blocked by CleanTalk