Jump to content


Photo

"EquivalentTo = " setter


Best Answer Lusta, 24 February 2019 - 08:02 AM

Hello Echo

 

From what I gathered it helps in scripts for sure. I replaced GondorAragorn with GondorStrider (ChildObject of GondorAragorn) in the campaign.

EquivalentTo = GondorAragorn is in its code. In the maps GondorStrider acts as GondorAragorn when scripts fire.

That was helpfull since the worldbuilder has rather bad habit of not cooperating.

(Made me given up modding for years becouse of the worldbuilder, now I managed to get it work again with some work arounds.)

 

Hope that helps, I didn't do more experiments with it.

Go to the full post


  • Please log in to reply
3 replies to this topic

#1 Echo

Echo

    T3A:Online

  • T3A Staff
  • 1,069 posts
  • Location:Germany
  • Projects:Lot3A
  •  ~~
  • Division:BFME
  • Job:T3A Moderator
  • Donated

Posted 24 February 2019 - 03:12 AM

I have used the  "EquivalentTo" setter quite frequently, but only now do I really wonder - what does it actually do? Has anyone found out or is there a comment from EA somewhere as to what it does?

 

For instance, the RohanElvenWarrior_Summoned object is set EquivalentTo = RohanElvenWarrior

 

What does it do behind the scene? Does it tell the AI to regard is as a RohanElvenWarrior? I don't think so because from my observation the AI tends to ignore my custom summoned units way more than the regular ones - maybe I'm seeing things, but I am quite certain about this. 

 

What other purpose can this setter have? The RohanElvenWarrior_Summoned object is child of RohanElvenWarrior, so it naturally inherits all the behaviors and values.. so again, no need to set equivalency. EA also gave the _Summoned objects an experiencelevel behavior, so even if an object is set equivalent to another, it still requires its own experience level entry. 

 

I also took a look at the Ents. Here we have the RohanGenericEnt object. Yet, if we look at Emotion Trackers, we have:

 

AfraidOf = NONE +RohanOathbreakerHordeSmall +RohanTreeBerd +RohanEntFir +RohanEntAsh +RohanEntBirch +MordorFellBeast +MordorWitchKingOnFellBeast +MordorBalrog +MordorCaveTroll +MordorMountainTroll +MordorDrummerTroll +MordorMumakil ;Must be SCARY kindof as well.

 

Equivalence doesn't really serve a purpose here either, because even though the "RohanGenericEnt" seems to unify all the ents in one way or another, they still all need their separate mention in the AfraidOf setter. 

 

So... does anyone know what the EquivalentTo thing actually does?


26285.png


#2 Lusta

Lusta
  • Members
  • 98 posts
  • Location:Hungary

Posted 24 February 2019 - 08:02 AM   Best Answer

Hello Echo

 

From what I gathered it helps in scripts for sure. I replaced GondorAragorn with GondorStrider (ChildObject of GondorAragorn) in the campaign.

EquivalentTo = GondorAragorn is in its code. In the maps GondorStrider acts as GondorAragorn when scripts fire.

That was helpfull since the worldbuilder has rather bad habit of not cooperating.

(Made me given up modding for years becouse of the worldbuilder, now I managed to get it work again with some work arounds.)

 

Hope that helps, I didn't do more experiments with it.


(Lusta means Lazy)

my mod beta is linked here


#3 Miraak5

Miraak5

    title available

  • Members
  • 389 posts
  • Location:France
  • Projects:ROTWK Patch 2.02, Wars of the North, BFME1 1.08 Complete Edition
  •  BIG coding, Map scripting and AI coding

Posted 24 February 2019 - 01:32 PM

I think lusta i right, all script towar an object will work on an object set to equivalent


He was the first...


#4 Echo

Echo

    T3A:Online

  • T3A Staff
  • 1,069 posts
  • Location:Germany
  • Projects:Lot3A
  •  ~~
  • Division:BFME
  • Job:T3A Moderator
  • Donated

Posted 24 February 2019 - 02:00 PM

Okay, thank you for clarification. If an object is afraid of MordorBalrog, will it also be afraid of an object that is equivalent to MordorBalrog? Do you know that as well?


26285.png





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users