Jump to content


Photo

StrongestOf


  • Please log in to reply
12 replies to this topic

#1 temnix

temnix
  • Member
  • 983 posts

Posted 18 November 2016 - 08:42 AM

How does that object work? Who is in the group that the creature is "of"? And how is strength measured here - by level?



#2 The Imp

The Imp

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

  • Member
  • 5150 posts

Posted 18 November 2016 - 11:44 AM

Yep. It's the .cre file offset 0x0018 ... number.


Edited by The Imp, 18 November 2016 - 11:44 AM.

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 temnix

temnix
  • Member
  • 983 posts

Posted 18 November 2016 - 03:34 PM

What is it that moves people to talk about these offsets? Is that... more convenient than saying "level" or "Strength"? :ermm:

 

Maybe just sounds more scientifific.

 

Well, I assume you said "yes" to level with that reference. But what about the group? The strongest among who? Of all creatures on the map? Or does it take further parameters in brackets? [ANYONE], that sort of thing?



#4 The Imp

The Imp

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

  • Member
  • 5150 posts

Posted 18 November 2016 - 04:31 PM

What is it that moves people to talk about these offsets

The offset... it's a way to say how many-eth hexadecimal the given information is in the file, so to speak. As in, the .cre file is just a series of numbers, and as such they have to have a set structure that they are constructed from, ~base structure principle, this empowers each of the numbers give a way of making the file do what it's programmer want it to be, just like each of the script IF-THEN-END structures does for the scripts. I gave the link to the .cre's structure to you in the other post, this... in case you didn't click it.


Edited by The Imp, 18 November 2016 - 04:33 PM.

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.


#5 Mike1072

Mike1072
  • Modder
  • 539 posts

Posted 18 November 2016 - 05:19 PM

What is it that moves people to talk about these offsets? Is that... more convenient than saying "level" or "Strength"? :ermm:
 
Maybe just sounds more scientifific.
 
The labels given to these fields are assigned based on observed behaviour. The same field may be labelled differently depending on which source or tool you refer to.

By specifying the offset of a field in a file, or the opcode for an effect, it's easier for others to figure out what you mean without having to make assumptions.

#6 Fiann of the Silver Hand

Fiann of the Silver Hand
  • Member
  • 286 posts

Posted 18 November 2016 - 08:34 PM

And that offset has two completely different uses depending on whether it's a Party NPC or not, so using "0x0018" really is the best shorthand to refer to it. (Technically, "0x18" is better.)

#7 temnix

temnix
  • Member
  • 983 posts

Posted 19 November 2016 - 02:44 PM

Well, it's not good for the way I think, so I'll stick with "level," thank you very much. :lol2: But thanks for the explanations. What about my other question? Who is it the StrongestOf among? Or how about another object - LeaderOf? What does that mean?



#8 Fiann of the Silver Hand

Fiann of the Silver Hand
  • Member
  • 286 posts

Posted 19 November 2016 - 07:47 PM

IESDP is your friend:
 

 

3 GroupOf
This object is not implemented.

4 WeakestOf
Returns the weakest player character (in the party).

5 StrongestOf
Returns the strongest player character (in the party).

6 MostDamagedOf
Returns the most damaged player character (in the party).

7 LeastDamagedOf
Returns the least damaged player character (in the party).


#9 temnix

temnix
  • Member
  • 983 posts

Posted 20 November 2016 - 08:22 AM

Where is that explanation in the guide? Anyway, thanks. I hoped the objects would do something more useful.



#10 The Imp

The Imp

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

  • Member
  • 5150 posts

Posted 20 November 2016 - 09:38 AM

Where is that explanation in the guide? Anyway, thanks. I hoped the objects would do something more useful.

If you can't open the page itself... then I can't help you, cause it's in the page itself. Wow. Imagine that.


Hmm, what this is:

Sieppaa3.jpg

I take back my words. Now you don't even need to open the page. Now you just need to look like an asshole ..

 

(Technically, "0x18" is better.)

Erhm, usually one writes 10 as 10, but you might as well write it as 0xa, a h, 010, 1 0 or even 1*10^1 if you wanted to, it doesn't change it's intention, of being the ten. You only limit the maximum number one can assume to set into the figure if you remove the zeroes ... and as you should know, the .itm, .spl, .cre and other files also have other structures than the header, that have small offsets that go after the main headers, and so limiting it to the first two hexadecimal figures can be seen as a flaw ... as the structures can easily grow the file size beyond the first two hexadecimal figures, just look at the vanilla BG2EE ammonk08.cre, it has one item... and it's location is said at offset 0x23f8 of the file.


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.


#11 temnix

temnix
  • Member
  • 983 posts

Posted 20 November 2016 - 01:01 PM

Imp, a hypothetical poll of the common opinion in this case convinces me that you are being the asshole here. In addition to being an idiot, which I have known for some time but kept to myself out of my natural tendency to forgive.



#12 Miloch

Miloch

    Barbarian

  • Modder
  • 6573 posts

Posted 27 November 2016 - 08:23 PM

Imp, a hypothetical poll of the common opinion in this case convinces me that you are being the asshole here. In addition to being an idiot, which I have known for some time but kept to myself out of my natural tendency to forgive.

Lol... I mean, c'mon... he's not that bad. He's just fulfilling his self-appointed role as imp (i.e. devil's advocate). Except that he may have failed in that role this time. Your question was legitimate. The answer *should be* "strongest of" literally means "the one who possesses the highest strength." But in IE, logic fails. I cannot validate that, nor put it down to "level" nor any other factor; thus, I tend to use other qualifiers. If someone can do otherwise, cheers, that would clarify some otherwise rather vague language.


Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#13 agb1

agb1
  • Member
  • 1623 posts

Posted 27 November 2016 - 09:15 PM

Per GemRB, StrongestOf() is the party member with the highest HP.  Intended for AI scripts that want to target the healthiest party member, I guess.


BiG World Fixpack (community collection of mod fixes and compatibility patches, with user-friendly cross-platform script)

 

BiG World Setup (tool to automate best-practice installation of Infinity Engine mods on Windows, with conflict analysis)

Latest version:    https://bitbucket.or.../get/master.zip