Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   setshape2 (https://forums.graalonline.com/forums/showthread.php?t=35360)

zorakid2001 08-08-2002 07:41 AM

setshape2
 
could some1 help me w/ using setshape2! i thought i knew what i was doing but.. yet again i was wrong i cant quite get oit so that i can see the tiles \ but i can make it so that it is a certain shape

Falcor 08-08-2002 09:09 AM

setshape2 width,heigh,{typearray};

example
NPC Code:

setshape2 5,5,{
0, 0, 0, 0, 0,
0,22,22,22, 0,
0,22,22,22, 0,
0,22,22,22, 0,
0, 0, 0, 0, 0,
}



the numbers are the tiles's type (blicking, none blocking, bed tile, jumptile) for the full list, searchfor setshape2 in your newfeatures2001.txt, that txt file can be found in your graal folder.

RavenTelvecho 08-08-2002 09:57 AM

or if you feel lazy :) ...
setshape2 width,height,{tiletypes,...}
Lets the npc behave like a level, which means you can set
what size it has (in tiles) and how the tiles behave;
e.g. do setshape2 2,2,{3,3,3,3}; to make an npc that behaves
like a chair. Following tile types are supported:
0 nonblocking
2 hurting underground
3 chair
4 bed upper side
5 bed lower side
6 swamp
7 lava swamp
8 near water
9 near lava
11 water
12 lava
20 throw-through (fences)
21 jumping stone
22 blocking tile

zorakid2001 08-08-2002 11:32 AM

thnx
 
thnx you guys very very much!

zorakid2001 08-08-2002 11:57 PM

no 1 or 10?

Andor_RC14 08-09-2002 12:30 AM

does taht work clientside, serverside, or both?

Falcor 08-09-2002 04:23 AM

clientside only


All times are GMT +2. The time now is 06:22 AM.

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