Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Colors (https://forums.graalonline.com/forums/showthread.php?t=25078)

Goboom 03-05-2002 04:01 AM

Colors
 
1 Attachment(s)
ok im making a doodle board for people to play around with. if i have the img attached below would there be a way for me to make the color of the pen change to the color that the person clicks on?

joseyisleet 03-05-2002 04:35 AM

-=Josey=-
Your best bet would be to use arrays most likely.

screen_name 03-05-2002 04:44 AM

keep a variable or two for the x and y of the pen, then use arrays for the colors, when they press d or whatever in one of the colors, change the color to the one selected, etc, etc

stomper_TK 03-05-2002 05:04 AM

doodle board? wts x 10²

Goboom 03-06-2002 05:19 AM

Yea i figured that...just didnt want to script it and mess it up...been off of graal for a month....forgot some stuff...;-\

screen_name 03-06-2002 09:23 PM

Quote:

Originally posted by Goboom
Yea i figured that...just didnt want to script it and mess it up...been off of graal for a month....forgot some stuff...;-\
:P

cool beans

Goboom 03-06-2002 09:34 PM

Quote:

Originally posted by screen_name
:P

cool beans

:-\

Spanko 03-06-2002 09:37 PM

There, unfortunately, is no mouse support in Graal outside of the Editor CNPCs (For as far as I am aware). However keeping track of the x,y position of a customly scripted cursor and making it send a trigger to the NPc it comes from with the x,y location could be a reasonably effective way.

Slaktmaster 03-06-2002 11:05 PM

Quote:

Originally posted by Spanko
There, unfortunately, is no mouse support in Graal outside of the Editor CNPCs (For as far as I am aware). However keeping track of the x,y position of a customly scripted cursor and making it send a trigger to the NPc it comes from with the x,y location could be a reasonably effective way.
Stefan told me he was not adding mouse support because "people might try to make mouse-based movement systems". :(

Saga2001 03-06-2002 11:56 PM

Quote:

Originally posted by Slaktmaster

Stefan told me he was not adding mouse support because "people might try to make mouse-based movement systems". :(

man that was my main plan...:mad: :mad: :mad:

royce 03-12-2002 09:50 AM

I'd rather type on my keyboard, [Tab] **COLOR** [Enter] [Tab] rather than going straight to the mouse in gameplay. ;)

Faheria_GP2 03-12-2002 10:07 AM

Quote:

Originally posted by Slaktmaster

Stefan told me he was not adding mouse support because "people might try to make mouse-based movement systems". :(

why is this bad/a reason for not adding mouse support?

nyghtGT 03-12-2002 03:29 PM

Re: Colors
 
Quote:

Originally posted by Goboom
ok im making a doodle board for people to play around with. if i have the img attached below would there be a way for me to make the color of the pen change to the color that the person clicks on?
there are those mouse position commands but i forget what they are, nor do i know how to use them correctly ...

neomaximus2k 03-12-2002 03:43 PM

Quote:

Originally posted by Kaimetsu


Because even if Graal can survive futuristic settings and 3D minigames and still be Graal, a mouse-based control system... well, it wouldn't be Graal anymore.

And to Stefan, that's a bad thing.

I agree but lets say it was Mousex
couldn't he code it so that if the player clicks on an open level nothing happens but if it is on a showimg or somet else then it would work?
i mean he already has that for the weapons screen


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

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