logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,643
Total Threads: 8,744
Posts: 95,520

Administrators:
DeeZire, Redemption

There are currently 17 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements


Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here.

Reply
 
LinkBack Thread Tools
Old 07-25-2003, 08:18 AM   #1 (permalink)
Senior Member
 
Join Date: Jul 2003
Location: Scotland, UK
Posts: 752
Send a message via MSN to old_man_funk
Default Upgrades as Prerequisites?

Hi,
I have chosen to use upgrades instead of sciences for my mod. The only thing is I dont think you can have upgrades as prerequisites. Here is what I've got:

Code:
  Prerequisites
    Object = AmericaWarFactory
    Upgrade = Upgrade_ArmourGeneral
  End
It hasnt worked though. I want to know, is it a simple mistake or can upgrades not be used as prerequisites?
old_man_funk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-25-2003, 10:19 AM   #2 (permalink)
Junior Member
 
Join Date: Jul 2003
Posts: 26
Default

check this out,

Upgrades.ini / you must build a new upgrade

Upgrade Upgrade_AdvancedBuildings
DisplayName = UPGRADE:AdvancedBuildings
BuildTime = 30.0 ;Beliebige Bauzeit
BuildCost = 500 ;Beliebige Kosten
ButtonImage = AdvancedBuildings ;Beliebiges Icon
ResearchSound = NoSound
End


System.ini / you build adummy object, dident work without that

Object AdvancedBuildingsUpgrade

; ***DESIGN parameters ***
DisplayName = OBJECT:BattleDrone
Side = GLA
EditorSorting = SYSTEM
TransportSlotCount = 0 ;how many "slots" we take in a transport (0 == not transportable)

; *** ENGINEERING Parameters ***
KindOf = PRELOAD CAN_CAST_REFLECTIONS VEHICLE UNATTACKABLE
Body = ActiveBody ModuleTag_03
MaxHealth = 1000.0
InitialHealth = 1000.0
End

Behavior = AIUpdateInterface ModuleTag_04
;nothing
End

Locomotor = SET_NORMAL BattleDroneLocomotor

Behavior = PhysicsBehavior ModuleTag_05
Mass = 50.0
KillWhenRestingOnGround = Yes
AllowBouncing = No
End

Behavior = DestroyDie ModuleTag_08
DeathTypes = ALL
End

Behavior = UpgradeDie ModuleTag_99
;This frees the object based upgrade for the producer object.
DeathTypes = ALL
UpgradeToRemove = Upgrade_AdvancedBuildings ModuleTag_13
End

Geometry = CYLINDER
GeometryMajorRadius = 5
GeometryMinorRadius = 5
GeometryHeight = 10.0
GeometryIsSmall = Yes
Shadow = SHADOW_VOLUME
ShadowSizeX = 89 ; minimum elevation angle above horizon. Used to limit shadow length

End


ObjectCreationList.ini

ObjectCreationList OCL_AdvancedBuildings
CreateObject
Offset = X:-8 Y:0 Z:10 ;Spawn at backpack offset
ObjectNames = AdvancedBuildingsUpgrade
IgnorePrimaryObstacle = Yes
Disposition = LIKE_EXISTING
Count = 1
RequiresLivePlayer = Yes
End
End


FactionBuilding.ini / FactionUnit.ini

Prerequisites
Object = AdvancedBuildingsUpgrade ;Dummy Object
End

Behavior = ObjectCreationUpgrade ModuleTag_97
UpgradeObject = OCL_AdvancedBuildings
TriggeredBy = Upgrade_AdvancedBuildings
End


give me a credit when it works corectly

[zero]cool
ZeRoCool is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-25-2003, 10:53 AM   #3 (permalink)
Senior Member
 
Join Date: Jul 2003
Location: Scotland, UK
Posts: 752
Send a message via MSN to old_man_funk
Default

Kool, I'll try that but in the end I think I'll have to go with sciences
old_man_funk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrade Prerequisites Ambershee Generals & Zero Hour Editing 13 10-07-2006 12:39 PM
Upgrades as Prerequisites? DaLump Generals & Zero Hour Editing 15 03-29-2005 05:24 AM
Conditional Prerequisites ekublood Generals & Zero Hour Editing 11 01-02-2005 01:11 PM
Need Help - Upgrades + Buildings requiring upgrades to build Azad0r LOTR: Battle For Middle Earth I & II Editing 5 01-02-2005 04:37 AM
Upgrade Prerequisites Waraddict Generals & Zero Hour Editing 5 12-10-2004 03:36 PM


All times are GMT -4. The time now is 01:09 AM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.