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 12-09-2001, 08:12 AM
FungusAmungus FungusAmungus is offline
Registered User
Join Date: Sep 2001
Location: USA
Posts: 10
FungusAmungus is on a distinguished road
Unhappy Does anyone know....

Does anyone know how o do attachplayertoobj i really need it for a draw bridge i am working on so if you know please reaspond to this.
Reply With Quote
  #2  
Old 12-09-2001, 08:21 AM
Sennema Sennema is offline
Registered User
Join Date: Nov 2001
Location: Ontario, Canada
Posts: 132
Sennema is on a distinguished road
Send a message via ICQ to Sennema Send a message via AIM to Sennema
you put

NPC Code:

if(playertouchsme){
attachplayertoobj value,value,value,value;
//Can't remember how many values, and dont have Graal on this comp
}
if(playerattached){
crap on this;
}



enjoy
__________________
~Draemus Windblade


Just over 90% of all messages have no point or meaning.

"In order to preserve ourselves we seek out and eliminate anything that may do use harm. In doing so, we destroy things that, though possibly hazzardous, may be important to survival. So you see, in trying to save ourselves, we ultimately bring about our own destruction"


Luminar
Reply With Quote
  #3  
Old 12-09-2001, 11:30 PM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Yoiu idiot, you probably confused him more then need be!

attachplayertoobj id,type;

you can leave the id as just that if you wanna attach the player to the current npc. The type will always be 1 unless Stefan adds another one (Maybe attaching to players?)
__________________

subliminal message: 1+1=3
Reply With Quote
  #4  
Old 12-09-2001, 11:40 PM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
mention that playerattached is a flag, not an event, so it needs to be inside an event, like this
NPC Code:

if (event) {
if (playerattached) {
commands();
}
}

Reply With Quote
  #5  
Old 12-09-2001, 11:53 PM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,746
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
How do I make this attachplayertoobj work with a bridge?I can't seem to figure this out.
__________________
Save Classic!
Reply With Quote
  #6  
Old 12-10-2001, 12:03 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
I will say this one more time. If you r a newbie scripter. Do not try to make l33t things. Stick tot he basics and work from there. You are trying to build a skyscrapper when you doint know how to pick up the wood yet.
__________________

subliminal message: 1+1=3
Reply With Quote
  #7  
Old 12-10-2001, 12:53 AM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,746
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
lol,I know how to script but I never used this command before.
It was just added to the commands.rtf when graal 2.1 was released.So I didn't know to much about it.
__________________
Save Classic!
Reply With Quote
  #8  
Old 12-10-2001, 03:39 AM
jeff335 jeff335 is offline
Registered User
Join Date: Oct 2001
Posts: 605
jeff335 is on a distinguished road
Falados, this script doesn't seem too tricky...so you don't need to get all uppity, it's not the Graal 2001 systemnpc or something.
__________________

Quote:
Some people like standing around talking to idiots in the real world, and some don't. Neither choice is inherently better than the other.

-Kaimetsu
Reply With Quote
  #9  
Old 12-10-2001, 03:48 AM
jeff335 jeff335 is offline
Registered User
Join Date: Oct 2001
Posts: 605
jeff335 is on a distinguished road
Falados, this script doesn't seem too tricky...so you don't need to get all uppity, it's not the Graal 2001 systemnpc or something. Setshape2 is a simple command, and attachplayertoobj (though tricky) is worth learning, even for noobs
__________________

Quote:
Some people like standing around talking to idiots in the real world, and some don't. Neither choice is inherently better than the other.

-Kaimetsu
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 03:45 PM.


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