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 09-10-2003, 04:56 AM
mewtoo18 mewtoo18 is offline
Registered User
Join Date: Sep 2003
Location: Southbend IN
Posts: 41
mewtoo18 is on a distinguished road
How do i make the screen liek dvd player?

so it has black on top and bottom so it shows more i nwidth than height
Reply With Quote
  #2  
Old 09-10-2003, 05:00 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Simplest solution: Showpoly some black areas in there.
__________________
Reply With Quote
  #3  
Old 09-10-2003, 05:02 AM
mewtoo18 mewtoo18 is offline
Registered User
Join Date: Sep 2003
Location: Southbend IN
Posts: 41
mewtoo18 is on a distinguished road
huh?

huh? showpoly? like how do i use it?
Reply With Quote
  #4  
Old 09-10-2003, 05:10 AM
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
newfeatures.txt

but, I'll let the first one be free
Quote:
- 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
as screen coordinates instead of world coordinates
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #5  
Old 09-10-2003, 05:11 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Read newfeatures2002.txt...

But for sakes:

NPC Code:
showpoly index,{x1,y1,x2,y2,...}



It can keep going beyond one set of coordinates, and it will basicly draw a line to each coordinate in order and fill in any spaces with a solid color.

NPC Code:

showpoly 0{
playerx,playery,
playerx+2,playery,
playerx+2,playery+2,
playerx,playery+2
};

Reply With Quote
  #6  
Old 09-12-2003, 06:59 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
Draw a square polygon...

NPC Code:

showpoly [index],{playerx-2,playery,playerx+2,playery,playerx+2,playery+2,pl ayerx-2,playery+2};



but then with screenwidth and screenheight
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
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 10:51 AM.


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