Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   changeimgvis, wraptext2 and shoot problems (https://forums.graalonline.com/forums/showthread.php?t=56003)

zokemon 11-11-2004 07:13 PM

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

Tolnaftate2004 11-11-2004 10:44 PM

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.

zokemon 11-12-2004 05:59 AM

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!

Tolnaftate2004 11-12-2004 06:52 AM

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.

zokemon 11-13-2004 08:36 PM

I tried that and it does not work

Dach 11-15-2004 05:08 AM

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


zokemon 11-15-2004 07:33 AM

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

Polo 11-15-2004 11:29 AM

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

zokemon 11-16-2004 01:36 AM

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)

zokemon 11-17-2004 02:53 AM

(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)


All times are GMT +2. The time now is 04:34 PM.

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