Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Apr 19, 2024 8:14 pm
All times are UTC + 0
about Stolen Technology
Moderators: Ares Support Team at PPM, Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
tuix
Vehicle Driver


Joined: 29 Sep 2015

PostPosted: Thu Dec 24, 2015 2:07 pm    Post subject:  about Stolen Technology
Subject description: I can't do it
Reply with quote  Mark this post and the followings unread

I make my mod use ares 0.9.
By Ares 0.9 documentation

Spy Behavior
Yuri’s Revenge only permits a Spy to achieve one effect on infiltrating, which is determined by a hard-coded order of precedence. Spy infiltration logic has been rewritten in Ares to be more flexible, including some new effects that a Spy can achieve.

All of the following flags default to no or 0.

New in version 0.1.

[BuildingType]►SpyEffect.Custom= (boolean)
Whether or not to use the Ares spy infiltration logic instead of the original Yuri’s Revenge logic.

Stolen Technology
[BuildingType]►SpyEffect.StolenTechIndex= (integer)
The stealable technology type that is stolen upon spying this enemy building. Only values from 0 to 31 (inclusive) are supported. Use -1 to disable the effect. Defaults to -1.
[TechnoType]►Prerequisite.StolenTechs= (list of integers)
The list of stealable technology types that must be stolen before this object can be built. Only values from 0 to 31 (inclusive) are supported. Use -1 to disable this requirement. Defaults to -1.
In Yuri’s Revenge, there were only three types of stealable technology available and these were hard-coded to specific buildings.

Spying [GATECH] satisfies RequiresStolenAlliedTech=yes
Spying [NATECH] satisfies RequiresStolenSovietTech=yes
Spying [YATECH] satisfies RequiresStolenThirdTech=yes
In Ares, spying a building with SpyEffect.StolenTechIndex=2 (for example) satisfies the stolen tech requirements for units that require stolen tech 2.

I don't understand .
What is SpyEffect.StolenTechIndex= (integer) ?
What is Prerequisite.StolenTechs= (list of integers) ?

Can someone make example for me please .

Back to top
View user's profile Send private message
Graion Dilach
Defense Minister


Joined: 22 Nov 2010
Location: Iszkaszentgyorgy, Hungary

PostPosted: Thu Dec 24, 2015 2:40 pm    Post subject: Reply with quote  Mark this post and the followings unread


_________________
"If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more...

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID
MustaphaTR
Scorpion Sniper


Joined: 22 Jan 2015
Location: Kastamonu, Turkey

PostPosted: Thu Dec 24, 2015 2:41 pm    Post subject: Reply with quote  Mark this post and the followings unread

SpyEffect.StolenTechIndex is on the building that gives tech when infiltrated.

Prerequisite.StolenTech is on the unit that gets available after infirltating a building with same number of this tag on its SpyEffect.StolenTechIndex.

For example;
Code:

[VIRUSE] ;Virus Elite (Unit)
Prerequisite=YABRCK ; Just for example
Prerequisite.StolenTech=0

[UATECH] ; GLA Palace (Building)
Spyable=yes
SpyEffect.Custom=yes
SpyEffect.StolenTechIndex=0


With the code above you can get Virus Elite when you infiltrate a GLA Palace and have Yuri Barracks. Vaule sets types. 0 opens 0es, 1 opens 1s etc.

Edit: Graion is quicker than me. Smile

_________________
CnCD2K Mod: http://www.moddb.com/mods/red-alert-2-yuris-revenge-cncd2k-mod
Changed Dune Mod: http://www.moddb.com/mods/changed-dune
MustaphaTR's D2K Mod: http://www.moddb.com/mods/mustaphatrs-d2k-mod
Generals Alpha: http://www.moddb.com/mods/generals-alpha
Romanov's Vengeange: https://www.moddb.com/mods/romanovs-vengeance

Back to top
View user's profile Send private message
tuix
Vehicle Driver


Joined: 29 Sep 2015

PostPosted: Thu Dec 24, 2015 3:19 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thank you for your answer , after I try
I did it .

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1397s ][ Queries: 11 (0.0074s) ][ Debug on ]