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 06-12-2006, 07:47 PM
wild8900 wild8900 is offline
Mr. Brightside
wild8900's Avatar
Join Date: Dec 2005
Posts: 418
wild8900 is an unknown quantity at this point
Send a message via MSN to wild8900
setshape2 problem- no effect on water

I made this script to test the effect on water like a boat, I read that '0' would be treated as land but when I tested it offline, it was treated as nothing. I also used 3 like a chair in the water but nothing happened. This stuff worked on land though I need someone to tell me my error. Maybe its a syntax error..?
PHP Code:
//#CLIENTSIDE
if (created) {
  
drawunderplayer;
  
setshape2 2,2,{
    
0,0,
    
0,0,
    };

__________________
Reply With Quote
  #2  
Old 06-12-2006, 08:39 PM
contiga contiga is offline
Graal2001 Administration
contiga's Avatar
Join Date: Jul 2004
Location: Netherlands
Posts: 419
contiga is an unknown quantity at this point
Send a message via ICQ to contiga Send a message via AIM to contiga Send a message via MSN to contiga Send a message via Yahoo to contiga
Try adding blockagain;
__________________
AIM: Contiga122
MSN: [email protected]
Status:
Quote:
Originally Posted by unixmad View Post
I am also awake 3AM to help correct problems.
Quote:
Originally Posted by Bomy Island RC people
Daniel: HoudiniMan is a bad guy =p
*Bell: rofl. I first read that as houdini is a bad man. like the little kid that wants his mommy to keep her away from that boogie man
Daniel: xD
*Rufus: I wouldn't want my kids around him.
Reply With Quote
  #3  
Old 06-12-2006, 09:54 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
AFAIK theres no error, you need to attach the player to the object in order to make it work right
from my experience same thing is if you want to make a non blocking object over a wall, the wall will block even if you set the shape to a non-blocking tile. You need to attach the player to the npc

hi contiga
Reply With Quote
  #4  
Old 06-16-2006, 06:14 AM
Omini Omini is offline
Millenium Owner
Join Date: Feb 2006
Location: N.Ireland
Posts: 293
Omini is on a distinguished road
Send a message via AIM to Omini Send a message via MSN to Omini Send a message via Yahoo to Omini
I was always under the impression that 0 in setshape2 was just a "dontblock;" tile...
__________________



Reply With Quote
  #5  
Old 06-16-2006, 09:05 AM
contiga contiga is offline
Graal2001 Administration
contiga's Avatar
Join Date: Jul 2004
Location: Netherlands
Posts: 419
contiga is an unknown quantity at this point
Send a message via ICQ to contiga Send a message via AIM to contiga Send a message via MSN to contiga Send a message via Yahoo to contiga
hi sheepy

Yes, you are correct, use attachtoobj #v(id); I believe.. not used to that command.
__________________
AIM: Contiga122
MSN: [email protected]
Status:
Quote:
Originally Posted by unixmad View Post
I am also awake 3AM to help correct problems.
Quote:
Originally Posted by Bomy Island RC people
Daniel: HoudiniMan is a bad guy =p
*Bell: rofl. I first read that as houdini is a bad man. like the little kid that wants his mommy to keep her away from that boogie man
Daniel: xD
*Rufus: I wouldn't want my kids around him.
Reply With Quote
  #6  
Old 06-19-2006, 02:26 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
Quote:
Originally Posted by Omini
I was always under the impression that 0 in setshape2 was just a "dontblock;" tile...
kinda put if u place such an npc over a wall, it doesnt overwrite the block of the wall...
u need to attach the player to the npc(obj) to make it overwrite the block of the wall =/
Reply With Quote
  #7  
Old 06-19-2006, 06:39 PM
Malinko Malinko is offline
Unholy Nation
Join Date: Mar 2004
Location: Massachusetts, U.S.A.
Posts: 1,782
Malinko is on a distinguished road
Send a message via AIM to Malinko
Quote:
Originally Posted by Omini
I was always under the impression that 0 in setshape2 was just a "dontblock;" tile...
22!
Reply With Quote
  #8  
Old 06-20-2006, 01:43 AM
wild8900 wild8900 is offline
Mr. Brightside
wild8900's Avatar
Join Date: Dec 2005
Posts: 418
wild8900 is an unknown quantity at this point
Send a message via MSN to wild8900
well, I am trieing to make a couch that you can move around and sit on but how can I make it be a normal couch when I have attach the player to the couch x.x


PHP Code:
if (actionleftmouse&&(strequals(#a,wild8900)||strequals(#a,Admin-Playerworld79))) {
  
this.move=1-this.move;
}

if (
created||timeout){
  if (
this.move==1){
    
x=int(mousex-0.5);
    
y=int(mousey-0.5);
  }

  
timeout=0.05;
}

//#CLIENTSIDE
if (created){
  
dontblock;
  
drawunderplayer;
  
setshape2 8,4,{
    
00,22,22,22,22,22,22,00,
    
22,03,03,03,03,03,03,22,
    
22,03,03,03,03,03,03,22,
    
22,03,03,03,03,03,03,22,
      };

__________________
Reply With Quote
  #9  
Old 06-20-2006, 03:53 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
You don't have to use attachplayertoobj, unless you are planning on having a couch that is floating in the water, or on a bunch of blocking tiles.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #10  
Old 06-20-2006, 08:44 AM
wild8900 wild8900 is offline
Mr. Brightside
wild8900's Avatar
Join Date: Dec 2005
Posts: 418
wild8900 is an unknown quantity at this point
Send a message via MSN to wild8900
Well, the couch will be on normal unblocking tiles but I need some of the couch to block you.
PHP Code:
  setshape2 8,4,{
    
00,22,22,22,22,22,22,00,
    
22,03,03,03,03,03,03,22,
    
22,03,03,03,03,03,03,22,
    
22,03,03,03,03,03,03,22,
      }; 
__________________
Reply With Quote
  #11  
Old 06-20-2006, 02:19 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
as apothi already said, you dont need to attach the player if u dont plan on:
a) put the couch on water or a wall
b) put the couch over blocking level tiles
c) want players to move with the couch
Reply With Quote
  #12  
Old 06-20-2006, 04:21 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by wild8900
Well, the couch will be on normal unblocking tiles but I need some of the couch to block you.
PHP Code:
  setshape2 8,4,{
    
00,22,22,22,22,22,22,00,
    
22,03,03,03,03,03,03,22,
    
22,03,03,03,03,03,03,22,
    
22,03,03,03,03,03,03,22,
      }; 
If a setshape2 is located on non-blocking tiles, then it takes whatever is specified in the setshape. If you specify blocking tiles, they will block, if you specify sit tiles, they will sit, if you specify water tiles, you will swim. You get the picture.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #13  
Old 06-20-2006, 11:30 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
not correct
water is a non-blocking tile too but you need to attach the player to make him sit on a couch on water
Reply With Quote
  #14  
Old 06-21-2006, 12:06 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by projectigi
not correct
water is a non-blocking tile too but you need to attach the player to make him sit on a couch on water
<_< You know what I meant. Water isn't specifically non-blocking anyway, it's a different type of tile.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #15  
Old 06-21-2006, 04:57 AM
wild8900 wild8900 is offline
Mr. Brightside
wild8900's Avatar
Join Date: Dec 2005
Posts: 418
wild8900 is an unknown quantity at this point
Send a message via MSN to wild8900
but I tried the couch and it didnt work (it was on plain grass land)
__________________
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 09:12 AM.


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