Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-24-2002, 10:40 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
Shoot npc with radius and elevation

Hi guys, I been at it again (last time i was at it the 3 page light jello script)

Here is a fun little npc you could easily make a shooting weapon out of. The part where an object gets shot is not included,
this is just feeding stuff to the shoot command.

Press left and right to change the angle.

Press up and down to change the elevation.

Press and hold D to shoot at that angle and elevation.

Hold D and press up, down, left, right for cool shooting patterns.
For educational purposes, free to extract and use in your npcs provided you keep the header thing there with my website address.

Have fun!
Attached Files
File Type: nw circleaim.nw (11.0 KB, 240 views)
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #2  
Old 08-24-2002, 11:18 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
would be better if it actually shot at the direction the red dot was facing instead of shooting up when it was down and down when it was up
Reply With Quote
  #3  
Old 08-24-2002, 11:22 AM
-Hadez- -Hadez- is offline
Registered User
Join Date: Aug 2002
Location: Maine
Posts: 164
-Hadez- is on a distinguished road
complain complain complain... is that all people do?

Personally I think its really cool
__________________
Reply With Quote
  #4  
Old 08-24-2002, 11:44 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
holy geez

For everythign else that script does, most graal players would not be aware of it. You pick the ONE thing that is of by 180 degrees on up and down (left and right work) and complain! GEEZ!

NEW RULE: if you complain that something dosent work, OFFER A SoULITION IN THAT SAME POST! please!
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #5  
Old 08-24-2002, 11:56 AM
-Hadez- -Hadez- is offline
Registered User
Join Date: Aug 2002
Location: Maine
Posts: 164
-Hadez- is on a distinguished road
Hey prozac, did you get my forum pm?
__________________
Reply With Quote
  #6  
Old 08-24-2002, 11:56 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
I would have to agree w/ you Prozac =P Good idea. When skilled NAT's are willing to post scripts, don't complain. Say, oh, it could have this in it, or this could be changed, but don't be like "this is stupid!" or "pointless". Say thanks, post some POSITIVE comments (No one likes a pessimest!), and get on with it. I may check it out l8er, but if it is just your up->down and down->up that is mixed up, perhaps you switched dir 0 with dir 2? Or depends on how you did it. L8er
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #7  
Old 08-24-2002, 03:08 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Here:
Have fun its all fixed up :P

By the way this is S.S.Link

I fixed it to shoot at the right angle and all.
Also added arrow ganis and such and made it a weapon
Attached Files
File Type: nw test_shoot.nw (10.9 KB, 181 views)
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #8  
Old 08-25-2002, 03:48 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
here, thast other one was what i did when it was 5 in the morning and i was tired

all you really had to do was in the shoot command have it shoot at the angle*(-1)
which reverse the number
Attached Files
File Type: nw test_shoot2.nw (10.8 KB, 164 views)
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #9  
Old 08-25-2002, 06:28 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
One more fix ....

Ok folks,

Here is the nearly-finished NPC (thanks s.s. link!)
for the bow.

One thing left to add
(and you will see commented out where i tired)
is getting this.angle and this.sangle
based on the players starting position,
that they will be pointing the angle at where they are facing when they go to shoot.

If you have ever shot a bow in arrow in real life,
you take the arrow, nock it (put it on the string) and draw
back, holding it in place til you aim and fire.

So, here you press and hold D, left and right to adjust angle,
up and down to adjust elevation, then Release D to shoot, just like real life, heh.

Post a fix whenst you discovereth it, ye valiant scipters you.
Attached Files
File Type: nw prozac_bow.nw (11.3 KB, 179 views)
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #10  
Old 08-25-2002, 06:34 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Here: already did that just didn't post it

It is basicly finished.
Attached Files
File Type: nw test_shoot2.nw (12.3 KB, 176 views)
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #11  
Old 08-25-2002, 01:39 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Quote:
Originally posted by Python523
would be better if it actually shot at the direction the red dot was facing instead of shooting up when it was down and down when it was up

like my rock script on enigma.

can shoot rocks on any angle on a 360* radias and change the height from .5 to 1.5 and in between.
Reply With Quote
  #12  
Old 08-25-2002, 09:29 PM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
hm?

An enigma? isnt that something you shove up your butt when your constipated? oh wait thats an enema...

I never seen a script like that before but i'm not suprised that it's already been done. Graal has been around a while and there are thousands of people who have it downloaded.
Its like trying to write a song on guitar, every single chord combination and progression has already been done, even if you never heard it, jsut because its been around for so long.
There is nothing new left to to be made. (unles a completely new command comes out heh)
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #13  
Old 08-25-2002, 11:20 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Re: hm?

Quote:
Originally posted by prozac424242
[...
I never seen a script like that before but i'm not suprised that it's already been done. Graal has been around a while and there are thousands of people who have it downloaded.
Its like trying to write a song on guitar, every single chord combination and progression has already been done, even if you never heard it, jsut because its been around for so long.
There is nothing new left to to be made. (unles a completely new command comes out heh) [/B]
I am VERY sorry Prozac, but that is about the DUMBEST thing I've ever heard x.X That is SO untrue. While MUCH has been done, you have to be good and skilled to make new things.
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #14  
Old 08-26-2002, 12:56 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
you make me laugh

Quote:
I am VERY sorry Prozac, but that is about the DUMBEST thing I've ever heard x.X That is SO untrue. While MUCH has been done, you have to be good and skilled to make new things.
---Shifter

HAHAHAHA! That is the voice of inexperience!

What is Graal? A video game.
How long have people been makign video games?
almost thirty years.
Why do people make video games?
To try and emulate things that they think of in their mind by usign a computer.
How long have people been having ideas?
more than four thousand years!

The computer and video games and graal
are all new ways of doing the same thing;
expressing ideas in a particular medium.

In the history of the world, nothing new is left to do anymore.
Everything that is will pass away into myth,
Everything that has been, will be again,
the cycle of eternal thought in the etherial
consiousness form which our 'creativity' is born
and drawn from is our way of reaching through the
fabric of space and time, takign form the past,
making it anew, and catupulting that action into the future
for another to grab in the intangible pain of thought,
that they might claim an idea as their own
when really it belongs to the cosmos.

this is the nature of the universe, my friend.
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #15  
Old 08-26-2002, 07:48 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
contexts

Nothign has inherent value? Then letters would have no value, neither would words, nor opinion, nor anything that was ever said by anyone. But that is not the case, or you would have not replied to my post.

Value is an abstract of potential worth and importance that varies from person to person - BUT each person has an inset internal subconsious heigherarchy of value - of good and bad, of right and wrong, sense of justice, etc.

I submit that there are certain truths in the universe that apply to everyone the same, and that to find out what they are is the subject of philosophy down through the ages. That there are some absolutes out there from which no one can escape.

And yes, perhaps the scope of my view of the cosmos was too wide when this is a little bitty graal forum with maybe a few dozen regular participants.

And while things that have not appeared on Graal before does not they have appeared on another video game before.
And if not in a game, then another program - or on paper - or form someone's train of thought - if not form this planet, then form another planet that we are totally unaware of.

The are a very large but limited amount of combinations of human DNA, and with six billion peopel on this planet alive now, not to mention that many and more who have lived and died since the beginings of humanity, no one is living now whose dna patterne - and possibly, thought processes - have not lived and happened before. Though lost to history with no record, i still think all has been done and we are doing it again, i know i can't back that up
but ... oh wait this is the scripting forum not philosophy class. heh
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
Reply


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:07 PM.


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