Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-05-2001, 04:39 PM
Knightoffrost Knightoffrost is offline
and Delph Inc.
Knightoffrost's Avatar
Join Date: Jul 2001
Location: Canada
Posts: 1,162
Knightoffrost is on a distinguished road
Send a message via ICQ to Knightoffrost Send a message via AIM to Knightoffrost Send a message via Yahoo to Knightoffrost
onMouseOver, onMouseDown etc...

<[ Delph Inc. ]>

I've been thinking of this for a while and I think Stefan should implement the onMouseOver, onMouseDown, onMouseMove etc... commands into Graal.
For example:

if (onmouseover.x<10,20>&&onmouseover.y<10,20>) {
changeimgpart 1,x,y,w,h;
}

That would make it so as soon as your mouse goes over the image with an index of 1, it would change the images x,y,w,h.
For those of you who don't know the x and y is the start of a box of a certain part of an image you want to select and the width and height determines how large the box will be.
These commands would be good for many things.
I first came up with the idea a while ago when I was actually trying to see if he had already done this because Stefan made the right click thing on the players.
*NOTE: I was just in my early days of scripting.*
This would be good for a few things mentioned already in these forums and things which are already in use.

-Moving furinture would be a sinch with this. By just clicking and dragging the item to where you want it.
-The railroad tracks on 2k1 where you could just click on the tile you want, which is already displayed on the screen and then place the tile you clicked on to where you want it.

I know there would be many problems and bugs with this, but Stefan could probably disable the onMouse commands to not work with others where there could be problems.

Galactica (Dolphonia II)
Under Construction (Sort of)

</[ Delph Inc. ]>

*Edit Note* Now I come to think of it, you could probably even create your own levels while actually playing the game. But then you probably wouldn't be able to save the level. You could still upload the text part of a level to a server string or something.

Please everybody, just think of all the posibilities and new things it would bring to graal.
__________________
Xerphier Dintch
Featuring

Last edited by Knightoffrost; 09-05-2001 at 05:05 PM..
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:38 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.