Author Topic: Free stuff for you  (Read 11371 times)

0 Members and 1 Guest are viewing this topic.

Offline Grog

  • The Absentminded Overlord
  • Administrator
  • Level 1
  • *****
  • Posts: 423
  • Karma: +1/-0
  • Gender: Male
    • View Profile
    • Welcome to Auril's Bane
Re: Free stuff for you
« Reply #15 on: July 15, 2007, 09:08:35 PM »
Quote
A very common error throughout BG/BG2, there are many, many broken Dead() checks for other creatures. It's typically a double issue: the checks read something like Dead("YSELF)"), which is presumably intended as Dead(Myself). However, since Dead() only accepts DVs and not object references, it's replaced with a custom StateCheck (it's added to states.ids) of StateCheck(Myself,STATE_REALLY_DEAD).

HPLT(Myself,1) also works :P
"Even if you fall on your face, you're still moving forward."  - Victor Kiam

Offline Solaufein

  • Lord of the Realms
  • Administrator
  • Level 5
  • *****
  • Posts: 5134
  • Karma: +127/-19
  • Gender: Male
  • Man against the Machine
    • ICQ Messenger - 251194643
    • Yahoo Instant Messenger - gscott7833
    • View Profile
    • http://teambg.net
Re: Free stuff for you
« Reply #16 on: July 16, 2007, 05:42:46 AM »
I always got a kick out of this one,
Quote
StateCheck(Myself,STATE_REALLY_DEAD)
. Are you sure? Maybe its REALLY_REALLY_DEAD.  :D
My mods:
Dark Horizons
The Undying
Nikita
IWD2 store

Co-contributor:
Dark Side of the Sword Coast BG1 Weidu
Aurils Bane
Encounters
Saerileth
Baldur's Gate - Enhanced Edition beta tester
Baldur's Gate 2 - Enhanced Edition beta tester
Icewind Dale - Enhanced Edition beta tester