Jump to content


Photo

Problem in BG2's script edit


  • Please log in to reply
2 replies to this topic

#1 Cursed_One

Cursed_One
  • Member
  • 2 posts

Posted 18 August 2004 - 04:49 AM

Hello everybody.I got a problem in BG2 script edition.

I wrote a script in order to do this effect: when a bountyhunter is in shadow(hide in shadow/invisible/improved invisibility),auto cast spell zshl01.spl on him;when he is not in shadow,auto cast zshl01e.spl on him.

----------------------------------------

IF
Global("zshl01","GLOBAL",0)
Kit(Player1,BOUNTYHUNTER)
OR(2)
StateCheck(Player1,STATE_INVISIBLE)
StateCheck(Player1,STATE_IMPROVEDINVISIBILITY)
THEN
RESPONSE #100
ApplySpellRES("zshl01",Player1)
SetGlobal("zshl01","GLOBAL",11)
Continue()
END

IF
Global("zshl01","GLOBAL",11)
!StateCheck(Player1,STATE_INVISIBLE)
!StateCheck(Player1,STATE_IMPROVEDINVISIBILITY)
THEN
RESPONSE #100
ApplySpellRES("zshl01e",Player1)
SetGlobal("zshl01","GLOBAL",0)
Continue()
END

-----------------------------------------

But it does not work.So I change

Kit(Player1,BOUNTYHUNTER)

into

Class(Player1,THIEF_ALL)

And it works!Of course,to all thieves.

What is my problem?How to use the trigger "Kit(O:Object*,I:Kit*KIT)"?

Thanks!Forgive my poor English knowledge. :wall:

#2 Kismet

Kismet

    Mild Thang

  • Member
  • 348 posts

Posted 18 August 2004 - 05:00 AM

Kit.ids is broken in the stock game. Check this thread on how to fix it: http://www.shsforums...showtopic=10068

#3 Cursed_One

Cursed_One
  • Member
  • 2 posts

Posted 18 August 2004 - 05:38 AM

Thanks! :D