• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

unmerged(32008)

Corporal
Jul 16, 2004
39
0
Hiho,

habe ne kleine Frage, wäre es möglich, ein Event, welches Wöchentlich schaut, ob die Manpower über 6k ist und dann sowas in der Art wie

Uns stehen viele Reserven zur Verfügung, lasst uns sie in die Fabriken schicken (oder so ähnlich), nur in dem Unterschied, dass anstatt die IC, Ressourcen mehr abgebaut/gefördert/produziert werden.

Wieviele Männer wollt ihr in die Wirtschaft schicken?
1k Manpower - 50 Rubber 50 Oil ect.
2k Manpower - 100 Rubber 100 Oil ect
und so weiter.

Wenn dass möglich wäre, fände ich dass cool, wenn sich da einer ranhocken könnte, da ich selber keine Ahnung habe, wie man Events schreibt (leider leider)
 

EHzg Johann

Major
74 Badges
May 27, 2004
553
5
  • Victoria 2: Heart of Darkness
  • Leviathan: Warships
  • Magicka
  • Majesty 2
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Sengoku
  • Sword of the Stars
  • Victoria 2
  • Victoria 2: A House Divided
  • Knights of Pen and Paper +1 Edition
  • Warlock: Master of the Arcane
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Hearts of Iron II: Beta
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Prison Architect
  • Europa Universalis III: Chronicles
  • Cities in Motion
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Europa Universalis III
  • Ancient Space
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Heir to the Throne
Ja, es ist möglich. Ich hab mal schnell was zusammengeschustert, aber ob die Werte gut sind bezweifle ich stark:

Code:
[B]db\events\user.txt (anhängen und ggf. id variieren):[/B]
event = {
	id = 91181
	random = no
	persistent = yes
	trigger = {
		manpower = 4000
	}
	name = "EVT_91181_NAME"
	desc = "EVT_91181_DESC"
	picture = "private_initiative2"
	style = 0
	
	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		name = "ACTION91181A"
		command = { type = dissent value = 1 }
	}
	
	action_b = {
		name = "ACTION91181B"
		command = { type = manpowerpool value = -2000 }
		command = { type = oilpool value = 100}
		command = { type = metalpool value = 100 }
		command = { type = energypool value = 100 }
		command = { type = rarematerialspool value = 100 }
	}
	
	action_c = {
		name = "ACTION91181C"
		command = { type = manpowerpool value = -4000 }
		command = { type = add_prov_resource which = -1 value = 5 where = energy }
		command = { type = add_prov_resource which = -1 value = 5 where = metal }
		command = { type = add_prov_resource which = -1 value = 5 where = oil }
		command = { type = add_prov_resource which = -1 value = 5 where = rare_materials }
	}
}

[B]db\events.txt (anhängen):[/B]
event = "db\events\user.txt"

[B]config\event_text.csv (vor den beiden #EOF einfügen):[/B]
#;;;;;;;;;;;x
# User;;;;;;;;;;;x
#;;;;;;;;;;;x
EVT_91181_NAME;Resource for Manpower;;;;Ressourcen für Manpower;;;;;;x
EVT_91181_DESC;Lots of young man have nothing to do. Shall we send them to collect some ressources?;;;;Viele junge Männer haben nichts zu tun. Sollen wir sie in der Ressourcenbeschaffung einsetzen?;;;;;;x
ACTION91181A;None;;;;Keine;;;;;;x
ACTION91181B;2k;;;;2000;;;;;;x
ACTION91181C;4k;;;;4000;;;;;;x
Die Text sind nur mal für Deutsch und Englisch auf die Schnelle implementiert (wenn du die event_text.csv in Excel öffnest sind in der ersten Zeile die Sprachen eingetragen).

Für weitere events kann ich dir die Seite http://editing.hearts-of-iron.com/?page=index von Harvard empfehlen.
 

EHzg Johann

Major
74 Badges
May 27, 2004
553
5
  • Victoria 2: Heart of Darkness
  • Leviathan: Warships
  • Magicka
  • Majesty 2
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Sengoku
  • Sword of the Stars
  • Victoria 2
  • Victoria 2: A House Divided
  • Knights of Pen and Paper +1 Edition
  • Warlock: Master of the Arcane
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Hearts of Iron II: Beta
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Prison Architect
  • Europa Universalis III: Chronicles
  • Cities in Motion
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Europa Universalis III
  • Ancient Space
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Heir to the Throne
Gern geschehen.

Was ich aber noch vergessen habe zu sagen ist, dass du bei einem Einsatz von 2k Manpower eine einmalige 'Belohnung' erhältst, bei 4k hingegen eine dauerhafte. Die Verhälnisse stimmen nicht wirklich (z.B. in 20 Tagen hast du bei 4k schon das Gleiche wie bei 2k), aber ich hab eben nur beliebige Zahlenwerte zum Testen eingesetzt.

Falls du noch Fragen dazu hast meld dich ruhig (am besten via PM).
 

unmerged(32008)

Corporal
Jul 16, 2004
39
0
wie und wo, müsste ich was genau eintragen zwecks dem kleinem event.
habe es heute wo ich mal für 2h daheim war ausprobiert und war über 6k, aber es kam nichts. Meine Frage daher, habe ich dass richtig kopiert (habe mal nach gutdünken gemacht) und weis daher net, ob dass richtig war. Wenn du mir da also ne kleine Anleitung geben könntest, könnte ich dass schon morgen oder spätestens dann nächstes we ausprobieren

Habe jetzt nach dem posten auch die pm funktion gefunden *G*
 

EHzg Johann

Major
74 Badges
May 27, 2004
553
5
  • Victoria 2: Heart of Darkness
  • Leviathan: Warships
  • Magicka
  • Majesty 2
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Sengoku
  • Sword of the Stars
  • Victoria 2
  • Victoria 2: A House Divided
  • Knights of Pen and Paper +1 Edition
  • Warlock: Master of the Arcane
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Hearts of Iron II: Beta
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Prison Architect
  • Europa Universalis III: Chronicles
  • Cities in Motion
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Europa Universalis III
  • Ancient Space
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Heir to the Throne
In Fettschrift sind die Dateien (und Ordner) angegeben in die der jeweilige Inhalt (bis zur nächsten Fettschrift) hineingehört. Am besten öffnest (bzw. erstellst) du die jeweiligen Dateien mit einem Text-Editor (z.B. Windows-Notepad, besser noch UltraEdit). Dannach kopierst du nur noch den Code hinein und voíla.

Zum Testen des Events öffnest du im Spiel am besten die Konsole (F12) und gibst 'manpower' (ggf. mehrmals) ein. Der event schaut alle sieben Tage ob die trigger-Bedingungen (also ob manpower >=4000) gegeben sind und feuert ggf. dann. Das heißt wenn du eine neue GC beginnst, musst du bis zum 7.1. warten, dass der event feuert.

Es kann leicht sein, dass es in einem bestehenden Spiel nicht funktioniert, da es zu Problemen mit der event-history kommen kann, bin mir aber nicht ganz sicher.
 

EHzg Johann

Major
74 Badges
May 27, 2004
553
5
  • Victoria 2: Heart of Darkness
  • Leviathan: Warships
  • Magicka
  • Majesty 2
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Sengoku
  • Sword of the Stars
  • Victoria 2
  • Victoria 2: A House Divided
  • Knights of Pen and Paper +1 Edition
  • Warlock: Master of the Arcane
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Hearts of Iron II: Beta
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Prison Architect
  • Europa Universalis III: Chronicles
  • Cities in Motion
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Europa Universalis III
  • Ancient Space
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Heir to the Throne
Schaut so aus, als ob du den tatsächlichen Event-Code nicht in der user.txt im Unterordner db\events\ abgespeichert hast. Kontrollier mal die Groß-/Kleinschreibung, vielleicht stimmt da was nicht.
 

EHzg Johann

Major
74 Badges
May 27, 2004
553
5
  • Victoria 2: Heart of Darkness
  • Leviathan: Warships
  • Magicka
  • Majesty 2
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Sengoku
  • Sword of the Stars
  • Victoria 2
  • Victoria 2: A House Divided
  • Knights of Pen and Paper +1 Edition
  • Warlock: Master of the Arcane
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Hearts of Iron II: Beta
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Prison Architect
  • Europa Universalis III: Chronicles
  • Cities in Motion
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Europa Universalis III
  • Ancient Space
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Heir to the Throne
Die Fehlermeldung besagt, dass er die user.txt nich finden kann. Also müsste es vermutlich an Dateinamen und/oder Ordner liegen.