Jump to content


Photo

About Myself


  • Please log in to reply
4 replies to this topic

#1 temnix

temnix
  • Member
  • 983 posts

Posted 28 November 2017 - 01:18 PM

The engine sometimes acts a creature, with baldur.bcs as its script. Imp has mentioned this once, but he was probably just talking. It can refer to itself as Myself and then DisplayString(Myself,123), which works as a non-attributed DisplayString. This is what the area file for Ulgoth's Beard begins with. I was surprised to find out...

 

The engine can also ReallyForceSpellRES directly, without having to go through ActionOverride of a creature. I mean, we all know the engine can do ApplySpellRES, but that works differently: the projectile hits the target instantly, and if it is an area-of-effect power, only the hit target is affected, there is no trap and no visual. So ApplySpellRES("SPWI001",Player1) with my favorite spell in the game just kills the Player, standing in the group, and even without any signs of fire. But ReallyForceSpellRES("SPWI001",Player1) in baldur.bcs (and probably a cutscene) results in this:

 

Force.jpg

 

Apparently the "engine" is hiding somewhere in the upper left corner, opposite her friend the comet.



#2 Avenger_teambg

Avenger_teambg
  • Member
  • 604 posts

Posted 30 November 2017 - 11:52 AM

I think you are talking about the global script object, which is a somewhat 'regular' object. It's position is 0.0, can refer to itself, etc. It also has ALL the script slots, but those are reset on every game load (baldur.bcs).


Avenger

#3 temnix

temnix
  • Member
  • 983 posts

Posted 30 November 2017 - 01:48 PM

It can't do much though. I've tried getting it to attack Player1, but it just doesn't want to. Caster-targeted spells don't work on it, and so on. Won't jump to another position on the map either, the lazy bastard. Those two functions higher up are the only two things I've been able to get it to do.



#4 Avenger_teambg

Avenger_teambg
  • Member
  • 604 posts

Posted 30 November 2017 - 02:32 PM

It can't do much though. I've tried getting it to attack Player1, but it just doesn't want to. Caster-targeted spells don't work on it, and so on. Won't jump to another position on the map either, the lazy bastard. Those two functions higher up are the only two things I've been able to get it to do.

displaystringhead would probably write text on top left corner. CreateCreatureObject with 'myself' would create creatures in top left corner, etc. Nothing useful.


Edited by Avenger_teambg, 30 November 2017 - 02:33 PM.

Avenger

#5 temnix

temnix
  • Member
  • 983 posts

Posted 01 December 2017 - 01:29 PM

Perhaps Offset. We know the coordinates of Myself in this case.