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 06-16-2002, 11:20 PM
BLOOD_kane BLOOD_kane is offline
Registered User
Join Date: Jun 2002
Location: Stephenville, TX, USA
Posts: 190
BLOOD_kane is on a distinguished road
Send a message via AIM to BLOOD_kane
Angry Little scripting problem

Ok I have this NPC that asks you a riddle. Before you talk to him if you say the correct answer nothing happens (i got this down) after you speak with him if you answer anything else BUT the right answer he dissapears and a baddy appears. if you kill the baddy he will re-appear like nothing happened and you have to ask him again, if you answer correctly he drops a gold rupee, my problem is while you are still saying the answer if you touch him he drops more rupees, and everytime after that if you say the answer he drops rupees BUT says You already answered (which i made him say if you got the right answer) It involvs alot of flags and im gonna post what i have of the script here (its kinda unorganized and messy and unfinished but its what i have so far)
I need help to where if you answer right, you cannot do the riddle ever again.

if (playerenters) {set riddle1;}
if (riddle1&&playersays(an address)) {say2 ;}
if (playertouchsme) {say 4;set riddle2;}
if (riddle2&&playersays(an address)){lay goldrupee;say2 Haha! Right!;set hasrupee;}
if (playertouchsme&&hasrupee) {say2 You've already answered!;}
if (riddle2&&playerchats&&!hasrupee) {say2 Wrong!;shootball;hide;putnewcomp lizardon,20.5,49,baddylizardon.png,10;}
if (compusdied) {say2 Let's try again;show;set riddle1;}

cant figure it all out...
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 05:42 AM.


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