Hallo!
Ich habe versucht einen passiven Spell zu machen (gibt ein simples Upgrade). Nach dem selben Muster hab ich auch den GtW-Spell und den Anduril Spell wieder in SuM2 eingefügt, die gehen ohne Probleme.
Jedoch geht bei diesem Spell das passive Starten nicht. Das Upgrade wird erst gegeben, wenn ich bei dem Commandbutton das NONPRESSABLErausmache und den Button einmal manuell drücke. Hab echt keine Idee, woran das liegen könnte, ich hoffe ihr könnt mir helfen.
Hier die INIs:
specialpower.ini
SpecialPower SpellBookArchivesOfGondor
	Enum			= SPECIAL_SPELL_BOOK_ELVEN_GIFTS ;SPECIAL_SPELL_BOOK_ANDURIL
	ReloadTime      	= 0; 240000 ; in milliseconds
	;PublicTimer     	= No
    RequiredSciences	= SCIENCE_ArchivesOfGondor
	;InitiateSound		= SpellCallTheHordeStereo
	Flags			= RESPECT_RECHARGE_TIME_DISCOUNT
End
system.ini
	Behavior = PlayerUpgradeSpecialPower	ModuleTag_ArchivesOfGondor
		SpecialPowerTemplate		= SpellBookArchivesOfGondor
		UpgradeName 				= Upgrade_ArchivesOfGondor
		UpdateModuleStartsAttack	= No
		AffectAllies				= No ; Should not try to affect ally units
		AvailableAtStart			= No
		RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
		RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
	End
upgrade.ini
Upgrade Upgrade_ArchivesOfGondor
	Type              = PLAYER
	PersistsInCampaign = Yes
End
commandbutton.ini
CommandButton Command_SpellBookArchivesOfGondor
	Command = SPELL_BOOK
	Options				= NONPRESSABLE
	TextLabel			= CONTROLBAR:ArchivesOfGondor
	DescriptLabel		= CONTROLBAR:TooltipArchivesOfGondor
	SpecialPower		= SpellBookArchivesOfGondor
    ButtonImage			= SBGood_ArchivesOfGondor
End(Wie gesagt geht der Spell nur, wenn ich das NONPRESSABLE auskommentiere und den Button dann manuell drücke.)
EDIT: Hab den Fehler, man muss nur eine Zeile im Purchase_Spell-Button ergänzen:
;; Trigger this command button when the purchase science is activated   
CommandTrigger      = Command_SpellBookArchive sOfGondor
Total banal, wenn man's weiß. Der Button sieht dann so aus:
commandbutton.ini
CommandButton Command_PurchaseSpellArchivesOfGondor
	Command				= PURCHASE_SCIENCE
	ButtonBorderType	= UPGRADE ; Identifier for the User as to what kind of button this is
    ButtonImage			= SBGood_ArchivesOfGondor ; DJR 6/29/4 using same image as spellbook for now
    Science				= SCIENCE_ArchivesOfGondor
    TextLabel			= CONTROLBAR:ArchivesOfGondor
	DescriptLabel		= CONTROLBAR:TooltipArchivesOfGondor
	
	;; Trigger this command button when the purchase science is activated	
	CommandTrigger		= Command_SpellBookArchivesOfGondor
End