Page 1 of 1
Writing Events
Posted: Sun Feb 24, 2019 12:22 pm
by Tidavis
I'm attempting to write a custom event. A simple unit event where it appears no matter what the parameters of the game are. I can't get it to fire.
Are there any guides on writing events out there? I think I am missing something somewhere but don't know what it could be.
Any help here is appreciated.
RE: Writing Events
Posted: Sun Feb 24, 2019 1:40 pm
by Tidavis
Progress of sorts. My custom event appears in the list not. It didn't fire but it id in the list. Onward ho! Try again! If at first...yada....yada...[:D]
RE: Writing Events
Posted: Sun Feb 24, 2019 2:31 pm
by Robert24
Post the script here. We'll have a look.
RE: Writing Events
Posted: Sun Feb 24, 2019 2:46 pm
by Tidavis
Here ya go.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
;Germany (Formation of Waffen-SS)
{
#NAME= AXIS: Germany-The Waffen-SS Forms
#POPUP=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 0
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 0[0]
#COUNTRY_ID= 45
#TRIGGER= 100
#PRIVATE= 0
#DISPLAY_TURN= 0
#FULL_RESEARCH= 1
#DATE= 1939/09/01
#FAILSAFE_DATE= 1939/09/01
#DESTINATION_RESOURCE= 100,30
; Germany politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 45 [1] [100] [0]
; Dummy condition position (always satisfied)
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
#UNIT= 6 [3] [0] [1SS PanzerGrenadier]
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This event shows up in the list but will not fire. I am sure I am doing something wrong but I have no idea what.
RE: Writing Events
Posted: Sun Feb 24, 2019 4:08 pm
by crispy131313
The destination of the unit is the capital of Denmark, is this the intention?
Edit: I've fixed the script below, this should fire with an announcement that the Waffen SS has formed and the unit will appear turn 1 in Berlin.
RE: Writing Events
Posted: Sun Feb 24, 2019 4:11 pm
by crispy131313
;Germany (Formation of Waffen-SS)
{
#NAME= AXIS: Germany - The Waffen-SS Forms
#POPUP= Germany Forms The Waffen SS
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 1
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 0[0]
#COUNTRY_ID= 45
#TRIGGER= 100
#PRIVATE= 0
#DISPLAY_TURN= 0
#FULL_RESEARCH= 1
#DATE= 1939/09/01
#FAILSAFE_DATE= 1939/09/01
#DESTINATION_RESOURCE= 101,36
; Germany politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 45 [1] [100] [0]
; Dummy condition position (always satisfied)
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
#UNIT= 6 [3] [0] [1SS PanzerGrenadier]
}
RE: Writing Events
Posted: Sun Feb 24, 2019 4:59 pm
by Tidavis
No it was not. Potsdam was the destination but Berlin works too.
RE: Writing Events
Posted: Sun Feb 24, 2019 5:24 pm
by Tidavis
ORIGINAL: crispy131313
;Germany (Formation of Waffen-SS)
{
#NAME= AXIS: Germany - The Waffen-SS Forms
#POPUP= Germany Forms The Waffen SS
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 1
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 0[0]
#COUNTRY_ID= 45
#TRIGGER= 100
#PRIVATE= 0
#DISPLAY_TURN= 0
#FULL_RESEARCH= 1
#DATE= 1939/09/01
#FAILSAFE_DATE= 1939/09/01
#DESTINATION_RESOURCE= 101,36
; Germany politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 45 [1] [100] [0]
; Dummy condition position (always satisfied)
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
#UNIT= 6 [3] [0] [1SS PanzerGrenadier]
}
Thank you! Looks like the only thing preventing the event firing was the location? Was the popup text mandatory? I was going to do work on that later because I thought that was a separate thing?
Going to try another one just to make sure it works correctly.
You definitely earned a credit in my mod if it ever gets to the release point.
Thanks again!
RE: Writing Events
Posted: Sun Feb 24, 2019 7:39 pm
by crispy131313
Yes it was only the location, pop up could be left blank.