Copying hero abilities -1 reply

Please wait...

EarvenJ

GF Pwns Me!

50 XP

5th December 2008

0 Uploads

41 Posts

0 Threads

#1 4 years ago

I run into trouble copying abilities from one space hero unit to another space hero unit.

It is most annoying trying to give a Rebel hero unit Thrawn's ship_reveal ability. I copied the ability code: doesn't work. I copied the behaviour tags: doesn't work. I even duplicated Thrawn's entry and gave the copy the name of the new unit: doesn't work.

I'm lost... Any ideas?




Blood Asp

Modding, Coding, Pwning

50 XP

9th November 2010

0 Uploads

503 Posts

0 Threads

#2 4 years ago

EarvenJ;5713744I run into trouble copying abilities from one space hero unit to another space hero unit.

It is most annoying trying to give a Rebel hero unit Thrawn's ship_reveal ability. I copied the ability code: doesn't work. I copied the behaviour tags: doesn't work. I even duplicated Thrawn's entry and gave the copy the name of the new unit: doesn't work.

I'm lost... Any ideas?

It should be easy to just C&P, I've added space units to existing heroes and abilities to those space units and such.




Guest

I didn't make it!

0 XP

 
#3 4 years ago

Are you sure you copied it into the right part of the abilities code? Some units have two different ability sections. (Some abilities may also need code in two sections i.e, Flame thrower)

NORMALLY the abilities with UI functionality - you press a button, something happens (Boba Fett's flamethrower etc.) - goes first in the tag [COLOR="Red"][/COLOR]

Spoiler: Show
FLAME_THROWER28.0 Boba_Fett_Flame_Thrower True

[COLOR="red"][/COLOR]

And then comes some code that - in Boba's case - tells the unit HOW to use that ability. This is inside [COLOR="red"][/COLOR]

Spoiler: Show
User_Input 0.0100.090.0225.010.00.5AllUnit_Flamethrower_Firep_flamethrower00

[COLOR="red"][/COLOR]

Excuse the poor formatting of that example - Have a look at Boba's entry in the 'Namedherounits.xml'

What does this have to do with your issue? With Thrawn's code they've done it backwards; they did Which has Thrawns ship reveal etc. (In this case all his 'passive' abilities) first instead of Which has the 'Power to Wepaons' ability.

I believe what YOU may have done is to put Thrawn's ship reveal inside of the tag, instead of the tag.

ALTHOUGH: Reading the part where you mention duplicating and renaming the Thrawn entry would suggest that the above is not your problem. Have any other changes you've made taken effect? If not, it could be a Windows UAC thing.

In any case, even if this wasn't of help, it's been a while since I posted something here.




EarvenJ

GF Pwns Me!

50 XP

5th December 2008

0 Uploads

41 Posts

0 Threads

#4 4 years ago

Thanks a lot AUS_Doug, it was exactly as you suggested: I mixed up both tags. I put the ability in the right tag and now it works perfectly.

Thanks a lot, much appreciated!




Blood Asp

Modding, Coding, Pwning

50 XP

9th November 2010

0 Uploads

503 Posts

0 Threads

#5 4 years ago

EarvenJ;5713895Thanks a lot AUS_Doug, it was exactly as you suggested: I mixed up both tags. I put the ability in the right tag and now it works perfectly.

Thanks a lot, much appreciated!

That's what I assumed you did just didn't bother to explain I guess :/, oh well, glad you fixed it!