Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-02-2003, 07:14 PM
melissa1988 melissa1988 is offline
Fruitty Jewel of Flavor
melissa1988's Avatar
Join Date: Dec 2002
Posts: 992
melissa1988 is on a distinguished road
Send a message via AIM to melissa1988 Send a message via Yahoo to melissa1988
if (playersays) problem

Hey, I've never done scripting before and I'm just starting to learn a little bit. Would anyone be kind enough to tell me what I did wrong with this little script I made? It works for the most part, but some parts won't

NPC Code:
  
if (playertouchsme) {message Welcome to my room!;sleep 3;message Do you like punk?;sleep 3;
if (playersays(yes)) {message Really? I LOVE punk!;sleep 3;message You got any liquor?;sleep 3;
if (playersays(yes)) {message Cool! Give me some shots!;sleep 3;
if (playersays(no)) {message Aww...You're no fun...;}}}
}
if (playersays(no)) {message You're *** then! Punk rules!;sleep 3;
if (playersays(**** you)) {message No thanks, I have your mom for that!;sleep 3;
if (playersays(shut up pickles!)) {message No you shut up!;shootnuke down;}}
}
if (playerisfemale) {message Hey baby wanna screw?;sleep 3;
if (playersays(no)) {message That's okay, you're just one of millions!;sleep 3;
if (playersays(yes)) {message Go lay in the bed! I'll be there...;sleep 3;
if (playersays(okay)) {message Go lay in the bed! I'll be there...;sleep 3;}}}
}
if (playeronhorse) {message Get off that horse you ****! You're trackin' mud on my floor!;sleep 3;
}
if (wa****) {message Ouch! Take this ya ****!;shootnuke down;
}


the parts that don't work are the (playersays(no)) {message Aww...you're no fun}, (playersays(**** you)) {message No thanks...}. and a few others i think...
I'm still learning this so it's probably something stupid so I appologize to all the scripting gurus here. I've been searching all over the place for someone to help, so this is my last resort. Thanks in advance. I'm not asking for someone to fix my code, but for someone to tell me how to fix it or suggest a better way to do this.. thanks
Reply With Quote
 


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 08:59 PM.


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