Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-28-2011, 06:38 PM
Maelstrom002 Maelstrom002 is offline
Registered User
Join Date: Aug 2011
Location: Canada, MB
Posts: 5
Maelstrom002 is on a distinguished road
Online showpoly() Creator

Hi everyone,

I got tired of grabbing x&y information off of editor to create some of the
more complex showpolys() I was making, and decided to toy around
and make something that could do it for me.

The script displays a single tile sized poly where your mouse is, and upon left click will place a poly representing the node you've created. As you continue placing nodes the showpoly that it will eventually print out will be displayed as you make it so you can see what the final product will result in.
When placing nodes it will also determine if the form is of an corner and adjust to the proper x&y coords, which is why I used two sets of values & arrays.

Once you right click it will end your ability to place nodes, and print out the array in the F2 Logs.

( The one thing I was unable to fix is that to finish off the poly nicely,
you'll need to place a node on the same spot as your first node, otherwise
it wont correct the corner because not enough nodes have been placed
for it to determine its an inside corner, however depending on the shape of the poly, you may not even run into this issue.

I also suggest starting from the top-left corner of your poly shape. )

Any feedback is appreciated!
Attached Thumbnails
Click image for larger version

Name:	polycreator_1.png
Views:	408
Size:	108.3 KB
ID:	53582   Click image for larger version

Name:	polycreator_2.png
Views:	348
Size:	62.5 KB
ID:	53583  
Attached Files
File Type: txt PolyCreator.txt (8.2 KB, 310 views)
Reply With Quote
 


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:16 AM.


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