Jump to content

Photo

Quick question:


3 replies to this topic

#1 Domi

Domi

    Where is now your Troy, O Cassandra?

  • Gibberlings
  • 12706 posts
  • Gender:Male
  • Location:Canada

Posted 23 July 2004 - 09:32 AM

if I use:

IF ~~ ClassSpecific
SAY ~Blah, blah,bla~
IF ~Class(Player1, THIEF_ALL)~ THEN GOTO AnswerforThief
IF ~Class(Player1, FIGHTER_ALL)~ THEN GOTO AnswerforFighter
....every other class under the sun...
END

and Player1 is multy or dual-class, which class it will send the reply to? to the first mentioned? or will it confuse the system?
Faster. Faster. Faster would be better. -Mal Reynolds, Serenity
I understand that folks prefer code that works. -CamDawg, G3

#2 Grim Squeaker

Grim Squeaker

    Utter Bastard

  • Gibberling Poobah
  • 3298 posts
  • Gender:Male
  • Location:Hovering around London

Posted 23 July 2004 - 10:03 AM

I believe it reads them bottom up so it would do the Fighter one.

"Leave me be, I don't want to argue.
I just get confused and I come all undone.
If I agree, well it's just to appease you,
'Cause I don't remember what we're fighting for."


#3 Domi

Domi

    Where is now your Troy, O Cassandra?

  • Gibberlings
  • 12706 posts
  • Gender:Male
  • Location:Canada

Posted 23 July 2004 - 10:06 AM

Thank you.
Faster. Faster. Faster would be better. -Mal Reynolds, Serenity
I understand that folks prefer code that works. -CamDawg, G3

#4 Loriel

Loriel
  • Modders
  • 39 posts
  • Gender:Male

Posted 23 July 2004 - 10:32 AM

Grim Squeaker is right. I wanted to know as well, so I loaded the dplayer scripts with this snippet:

IF
  HotKey(L)
THEN
  RESPONSE #100
    SetDialog("jmtest")
    StartDialogNoSet(Myself)
END

and this was the contents of JMTEST.DLG:

IF ~Global("JMTEST","LOCALS",0)~ THEN BEGIN 0
  SAY ~This is a test~
  IF ~Class(Myself,THIEF_ALL)~ THEN GOTO 1
  IF ~Class(Myself,MAGE_ALL)~ THEN GOTO 2
END

IF ~~ THEN BEGIN 1
  SAY ~I'm a thief~
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 2
  SAY ~I'm a mage~
  IF ~~ THEN EXIT
END

Then, I started a new game with a new Elven Mage/Thief. At first chance, I had Imoen talk to herself, and she told me she's a mage. When I talked to myself, I told myself the same thing.



Reply to this topic



  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users