Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-11-2005, 05:37 AM
raiden0899 raiden0899 is offline
Registered User
raiden0899's Avatar
Join Date: Oct 2004
Posts: 192
raiden0899 is on a distinguished road
Question Showpoly (GS2)

Could someone explain showpoly(); and showpoly2(); to me?

Please don't just link me to the Graal Wiki page, I have already looked there and all it said was:
NPC Code:
showpoly(float,array);
showpoly2(float,array);

Reply With Quote
  #2  
Old 09-11-2005, 05:45 AM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
NPC Code:

showpoly(index, {x1,y1,x2,y2,etc});
showpoly2(index, {x1,y1,z1,x2,y2,z2,etc});

__________________
Liek omigosh.

Reply With Quote
  #3  
Old 09-11-2005, 05:48 AM
Sildae Sildae is offline
Elven sorceress!
Sildae's Avatar
Join Date: Dec 2001
Location: Lothlòrien
Posts: 159
Sildae is on a distinguished road
If it is anything like old gscript, the first parameter is an img index, similar to the first parameter of showimg, and the array specifies coordinates of each vertex of the polygon. For the showpoly version, the array goes {x1, y1, x2, y2, x3, y3, ..., xn, yn}, each vertex is connected to the next and the last is connected to the first and the whole is filled with white. showpoly2 is the same, except you get to specify a z coordinate after each y coordinate.
If that works, you should probably tell the wiki about it.
__________________
"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man."
-- George Bernard Shaw
Reply With Quote
  #4  
Old 09-11-2005, 06:51 AM
raiden0899 raiden0899 is offline
Registered User
raiden0899's Avatar
Join Date: Oct 2004
Posts: 192
raiden0899 is on a distinguished road
Thanks .
Reply With Quote
Reply

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 09:06 AM.


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