Writing Events

Post Reply
User avatar
Tidavis
Posts: 197
Joined: Sat Jul 26, 2014 9:09 pm
Location: Peoria, Illinois

Writing Events

Post 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.
User avatar
Tidavis
Posts: 197
Joined: Sat Jul 26, 2014 9:09 pm
Location: Peoria, Illinois

RE: Writing Events

Post 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]
User avatar
Robert24
Posts: 326
Joined: Fri Jul 26, 2013 2:17 am

RE: Writing Events

Post by Robert24 »

Post the script here. We'll have a look.
User avatar
Tidavis
Posts: 197
Joined: Sat Jul 26, 2014 9:09 pm
Location: Peoria, Illinois

RE: Writing Events

Post 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.
User avatar
crispy131313
Posts: 2125
Joined: Fri Nov 29, 2013 11:37 pm

RE: Writing Events

Post 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.
Fall Weiss II - SC3 Mod
tm.asp?m=4183873

User avatar
crispy131313
Posts: 2125
Joined: Fri Nov 29, 2013 11:37 pm

RE: Writing Events

Post 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]
}
Fall Weiss II - SC3 Mod
tm.asp?m=4183873

User avatar
Tidavis
Posts: 197
Joined: Sat Jul 26, 2014 9:09 pm
Location: Peoria, Illinois

RE: Writing Events

Post by Tidavis »

No it was not. Potsdam was the destination but Berlin works too.

User avatar
Tidavis
Posts: 197
Joined: Sat Jul 26, 2014 9:09 pm
Location: Peoria, Illinois

RE: Writing Events

Post 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!
User avatar
crispy131313
Posts: 2125
Joined: Fri Nov 29, 2013 11:37 pm

RE: Writing Events

Post by crispy131313 »

Yes it was only the location, pop up could be left blank.
Fall Weiss II - SC3 Mod
tm.asp?m=4183873

Post Reply

Return to “MODS and Scenarios”