Jump to content


Photo

Dark Horizon scripts: See(NearestEnemyOf(Myself(Myself)))


  • Please log in to reply
4 replies to this topic

#1 Shuv-Oohl

Shuv-Oohl
  • Modder
  • 113 posts

Posted 26 May 2014 - 10:16 PM

I don't know if the engine permits Myself being used as a function like Myself(him)=he.

Anyway the scripts containing those lines like e.g. cmredw02.bcs behave a bit stupid.

 

And for sure a line like

 

IF
    Global("CmRedWiz1","GLOBAL",0)
    See(NearestEnemyOf(Myself(Myself)))
THEN
    RESPONSE #100
        ForceSpell(Myself,WIZARD_MIRROR_IMAGE)

makes me wonder.

 

Anyone out there assuring me that Myself() may have both zero or one input variable?


Edited by Shuv-Oohl, 26 May 2014 - 10:17 PM.


#2 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5155 posts

Posted 27 May 2014 - 04:24 AM

The

See(NearestEnemyOf(Myself(Myself)))

should be simply:

See(NearestEnemyOf(Myself))

See this:

 

  IF
    See(NearestEnemyOf(Myself))
    False()
  THEN
    RESPONSE #100
      NoAction()
  END

Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#3 Lollorian

Lollorian

    smiley addict

  • Member
  • 4150 posts

Posted 27 May 2014 - 10:00 AM

Do these Myself()'s have a different effect after compiling? Because I'm seeing a shitload of these in DarkHorizons, NTotSC, Stone of Askavar and DSotSC.

 

Even Aurora, TDD, TGC1e, Kelsey, Nathaniel, Nephele and Imnesvale use Myself() - without the parameter though.

 

If you can confirm their wonkiness I can get them all fixed and patched the coming sunday :P (total 2268 hits - FML :crying:)


"I am the smiley addict, yellow and round, this is my grin :D when I'm usually around :P.
When there's trouble brewing, see me post, cuz it's usually a wall o' yellow and your eyes are toast!!!"

BWP GUIDE - BWP FIXES - impFAQ - NPC LIST - KIT LIST - AREA LIST

GitHub Links : BWP Fixpack | Lolfixer | BWP Trimpack | RezMod


#4 Yovaneth

Yovaneth

    The newly-appointed Master Builder of Baldur's Gate

  • Modder
  • 3061 posts

Posted 28 May 2014 - 01:37 AM

No parameter - Jarno is right. My guess is that the incorrect ones were compiled with the original Bioware compiler which doesn't work. Use NI and recompile them.

 

-Y-



#5 Lollorian

Lollorian

    smiley addict

  • Member
  • 4150 posts

Posted 30 May 2014 - 09:47 AM

Ok I'll get cracking on those Myself(Myself)'s - can I ignore the Myself()'s though? Can someone check whether a script containing Myself() works as intended?


"I am the smiley addict, yellow and round, this is my grin :D when I'm usually around :P.
When there's trouble brewing, see me post, cuz it's usually a wall o' yellow and your eyes are toast!!!"

BWP GUIDE - BWP FIXES - impFAQ - NPC LIST - KIT LIST - AREA LIST

GitHub Links : BWP Fixpack | Lolfixer | BWP Trimpack | RezMod