Author Topic: Check in .d or .baf?  (Read 1485 times)

Offline Cameron

  • Luke
  • Planewalker
  • *****
  • Posts: 9
  • Gender: Male
  • Mistakes mean nothing unless you regret them
Check in .d or .baf?
« on: June 10, 2004, 06:51:50 PM »
Do I need to check in the .d or is checking in the baf enough.

This is from the Banterpack, soa.d file

Code: [Select]
~See(Player1)
!StateCheck(Player1,STATE_SLEEPING)
Global("feudplot","GLOBAL",2)
Global("loganmantle","GLOBAL",2)
!Global("GrovePoisoned","GLOBAL",1)
!Dead("trfued01")
!Dead("trfued05")
!Dead("trgeni01")
Dead("Shadel")

I have been doing this:
in the baf:
~See(Player1)
Global("feudplot","GLOBAL",2)
Global("MyVariable","GLOBAL",0)
!Dead("trfued01")
!Dead("trfued05")
!Dead("trgeni01")
Dead("Shadel")
THEN
RESPONSE #100
SetGlobal("MyVariable","GLOBAL",1)
Dialog(Myself)
END

in the .d:
IF ~SetGlobal("MyVariable","GLOBAL",1)~ THEN BEGIN whatever
SAY ~etc...~


So, basically, what I want to know is: Do I need to check in the .d like in the Banterpack or is checking in the .baf enough? 
Swift as the wind
Silent as a forest
Fierce as fire
Immovable as a mountain
Sun Tzu (403-221 B.C.)

One should have insight into this world of dreams that passes in the twinkling of an eye.
Hojo Shigetoki (1198-1261)

Offline jcompton

  • Niche Exploiter
  • Administrator
  • Planewalker
  • *****
  • Posts: 7246
Re: Check in .d or .baf?
« Reply #1 on: June 10, 2004, 07:15:04 PM »
Yes. Basically, when you use scripting to initiate dialogue, you want a (usually high-weighted) state trigger in the DLG which will match what you just set, so in this case, Global("MyVariable","GLOBAL",1)

Cespenar says, "Kelsey and friends be at the Pocket Plane? Ohhh yesssss!" http://www.pocketplane.net

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: