Jump to content


Photo

"Invisible" Errors


  • Please log in to reply
26 replies to this topic

#21 weimer

weimer
  • Member
  • 1569 posts

Posted 27 September 2002 - 01:12 PM

Syntax: IF~Condition~EXIT is fine, space is almsot always optional in Weimer-land.

The period is not currently a valid label character, but it will be in the next release.

It is important conceptually to separate difficulties with Infinity Engine scripting from difficulties with WeiDU. Questions like "what is a global variable" are all about IE Scripting. We're happy to answer them here, but you should note that WeiDU doesn't care at all what you put ~inside tildes~. It passes it verbatim to the game engine which interprets it later.

If you really want us to debug your D file, do the following things:
(1) Post the text of the D file here (in a CODE block, say)
(2) Post the exact complete output of WeiDU as well (cut and paste from the shell). In particular, do not "sort of kind of copy what you think are the important bits" -- copy it all.

We should be able to resolve problems rapidly.

#22 Teno20

Teno20

    Many-as-One

  • Member
  • 40 posts

Posted 27 September 2002 - 01:16 PM

Here it is. When this is sorted out, I'll get the rest done

BEGIN Ysera

IF ~NumTimesTalkedTo(0)~ THEN BEGIN FirstMeeting
SAY ~Hmm?~
IF ~Gender(Player1,FEMALE)~ THEN REPLY ~Hello?~ GOTO GreetF
IF ~Gender(Player1,MALE)~ THEN REPLY ~Hello?~ GOTO GreetM
END

IF ~~ THEN BEGIN GreetF
SAY ~Well hello... (She scans her eyes down your body, and stops at your feet, before looking back up at your face) I just love a woman who looks like she can take the rough with the smooth. Tell me, are you in need of a traveling companion? My name is Ysera, and can't wait to know yours~
IF ~~ THEN REPLY ~Sure. You look like you can take care of yourself too. I would be happy to have you keep me company~ GOTO Check
IF ~~ THEN REPLY ~Alright, but I aren't the kind of woman you think I am~ GOTO Upset
IF ~~ THEN REPLY ~No thanks, I don't want anyone else with me~ GOTO Persuade
IF ~~ THEN REPLY ~No way! I don't want anyone like you with me. Off with you!~ GOTO Angry
END

IF ~~ THEN BEGIN GreetM
SAY ~Hello, I am Ysera. I suppose you want me to come help you~
IF ~~ THEN REPLY ~Sure... Can always do with someone as beautiful as you along~ GOTO Join
IF ~~ THEN REPLY ~No thank-you, I don't need any help at the moment.~ GOTO Refuse
IF ~~ THEN REPLY ~Get away from me! I don't want you anywhere around me. Begone!~ GOTO Angry
END

IF ~~ THEN BEGIN Check
SAY ~It's so good of you to take me with you. I'll make sure it's all worthwhile. (She winks at you)~
IF ~~ THEN REPLY ~Oooh, behave, you. *giggle*~ GOTO Flirt
IF ~~ THEN REPLY ~Err...that's not what I meant... I didn't mean it like that.~ GOTO Upset
IF ~~ THEN REPLY ~Err... I've changed my mind. I don't want you with me.~ GOTO Persuade
END

IF ~~ THEN BEGIN Upset
SAY ~Oh... sorry. Oh well... guess I can't have everything. (She looks down at her feet)~
IF ~~ THEN REPLY ~Well... I suppose it can't hurt...~ GOTO Flirt
IF ~~ THEN REPLY ~(Say Nothing)~ GOTO GiveUp
END

IF ~~ THEN BEGIN Persuade
SAY ~Hey, come on... I am more useful than any weapon, and more beautiful. Why do you not want me with you?~
IF ~~ THEN REPLY ~Well, now that you put it that way...~ GOTO Unsure
IF ~~ THEN REPLY ~Sorry, I have too many with me as it is, best you stay here for now.~ GOTO Leave
IF ~~ THEN REPLY ~Simply because I am better than you, and I don't want to associate myself with you!~ GOTO Angry
END

IF ~~ THEN BEGIN Angry
SAY ~Well fine! I'll just have to go and find somewhere else. Good-bye, and I don't want to see you again!~
IF ~~ THEN DO ~EscapeArea()~
IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN Join
SAY ~Hmm... (she looks like shes eyeing you up) Very well...~
IF ~~ THEN REPLY ~Glad to have you join us~ GOTO Welcome
IF ~~ THEN REPLY ~You don't sound too happy~ GOTO Reply
IF ~~ THEN REPLY ~Well if that's how you're going to be, then begone!~ GOTO Angry
END

IF ~~ THEN BEGIN Refuse
SAY ~Very well, you know where to find me if you change your mind.~
IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN Flirt
SAY ~Well, now, I can see that we're going to have a great time~
IF ~~ THEN REPLY ~*Giggle* Well, you haven't even experienced what a woman like me can do~ GOTO FBack
IF ~~ THEN REPLY ~You said it!~ GOTO LetsGo
END

IF ~~ THEN BEGIN FBack
SAY ~Oh really? Well I guess there's going to be no end of our pleasure together, but it's best we move on.~
IF ~~ THEN REPLY ~Oooh, I can't wait~ GOTO LetsGo
END

IF ~~ THEN BEGIN LetsGo
SAY ~Well, let's go, my sweet~
IF ~~ THEN DO ~SetGlobal("YseraJoined","LOCALS",1) JoinParty()~
IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN GiveUp
SAY ~Oh I give up, I guess you can't be persuaded. *Sigh* Well, let's go~
IF ~~ THEN DO ~SetGlobal("YseraJoined","LOCALS",1) JoinParty()~
IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN Unsure
SAY ~And that means?~
IF ~~ THEN REPLY ~Let's go, and we'll talk about it later~ GOTO Accepted
IF ~~ THEN REPLY ~Nah, too full. If I lose someone, I'll come and get you.~ GOTO Leave
IF ~~ THEN REPLY ~No way!~ GOTO Angry
END

IF ~~ THEN BEGIN Accepted
SAY ~Well, I'll have to try to persuade you again later.~
IF ~~ THEN DO ~SetGlobal("YseraJoined","LOCALS",1) JoinParty()~
IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN Leave
SAY ~Very well, you know where I'll be.~
IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN Welcome
SAY ~Bet you are~
IF ~~ THEN DO ~SetGlobal("YseraJoined","LOCALS",1) JoinParty()~
IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN Reply
SAY ~Well, I don't really go for men. I was looking for a woman actually, but I guess we'll find one on the way.~
IF ~~ THEN REPLY ~Well just my luck to find a beautiful lesbian. *sigh* let's go~ GOTO Party
IF ~~ THEN REPLY ~Oh... OK then, well, anyway, let's go.~ GOTO Party
END

IF ~~ THEN BEGIN Party
SAY ~Very well~
IF ~~ THEN DO ~SetGlobal("YseraJoined","LOCALS",1) JoinParty()~
IF ~~ THEN EXIT
END
Posted Image

#23 weimer

weimer
  • Member
  • 1569 posts

Posted 27 September 2002 - 04:34 PM

Line 46:

IF ~~ THEN DO ~EscapeArea()~

needs an "EXIT" at the end.

Same with lines 75 and 81 and 94 and 106 *and* 118:

IF ~~ THEN DO ~SetGlobal("YseraJoined","LOCALS",1) JoinParty()~

*Every* transition needs to end in either EXIT, GOTO or EXTERN. Infinity Engine Rules, sorry.

Fixing these causes your D file to compile.

By the way, I *highly* recommend *against* using "Reply" as a state label. It's very close to a WeiDU keyword.

#24 Teno20

Teno20

    Many-as-One

  • Member
  • 40 posts

Posted 27 September 2002 - 10:06 PM

Thanks :D it worked!

Anyway, just out of interest, is it pronounced Vee-do, Vie-du, wee-du, or wei-du
Posted Image

#25 -jcompton-

-jcompton-
  • Guest

Posted 27 September 2002 - 10:44 PM

Why-D-U. At least, that's how I say it, and I helped coin it, so even if by chance Wes pronounces his last name differently, I'm afraid it doesn't matter. :)

#26 Gospel

Gospel
  • Member
  • 338 posts

Posted 27 September 2002 - 11:01 PM

Me'sa say "Way-Dew" :D

Dew is like a bunny's name! *purrs* :)
Is kitty :)

#27 Teno20

Teno20

    Many-as-One

  • Member
  • 40 posts

Posted 28 September 2002 - 02:06 AM

Thanks Weimar, it's going great now! I havethe basics sorted now, just have the rest to do

(what am i saying, JUST?!?!)
Posted Image