Jump to content


Photo

Simplest script needed


  • Please log in to reply
2 replies to this topic

#1 @vGur

@vGur
  • Member
  • 121 posts

Posted 11 January 2016 - 01:10 PM

Hello! I need a script that cast spell _@stpen on Player1 immediately after Irenicus cutscene in ar0602

I tried to avoid baldur.bcs, so added to ar0602.bcs strings

IF
Global("a#StartPenalty","GLOBAL",0)
!CombatCounterGT(0)
THEN
RESPONSE #100
SetGlobal("a#StartPenalty","GLOBAL",1)
ReallyForceSpellRES("_@STPEN",Player1)
Wait(1)
ActionOverride(Player1,DisplayStringHead(Player1,~I feel a terrible loss, as if a part of my soul had left the body~)) 
END
 
but it's not work, is there a way to script it without invisible.cre? Thanks for any help.

 



#2 Roxanne

Roxanne

    Modder

  • Member
  • 3564 posts

Posted 11 January 2016 - 01:16 PM

Hello! I need a script that cast spell _@stpen on Player1 immediately after Irenicus cutscene in ar0602

I tried to avoid baldur.bcs, so added to ar0602.bcs strings

IF
Global("a#StartPenalty","GLOBAL",0)
!CombatCounterGT(0)
THEN
RESPONSE #100
SetGlobal("a#StartPenalty","GLOBAL",1)
ReallyForceSpellRES("_@STPEN",Player1)
Wait(1)
ActionOverride(Player1,DisplayStringHead(Player1,~I feel a terrible loss, as if a part of my soul had left the body~)) 
END
 
but it's not work, is there a way to script it without invisible.cre? Thanks for any help.
IF
Global("a#StartPenalty","GLOBAL",0)
CombatCounter(0)
!StateCheck(Player1,CD_STATE_NOTVALID)
THEN
RESPONSE #100
SetGlobal("a#StartPenalty","GLOBAL",1)
ActionOverride(Player1,ReallyForceSpellRES("_@STPEN",Myself))
Wait(1)
ActionOverride(Player1,DisplayStringHead(Player1,~I feel a terrible loss, as if a part of my soul had left the body~)) 
END

The Sandrah Saga

another piece of *buggy, cheesy, unbalanced junk*

 


#3 @vGur

@vGur
  • Member
  • 121 posts

Posted 13 January 2016 - 04:08 PM

Thank You, it works!

Edited by @vGur, 13 January 2016 - 04:09 PM.