Jump to content


Photo

Instant Build Times?


  • Please log in to reply
2 replies to this topic

#1 Theo

Theo

    Hey look, im a VIP.

  • Members
  • 222 posts
  • Location:Sheffield, Uk,
  • Projects:Being lazy.

Posted 07 February 2009 - 08:28 PM

Hey all, iv been away a while but decided to come back to modding to make a wacky / fun mod that my brother and his friends wanted me to make.
Just a quick question, is there a global setting somewhere, where i can make things instantly build without having to alter every build time? Perhaps make everything free?

I would have thought EA maybe would have tested these games with something like this, but i cant find them. :crazed:
Id rather spend 5 minutes asking here than a hour altering costs and times hehe :)

Jay

#2 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 07 February 2009 - 11:14 PM

No you would need to edit each structure and such seperately... :crazed:

Edited by Ridder Geel, 07 February 2009 - 11:15 PM.

Ridder Geel

#3 Sûlherokhh

Sûlherokhh

    Sagacious Engineer

  • Project Team
  • 3,754 posts
  • Location:Central Germany
  • Projects:S.E.E., Sage A.I., Code Advisor
  •  'Axe'er of the Gordic Knot

Posted 07 February 2009 - 11:42 PM

Actually, it's quite easy. In playertemplate, you can set beginning units (2 porters are standard), but you can add any object you like. Let one of the objects be a custom object like this:

CODE
Object CheatProvider_Custom

Draw = W3DScriptedModelDraw ModuleTag_Draw
DefaultModelConditionState
Model = None
End
End

EditorSorting = MISC_MAN_MADE
DisplayName = OBJECT:TheOneRing
Side = Civilian
KindOf = NO_COLLIDE IMMOBILE IGNORE_FOR_VICTORY IGNORE_FOR_EVA_SPEECH_POSITION NOT_AUTOACQUIRABLE UNATTACKABLE
ThreatLevel = 0.0

Body = HighlanderBody ModuleTag_Body ;Can take damage, but won't die. Can only die from ::kill() or other unresistable damage
MaxHealth = 1.0
End

Behavior = AttributeModifierAuraUpdate ModuleTag_Leadership
StartsActive = Yes ;If no, requires upgrade to turn on.
BonusName = GLOBAL_FastGamePlay_Custom
TriggeredBy = Upgrade_MenFaction Upgrade_ElfFaction Upgrade_DwarfFaction Upgrade_IsengardFaction Upgrade_MordorFaction Upgrade_WildFaction
RefreshDelay = 2000
Range = 999999999
; ; AntiCategory = BUFF
ObjectFilter = ANY +STRUCTURE ALLIES ;+HERO +DOZER +INFANTRY +CAVALRY +MONSTER +BASE_FOUNDATION +IMMOBILE
End
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_TheodenLeadership
SpecialPowerTemplate = SpecialAbilityFakeLeadership
TriggeredBy = Upgrade_MenFaction Upgrade_ElfFaction Upgrade_DwarfFaction Upgrade_IsengardFaction Upgrade_MordorFaction Upgrade_WildFaction
End
Behavior = SpecialPowerModule ModuleTag_TheodenLeadershipUpdate
SpecialPowerTemplate = SpecialAbilityFakeLeadership
UpdateModuleStartsAttack = No
StartsPaused = Yes
End

Behavior = DestroyDie ModuleTag_Die
End

End

Then add this attributemodifier to the list of attribute modifiers:
//----------CHEAT BONUS-----------------
ModifierList GLOBAL_FastGamePlay_Custom
  Modifier = SPEED 5000%
 ; Modifier = EXPERIENCE 300%;or what you want
 ; Modifier = PRODUCTION 1000% //Handled by hard coded value now (so building construction will work).
 ; Modifier = RECHARGE_TIME 10%
  Duration = 3000;don't worry, works always since the refresh delay is 2000
End

A speed modifier is what you want, but you can set anything, just as you can extend this attributemodifier to objects other than STRUCTURE type.

bannerreal01mittelit3.jpg
Axed Head and A.I. Coder for S.E.E. and ... stuff

".. coding is basically boring. What's fun is finding out how things work, take them apart and then put them together in ways that were not intended nor even conceived."





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users