Jump to content


Photo

Code question about the Imp/Pet fix


  • Please log in to reply
1 reply to this topic

#1 Salk

Salk
  • Modder
  • 1419 posts

Donator

Posted 01 August 2015 - 10:23 PM

Hello!

 

I was wondering (in my ignorance) if the line in bold should rather be Global("tb#%medium%cheat","global",1)?

 

<<<<<<<< .../tb#tweaks/inlined/%long%/baldur.baf
IF
  Global("tb#%medium%cheat","global",1)
  Global("tb#%medium%","global",1)
  CombatCounterLT(1)
THEN
  RESPONSE #100
    SetGlobalTimer("tb#%medium%_timer","global",24) // 4 rounds
    SetGlobal("tb#%medium%","global",2)
END
 
IF
  Global("tb#%medium%","global",1)
  GlobalTimerNotExpired("tb#%medium%_timer","global")
  CombatCounterGT(0)
  Global("tb#%medium%","global",2)
THEN
  RESPONSE #100
    SetGlobal("tb#%medium%","global",1)
END
 
IF
  Global("tb#%medium%cheat","global",1)
  GlobalTimerExpired("tb#%medium%_timer","global")
  Global("tb#%medium%","global",2)
  CombatCounterLT(1)
THEN
  RESPONSE #100
    SetGlobal("tb#%medium%","global",0)
    ActionOverride(Player1,ReallyForceSpellRES("%short%",Myself))
    ActionOverride(Player2,ReallyForceSpellRES("%short%",Myself))
    ActionOverride(Player3,ReallyForceSpellRES("%short%",Myself))
    ActionOverride(Player4,ReallyForceSpellRES("%short%",Myself))
    ActionOverride(Player5,ReallyForceSpellRES("%short%",Myself))
    ActionOverride(Player6,ReallyForceSpellRES("%short%",Myself))
END
>>>>>>>>

 

Thanks!
 


#2 the bigg

the bigg

    2083 is a prime number.

  • Modder
  • 3331 posts

Posted 01 August 2015 - 11:08 PM

Yes, that would appear to be the correct variable to check. The mod would still work, however it will not reset the timer between consecutive battles, before Stone to Flesh and/or Freedom is automatically cast.


Italian users: help test the Stivan NPC!

Author or Co-Author: WeiDU - Widescreen - Generalized Biffing - Refinements - TB#Tweaks - IWD2Tweaks - TB#Characters - Traify Tool - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics - Nalia Mod - Nvidia Fix
Code dumps: Detect custom secondary types - Stutter Investigator

If possible, send diffs, translations and other contributions using Git.