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-31-2004, 08:54 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
A lil help plz?

Hi all!

Im trying to learn how to script "3D" things for Graal, but I have a problem wich I hope someone might be able to help me with....

How can i get a sword to rotate around the player in a 3D way, like in a Star Wars game or anything like that....?
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #2  
Old 08-31-2004, 12:24 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
1) You should of made the thread title more clear
2) Learn to walk before you try to run. Wait. Learn to stand. And to crawl. Learn that first. You can't just come in here and say 'tell me how to maek 3d scriptz plz.' It is extremely difficult to make one.
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #3  
Old 08-31-2004, 01:05 PM
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
No it is easy as hell just requires a hell of a lot of sprites.
Get out of here and go to the graphics forum ;o
__________________
Do it with a DON!
Reply With Quote
  #4  
Old 08-31-2004, 01:44 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
Quote:
Originally Posted by zokemon
No it is easy as hell just requires a hell of a lot of sprites.
Get out of here and go to the graphics forum ;o
Or just use showpoly

new script commands showpoly and showpoly2 for
displaying polygons:

showpoly index,{x1,y1,x2,y2,x3,y3,..};
showpoly2 index,{x1,y1,z1,x2,y2,z2,x3,y3,z3,..};

This commands displays a polygon on the specified
position. It will close the polygon (last coordinate to
first coordinate) and will fill the polygon.
If you only provide 4 numbers (e.g. showpoly 1,{10,10,20,20}
then it will draw a line (in this case from (10,10) to (20,20)).

For showpoly there exist following modifier commands:
- changeimgcolors index,red,green,blue,1;
- changes the colors, red/green/blue must be values between 0 and 1
- changeimgvis index,layer;
- tells graal where to display the polygon: 0 - under players,
1 - same layer liker players, 2 - over players (default),
4 - on the status bar, specified coordinates will work


Then again this is still hard to learn howto script something like a ball if you dont know howto script at all
__________________

Reply With Quote
  #5  
Old 08-31-2004, 04:40 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Quote:
Originally Posted by zokemon
No it is easy as hell just requires a hell of a lot of sprites.
Get out of here and go to the graphics forum ;o
Go read AmonRa's thread.
__________________
Reply With Quote
  #6  
Old 08-31-2004, 05:15 PM
VeX_RaT_Boy VeX_RaT_Boy is offline
WannaBe Scripter
VeX_RaT_Boy's Avatar
Join Date: Aug 2002
Location: Norway
Posts: 960
VeX_RaT_Boy is on a distinguished road
Send a message via ICQ to VeX_RaT_Boy Send a message via AIM to VeX_RaT_Boy Send a message via Yahoo to VeX_RaT_Boy
Quote:
Originally Posted by Gerami
Go read AmonRa's thread.
How the crap can he use showpoly to make it show his sword image? It is possible, but it would require a lot of time and skills.

Also, Zero is a very skilled scripter, so I don't think you should talk to him like he doesn't know what he is talking about.
__________________
-Kjetil Valen
Reply With Quote
  #7  
Old 08-31-2004, 05:41 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Quote:
Originally Posted by VeX_RaT_Boy
How the crap can he use showpoly to make it show his sword image? It is possible, but it would require a lot of time and skills.
Quote:
2) Learn to walk before you try to run. Wait. Learn to stand. And to crawl. Learn that first. You can't just come in here and say 'tell me how to maek 3d scriptz plz.' It is extremely difficult to make one.
Quote:
No it is easy as hell just requires a hell of a lot of sprites.
Get out of here and go to the graphics forum ;o
Make sense now? I was talking about 3D in general
__________________
Reply With Quote
  #8  
Old 08-31-2004, 05:56 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally Posted by Gerami
Make sense now? I was talking about 3D in general
When it comes to rendering 3Dness, there is a slidebar from scripting to graphics. So it either takes alot of scripting and few graphics, or alot of graphics and little scripting.
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #9  
Old 08-31-2004, 06:10 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
What excatly are you tring to make?
__________________

Reply With Quote
  #10  
Old 08-31-2004, 10:19 PM
Fry2 Fry2 is offline
Not really existant
Fry2's Avatar
Join Date: Jan 2002
Location: Germany
Posts: 29
Fry2 is on a distinguished road
Send a message via ICQ to Fry2
Its not entirely about scripting, of course you should know how to script or it would probably look like AmonRa's script (please don't get offended it wasn't mean negative ), the main part is about evil maths, personally I nearly die when I see this kind of math..
Talking about showpoly here, using sprites will be much easier so you should consider this.
__________________
Yes, I know my avatar doesn't fit to my name.
Reply With Quote
  #11  
Old 09-01-2004, 12:41 AM
Polo Polo is offline
Classic Systems Admin
Join Date: Sep 2002
Location: Vancouver, Canada
Posts: 735
Polo is on a distinguished road
Send a message via AIM to Polo
Considering thee original question, I would have just made a gani using a series of graphics...

I know that I have done the whole 3D thing, but seriously, whould you really go to such lengths for somthing which is only go to last a few seconds anyway? I imagine that with the size of the sword, and the fact that showpoly does not allow blending, that it would look pretty bad if done totally in script. :/
__________________
Be good little players, or Master Storm will ban you!



Proof that the staff are crazy..
*Ghost Pirate: I'm a little teacup short and stubbe here is my raygun here is my butt
DragonX: Jumping jack rabbits Batman! Our eggo waffles have been stolen! To the batmobile Robin!
X-Mann (RC): I have a head ache
Reply With Quote
  #12  
Old 09-08-2004, 08:51 PM
calani calani is offline
Scriptess
calani's Avatar
Join Date: Aug 2003
Location: asmgarden.gmap
Posts: 606
calani is on a distinguished road
Send a message via AIM to calani
I'd offer to help, but from your explination I can't make out exactly what it is you are trying to do.
__________________
Reply With Quote
  #13  
Old 09-08-2004, 08:56 PM
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
Quote:
Originally Posted by Dach
When it comes to rendering 3Dness, there is a slidebar from scripting to graphics. So it either takes alot of scripting and few graphics, or alot of graphics and little scripting.
Exactly!!!
__________________
Do it with a DON!
Reply With Quote
  #14  
Old 09-08-2004, 09:21 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
If you need to ask how to do it, chances are your skills aren't high enough to do it.
Reply With Quote
  #15  
Old 09-08-2004, 09:30 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Ok, in this forum you cant post scripts and you cant ask for help. So, Jagen, what exactly is the point of this forum? It seems whenever someone asks for help people bring down there confidence by making fun of them or saying they have skill. So, you know what they do?, they give up on scripting. If you havnt noticed, its hard for newcommers to learn how to script. It's not there fault, Stefan has just made it difficult since there really is no complete scripting tutorial like the one Gserver brought, and the offline editor is outdated.
Reply With Quote
  #16  
Old 09-09-2004, 03:32 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally Posted by Gambet
Ok, in this forum you cant post scripts and you cant ask for help. So, Jagen, what exactly is the point of this forum? It seems whenever someone asks for help people bring down there confidence by making fun of them or saying they have skill. So, you know what they do?, they give up on scripting. If you havnt noticed, its hard for newcommers to learn how to script. It's not there fault, Stefan has just made it difficult since there really is no complete scripting tutorial like the one Gserver brought, and the offline editor is outdated.
The point is that they try to learn on their own and not create a habit of comming to the forums for every little thing. There are two kinds of ways to ask for help. One of them is acceptable, one of them is not.

Not Acceptable:
"HOW CAN I MAKE SUP3R L33T EFFX! I WANT MY 0WN 3D W041D!"

Acceptable:
"I have attempted to create this and here is my evidence showing that. What am I doing wrong? Perhaps someone can provide some pointers or hints?"
Reply With Quote
  #17  
Old 09-09-2004, 03:46 AM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Python523
If you need to ask how to do it, chances are your skills aren't high enough to do it.

That, was uncalled for. You shouldnt judge someones skills based on a question they might have. Everyone needs/needed help at one point. If anything, you shouldve said something like "You should try it out before just going on the forums and posting. If your having trouble, paste the part of the script your having trouble with, and we'll try our best to help you. If you dont try it out yourself then you will never learn."

Since you like to comment on how people write, i decided to explain myself using your method.
Reply With Quote
  #18  
Old 09-09-2004, 09:53 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
First of all, I already know HOW to script it, I just need help with the MATH (I know, I should have said it in my first post)

Quote:
Originally Posted by VeX_RaT_Boy
Also, Zero is a very skilled scripter, so I don't think you should talk to him like he doesn't know what he is talking about.
Errrr.....? Zero never posted anything, did he?

Quote:
Originally Posted by ZeroTrack
What excatly are you tring to make?
Im trying to make a lightsaber,k and it's almoast done, just need the right maths so it rotates properly =/
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #19  
Old 09-09-2004, 10:50 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
Yes I did post (look at my singiture).
I highly suggest you use the sprites mothod rather then showpoly and showpoly will usualy look like crap.
__________________
Do it with a DON!
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 03:00 PM.


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