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 11-11-2004, 07:13 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
changeimgvis, wraptext2 and shoot problems

changeimgvis:
I can only go up to layer 20!
I was making an npc (I do not want to release the details on it) that requires a whole bunch of layers (must have them). I heard that layers go up to 200 but I got to 20 it it just didn't show it. Can this be upped or something?

wraptext2:
I can't seem to get the delimiters to work :/
Not a big deal but maybe someone can shead some light on this?

shoot:
when doing if (actionprojectile) in the control npc, the #p(0) and #p(1) and always slightly off (and not a constant number, always random). I tried actionsprojectile and actionprojectile2 and neither get called. (I am trying to make it so that you can throw an item and when it lands it will create a npc in its landing spot)

I have searched the forums for all three of these problems and have not found any anwsers.

Thanks for all the help you can give me
__________________
Do it with a DON!
Reply With Quote
  #2  
Old 11-11-2004, 10:44 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by zokemon
changeimgvis:
I can only go up to layer 20!
I was making an npc (I do not want to release the details on it) that requires a whole bunch of layers (must have them). I heard that layers go up to 200 but I got to 20 it it just didn't show it. Can this be upped or something?
An image that is more left and down than another image with the same layer will be drawn above the other. I don't know of a way to get more layers.

Quote:
Originally Posted by zokemon
wraptext2:
I can't seem to get the delimiters to work :/
Not a big deal but maybe someone can shead some light on this?
The text will only be split at the delimiter if the delimiter is at a point where the width of the text before it is less than or equal to the width specified and if the rest of the word is added, will be greater than the width specified.
Reply With Quote
  #3  
Old 11-12-2004, 05:59 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
Quote:
Originally Posted by Tolnaftate2004
An image that is more left and down than another image with the same layer will be drawn above the other. I don't know of a way to get more layers.
As I said, I have to use layers and what I am using will sometimes have to be to the to the right and up of another images and still be above... And it is mostly showpolys not showimgs (some showtexts also and a few showimgs)

Quote:
Originally Posted by Tolnaftate2004
The text will only be split at the delimiter if the delimiter is at a point where the width of the text before it is less than or equal to the width specified and if the rest of the word is added, will be greater than the width specified.
I totaly forgot that
Thanks!
__________________
Do it with a DON!
Reply With Quote
  #4  
Old 11-12-2004, 06:52 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by zokemon
As I said, I have to use layers and what I am using will sometimes have to be to the to the right and up of another images and still be above... And it is mostly showpolys not showimgs (some showtexts also and a few showimgs)
If you're using showpoly, you might be able to use showpoly2 and just use the z to move the poly up, and it might then show on top of the other polys.
Reply With Quote
  #5  
Old 11-13-2004, 08:36 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
I tried that and it does not work
__________________
Do it with a DON!
Reply With Quote
  #6  
Old 11-15-2004, 05:08 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
Quote:
Originally Posted by zokemon
I tried that and it does not work
I beg to differ;
PHP Code:
  this.= {0,1,0}
  
showpoly2 0,{x,y+this.z[0],this.z[0],x+1,y+this.z[0],this.z[0],x+1,y+1+this.z[0],this.z[0]};
  
showpoly2 1,{x,y+1+this.z[1],this.z[1],x+1,y+this.z[1],this.z[1],x+1,y+1+this.z[1],this.z[1]};
  
showpoly2 2,{x,y+.5+this.z[2],this.z[2],x+1,y+this.z[2],this.z[2],x+1,y+1+this.z[2],this.z[2]};
  
changeimgcolors 1,1,0,0,1;
  
changeimgcolors 2,0,1,0,1
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #7  
Old 11-15-2004, 07:33 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
Even if it does work, I still have text and images that has to be displayed on top of some of the polys and below other polys... I don't think those work with z...
__________________
Do it with a DON!
Reply With Quote
  #8  
Old 11-15-2004, 11:29 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
Quote:
Originally Posted by zokemon
Even if it does work, I still have text and images that has to be displayed on top of some of the polys and below other polys... I don't think those work with z...
showtext2 and showimg2 use z :P
__________________
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
  #9  
Old 11-16-2004, 01:36 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
I know that e.e but will they do the same thing as the polys would (in the case of showing one above another

EDIT:
I DID say that I am going layer 4 and above...
I tried doing that with showimg2, showtext2 and showpoly2 and it did not work at all... (keeping everything at layer 4)

The z does nothing when on the panel layer (layer 4)
__________________
Do it with a DON!

Last edited by zokemon; 11-16-2004 at 02:27 AM..
Reply With Quote
  #10  
Old 11-17-2004, 02:53 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
(Won't let me edit my message)
I also testing this without using laer 4 and above by using it all on same layer and with different z's and I found that polys will always show above the text and imgs if on same layer no matter what the z is (I need some polys over some text and under other text)
__________________
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 04:23 AM.


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