Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-24-2008, 10:11 PM
Imperialistic Imperialistic is offline
graal player lord
Imperialistic's Avatar
Join Date: Apr 2007
Location: Florida
Posts: 1,094
Imperialistic is a jewel in the roughImperialistic is a jewel in the rough
Help?

Not really sure how to start on this, and the Wiki doesn't help me out at all with what I'm looking for..

I'm interested in making something such as like a pitcher pitching the baseball.. and how how he has to aim.. Is there a way to merge that with Graal, I think I have seen it before..

Aiming: Slightly difficult and maybe its a bit un-steady were the player would need to get it into the certain "box" area or w/e..

Can someone maybe show me a template or tell me how I would go about scripting this..
__________________
" It's been swell, but the swelling's gone down. "
Reply With Quote
  #2  
Old 07-24-2008, 10:27 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Just define an area where the mouse could click in, and every time the mouse is clicked, send the ball, and check if it was in the designated strike zone.
Reply With Quote
  #3  
Old 07-24-2008, 11:44 PM
Imperialistic Imperialistic is offline
graal player lord
Imperialistic's Avatar
Join Date: Apr 2007
Location: Florida
Posts: 1,094
Imperialistic is a jewel in the roughImperialistic is a jewel in the rough
That's basically defining what I just said into a better explanation.. How would I go about defining an "area where the mouse could click in".. And I want it to be harder than just clicking the designated area and have the ball fly there.. It needs to be more difficult
__________________
" It's been swell, but the swelling's gone down. "
Reply With Quote
  #4  
Old 07-25-2008, 12:52 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
We aren't going to design your idea for you. Give us an exact idea what you want before making ambiguous requests.
__________________
Do it with a DON!
Reply With Quote
  #5  
Old 07-25-2008, 01:45 AM
Imperialistic Imperialistic is offline
graal player lord
Imperialistic's Avatar
Join Date: Apr 2007
Location: Florida
Posts: 1,094
Imperialistic is a jewel in the roughImperialistic is a jewel in the rough
I have my own idea what do you not get, want me to get more specific?

Maybe crosshairs and the crosshairs move back and forth, up and down and what not.. and you have to struggle and get the crosshairs into the designated area "circle or square in the middle" and click and the ball goes flying and if you make it in the designated area, I guess I can go from there..
__________________
" It's been swell, but the swelling's gone down. "

Last edited by Kristi; 07-25-2008 at 03:38 PM..
Reply With Quote
  #6  
Old 07-25-2008, 03:35 PM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
you can use overshoot physics, and can adjust the constant based on how difficult you want it to be.

Basically, the cursor follows the mouse movement on an imaginary spring (like a bungee cord), and when you stop, it continues in motion until it reaches the max spring potential and recoils back.

You can also add random "collisions", ie induce a hit at a random angle to modify the x,y velocity unpredictably. You see this in those "Drunk pee" flashes.

You can also model the same idea as an acceleration model.

Quote:
Originally Posted by excaliber7388 View Post
Just define an area where the mouse could click in, and every time the mouse is clicked, send the ball, and check if it was in the designated strike zone.
That is basically what he said. Stop postcounting++

Quote:
Originally Posted by zokemon View Post
We aren't going to design your idea for you. Give us an exact idea what you want before making ambiguous requests.
His idea was reasonably clear. If you want to be snarky to others, learn how to read first.
__________________
Reply With Quote
  #7  
Old 07-25-2008, 07:06 PM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Imp just learned how to use triggers, and you use words like overshoot physics, random collisions, and acceleration model.

To define a target area, you can use the simple mousex(/y) in |int, int|, in a timeout. As for aiming difficulty, I'm not sure how to that. I think that's where the fancy words Hell Raven uses comes in.

Sorry if this is just rewording.
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #8  
Old 07-25-2008, 07:16 PM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
I can model some example equations when I get home from work
__________________
Reply With Quote
  #9  
Old 07-25-2008, 09:29 PM
Imperialistic Imperialistic is offline
graal player lord
Imperialistic's Avatar
Join Date: Apr 2007
Location: Florida
Posts: 1,094
Imperialistic is a jewel in the roughImperialistic is a jewel in the rough
Quote:
Originally Posted by LoneAngelIbesu View Post
Imp just learned how to use triggers, and you use words like overshoot physics, random collisions, and acceleration model.

To define a target area, you can use the simple mousex(/y) in |int, int|, in a timeout. As for aiming difficulty, I'm not sure how to that. I think that's where the fancy words Hell Raven uses comes in.

Sorry if this is just rewording.
Okay I see, I will start working on some stuff and maybe post later..

Quote:
Originally Posted by Kristi View Post
I can model some example equations when I get home from work
Cool thanks Josh, seems like you're the only one understanding.
__________________
" It's been swell, but the swelling's gone down. "
Reply With Quote
Reply

Tags
scripting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 03:34 PM.


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