Creating a Mobile Tech Centre

Tutorial for Yuri's Revenge YR

Avatar of Ekstramottager

Ekstramottager

Category: Code
Level: Intermediate
Created: Wednesday July 29, 2009 - 4:29
Updated: Sunday October 11, 2009 - 8:22
Views: 3549
Summary: Removing the Slave Miner to create a mobile tech centre.
Rating
  • Staff-
  • Members-
  • Average-

0 votes

In YR, there are a few tags related to the Slave Miner that can be used to create a Tech Centre that you can move around while building, perfect for a terrorist oranization. Note that you have to sacrifice the Slave Miner as a tech-providing structure. (As of now ithe Slave Miner allows you to build Radar and War Factory. After this, that function will be buggy.)

Lets have a look at some code:
              
Code
PrerequisitePower=GAPOWR,NAPOWR,NANRCT,YAPOWR;gs NAAPWR
PrerequisiteFactory=GAWEAP,NAWEAP,YAWEAP
PrerequisiteBarracks=NAHAND,GAPILE,YABRCK
PrerequisiteRadar=GAAIRC,NARADR,AMRADR,NAPSIS
PrerequisiteTech=GATECH,NATECH,YATECH
PrerequisiteProc=GAREFN,NAREFN,YAREFN
PrerequisiteProcAlternate=SMIN;gs still counts under a PROC listing

In a Prerequisite, PROC is all refineries, FACTORY are all War Factories, and so on, however, to make the Slave Miner provide structures while mining, Westwood Pacific had to add the bottom tag.

Further, FACTORY is completely unused.
First, change PrerequisiteFactory to point to the Refineries (GAREFN,NAREFN,YAREFN)
Now we have a free tag (PrerequisiteProc)
Remember to change all Buildings dependent on PROC to FACTORY. (Mostly War Factories)

Now, set PrerequisiteProc to your Deployed Mobile Lab (PrerequisiteProc=TAMLAB) and PrerequisiteProcAlternate to your Undeployed Mobile Lab (PrerequisiteProcAlternate=MLAB)
              
Code
PrerequisiteFactory=GAREFN,NAREFN,YAREFN
PrerequisiteProc=TAMLAB
PrerequisiteProcAlternate=MLAB


All technotypes dependent on the Mobile Lab must be tagged with "Prerequisite=PROC"
In game, "Prerequisite=PROC" will look for both TAMLAB (building) MLAB (vehicle)


This can be used for other mobile buildings too. (Mobile Radar?)

Return to top