Jump to content


Photo

Unit Carry the Ring


  • Please log in to reply
9 replies to this topic

#1 Eazy-E 123

Eazy-E 123
  • Members
  • 72 posts

Posted 30 April 2020 - 10:06 AM

Hi,

 

I would like to know how can I make a Hero / Unit / Horde To Not Carry the Ring.

 

I used Vanila code, but it doesn't worked.

 

 

Behavior = TransportContain TransportContainModuleTag
      ObjectStatusOfContained = UNSELECTABLE UNATTACKABLE
      PassengerFilter = ANY +INFANTRY +HULK +CAVALRY +GRAB_AND_DROP -HERO -PORTER -TheDroppedRing
      Slots = 1
      ShowPips = No
      CanGrabStructure = Yes
      AllowEnemiesInside = Yes
      AllowNeutralInside = Yes
      AllowAlliesInside  = No
      DamagePercentToUnits = 100%
      KillPassengersOnDeath = Yes
      PassengerBonePrefix = PassengerBone:B_Passenger       KindOf:GRAB_AND_DROP
      GrabWeapon = FellbeastGrabWeapon
      FireGrabWeaponOnVictim = No
      ReleaseSnappyness = 0.05
End
 
Thanks


#2 Symonius

Symonius
  • Members
  • 51 posts
  • Location:The ancient shield
  • Projects:TROW Mod
  •  Just a winged modder

Posted 30 April 2020 - 10:52 AM

I think that the TransportContain hasn't any link with the ring.

 

In data\ini\crate.ini there is also the code for the One Ring, being it a pickable object as the chests of gold. :whathuh:

Inside the object there is this behaviour:

Behavior = AttachUpdate ModuleTag_Attach
		ObjectFilter			= ANY +INFANTRY +CAVALRY +HERO +MONSTER +MACHINE -WORKING_PASSENGER -NO_COLLIDE -INERT -IGNORED_IN_GUI -PROJECTILE -NEUTRALGOLLUM -NOT_AUTOACQUIRABLE -WildSpiderling_Slaved -IsengardExplosiveMine -Wyrm -WargSentry NOT_FLYING_UNITS
		ScanRange				= 10
		ParentStatus			= HOLDING_THE_RING
		AlwaysTeleport			= No
		AnchorToTopOfGeometry	= Yes
		
		// Eva events to play when the Ring is picked up by the local player / an ally / an enemy
		ParentOwnerAttachmentEvaEvent = RingPickedUpLocal
		;ParentAllyAttachmentEvaEvent =   Nothing for now! (Are we sure???)
		ParentEnemyAttachmentEvaEvent = RingPickedUpEnemy
		
		ParentOwnerDiedEvaEvent = LocalPlayerLosesRing ; E.g. the unit carrying the ring died, so we lost it.
		;ParentAllyDiedEvaEvent =  Nothing (for now)
		;ParentEnemyDiedEvaEvent = Nothing (for now)
		
	End

Add in the filter a "-whatyoudontwhanttopickupthering" and it should work.

 

Let me know if it works! :)


Edited by Symonius, 30 April 2020 - 10:53 AM.

"All we have to decide is what to mod with the time that is given us"


#3 Eazy-E 123

Eazy-E 123
  • Members
  • 72 posts

Posted 30 April 2020 - 11:26 AM

I will test now



#4 Eazy-E 123

Eazy-E 123
  • Members
  • 72 posts

Posted 30 April 2020 - 11:26 AM

I think that the TransportContain hasn't any link with the ring.

 

In data\ini\crate.ini there is also the code for the One Ring, being it a pickable object as the chests of gold. :whathuh:

Inside the object there is this behaviour:

Behavior = AttachUpdate ModuleTag_Attach
		ObjectFilter			= ANY +INFANTRY +CAVALRY +HERO +MONSTER +MACHINE -WORKING_PASSENGER -NO_COLLIDE -INERT -IGNORED_IN_GUI -PROJECTILE -NEUTRALGOLLUM -NOT_AUTOACQUIRABLE -WildSpiderling_Slaved -IsengardExplosiveMine -Wyrm -WargSentry NOT_FLYING_UNITS
		ScanRange				= 10
		ParentStatus			= HOLDING_THE_RING
		AlwaysTeleport			= No
		AnchorToTopOfGeometry	= Yes
		
		// Eva events to play when the Ring is picked up by the local player / an ally / an enemy
		ParentOwnerAttachmentEvaEvent = RingPickedUpLocal
		;ParentAllyAttachmentEvaEvent =   Nothing for now! (Are we sure???)
		ParentEnemyAttachmentEvaEvent = RingPickedUpEnemy
		
		ParentOwnerDiedEvaEvent = LocalPlayerLosesRing ; E.g. the unit carrying the ring died, so we lost it.
		;ParentAllyDiedEvaEvent =  Nothing (for now)
		;ParentEnemyDiedEvaEvent = Nothing (for now)
		
	End

Add in the filter a "-whatyoudontwhanttopickupthering" and it should work.

 

Let me know if it works! :)

Thanks, I will test it



#5 Eazy-E 123

Eazy-E 123
  • Members
  • 72 posts

Posted 30 April 2020 - 11:42 AM

I think that the TransportContain hasn't any link with the ring.

 

In data\ini\crate.ini there is also the code for the One Ring, being it a pickable object as the chests of gold. :whathuh:

Inside the object there is this behaviour:

Behavior = AttachUpdate ModuleTag_Attach
		ObjectFilter			= ANY +INFANTRY +CAVALRY +HERO +MONSTER +MACHINE -WORKING_PASSENGER -NO_COLLIDE -INERT -IGNORED_IN_GUI -PROJECTILE -NEUTRALGOLLUM -NOT_AUTOACQUIRABLE -WildSpiderling_Slaved -IsengardExplosiveMine -Wyrm -WargSentry NOT_FLYING_UNITS
		ScanRange				= 10
		ParentStatus			= HOLDING_THE_RING
		AlwaysTeleport			= No
		AnchorToTopOfGeometry	= Yes
		
		// Eva events to play when the Ring is picked up by the local player / an ally / an enemy
		ParentOwnerAttachmentEvaEvent = RingPickedUpLocal
		;ParentAllyAttachmentEvaEvent =   Nothing for now! (Are we sure???)
		ParentEnemyAttachmentEvaEvent = RingPickedUpEnemy
		
		ParentOwnerDiedEvaEvent = LocalPlayerLosesRing ; E.g. the unit carrying the ring died, so we lost it.
		;ParentAllyDiedEvaEvent =  Nothing (for now)
		;ParentEnemyDiedEvaEvent = Nothing (for now)
		
	End

Add in the filter a "-whatyoudontwhanttopickupthering" and it should work.

 

Let me know if it works! :)

 

well, there is one thing that I don't understand, when I saw codes crate.ini I saw that I already tried that way. So it doesn't worked and I guess I forget about that, but now I add the hero which will not be able to take and it worked.

I have no idea why it doesn't worked before.

Thanks :)



#6 Symonius

Symonius
  • Members
  • 51 posts
  • Location:The ancient shield
  • Projects:TROW Mod
  •  Just a winged modder

Posted 30 April 2020 - 01:01 PM

Well, often i do something that doesn't work even if it should and then it starts working without reason, so... I feel you 😅

"All we have to decide is what to mod with the time that is given us"


#7 Eazy-E 123

Eazy-E 123
  • Members
  • 72 posts

Posted 30 April 2020 - 03:20 PM

Well, often i do something that doesn't work even if it should and then it starts working without reason, so... I feel you

 

My master, EA Engine the Oldest, bids thee welcome. Well, I was doing some test with One Ring stuff.

I wanted change Hero's CS when he carry ring, I add Fortress code + CS Update but it doesn't worked.
Any idea how it can be done ?

 

 

Behavior = CitadelSlaughterHordeContain ModuleTag_SlaughterMe
        PassengerFilter              = NONE +TheDroppedRing
        ObjectStatusOfContained      = UNSELECTABLE ENCLOSED  
        ContainMax                   = 1
        AllowEnemiesInside           = No
        AllowAlliesInside            = Yes
        AllowNeutralInside           = No
        AllowOwnPlayerInsideOverride = Yes
        ;EnterSound = 
        EntryOffset                  = X:0.0 Y:0.0 Z:0.0
        EntryPosition                = X:0.0 Y:0.0 Z:0.0
        ExitOffset                   = X:0.0 Y:0.0 Z:0.0
        StatusForRingEntry           = HOLDING_THE_RING
        UpgradeForRingEntry          = Upgrade_RingHero
        ObjectToDestroyForRingEntry  = NONE +TheDroppedRing
        ;FXForRingEntry =
    End
 
 
Behavior = CommandSetUpgrade ModueTag_GondorNewDude1CommandSet
TriggeredBy = Upgrade_RingHero
CommandSet = AragornCommandSet_Ring
End


Thanks  :) 



 



#8 Symonius

Symonius
  • Members
  • 51 posts
  • Location:The ancient shield
  • Projects:TROW Mod
  •  Just a winged modder

Posted 01 May 2020 - 11:29 AM

Try to look a the Giant of the Wild faction and use their code for the rock switching, i don't know if it works though..


Edited by Symonius, 01 May 2020 - 11:31 AM.

"All we have to decide is what to mod with the time that is given us"


#9 Symonius

Symonius
  • Members
  • 51 posts
  • Location:The ancient shield
  • Projects:TROW Mod
  •  Just a winged modder

Posted 01 May 2020 - 11:37 AM

You can use something like this:

       //Toggle CommandSet Based on condition flags
	Behavior = MonitorConditionUpdate ModuleTag_CommandSetSwapper
		ModelConditionFlags			= HOLDING_THE_RING maybe?
		ModelConditionCommandSet	= CommandSetOneRing
        End 

If it doesn't work use the ring's upgrade to give to the object a ModelCondition and THEN use this code. :)


Edited by Symonius, 01 May 2020 - 11:38 AM.

"All we have to decide is what to mod with the time that is given us"


#10 Eazy-E 123

Eazy-E 123
  • Members
  • 72 posts

Posted 01 May 2020 - 03:08 PM

You can use something like this:

       //Toggle CommandSet Based on condition flags
	Behavior = MonitorConditionUpdate ModuleTag_CommandSetSwapper
		ModelConditionFlags			= HOLDING_THE_RING maybe?
		ModelConditionCommandSet	= CommandSetOneRing
        End 

If it doesn't work use the ring's upgrade to give to the object a ModelCondition and THEN use this code. :)

thanks I will try :)






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users