Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   A lil help plz? (https://forums.graalonline.com/forums/showthread.php?t=55149)

xXziroXx 08-31-2004 08:54 AM

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....?

GoZelda 08-31-2004 12:24 PM

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.

zokemon 08-31-2004 01:05 PM

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

ZeroTrack 08-31-2004 01:44 PM

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 :\

Crono 08-31-2004 04:40 PM

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.

VeX_RaT_Boy 08-31-2004 05:15 PM

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.

Crono 08-31-2004 05:41 PM

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

Dach 08-31-2004 05:56 PM

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.

ZeroTrack 08-31-2004 06:10 PM

What excatly are you tring to make?

Fry2 08-31-2004 10:19 PM

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.

Polo 09-01-2004 12:41 AM

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. :/

calani 09-08-2004 08:51 PM

I'd offer to help, but from your explination I can't make out exactly what it is you are trying to do.

zokemon 09-08-2004 08:56 PM

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!!!

Python523 09-08-2004 09:21 PM

If you need to ask how to do it, chances are your skills aren't high enough to do it.

Gambet 09-08-2004 09:30 PM

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.

Python523 09-09-2004 03:32 AM

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?"

Gambet 09-09-2004 03:46 AM

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.

xXziroXx 09-09-2004 09:53 AM

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 =/

zokemon 09-09-2004 10:50 AM

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.


All times are GMT +2. The time now is 08:13 AM.

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