Writing Events (Full Version)

All Forums >> [New Releases from Matrix Games] >> Strategic Command Series >> Strategic Command WWII: World at War >> MODS and Scenarios



Message


Tidavis -> Writing Events (2/24/2019 2:22:36 PM)

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.




Tidavis -> RE: Writing Events (2/24/2019 3:40:43 PM)

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]




Robert24 -> RE: Writing Events (2/24/2019 4:31:32 PM)

Post the script here. We'll have a look.




Tidavis -> RE: Writing Events (2/24/2019 4:46:42 PM)

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.




crispy131313 -> RE: Writing Events (2/24/2019 6:08:29 PM)

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.




crispy131313 -> RE: Writing Events (2/24/2019 6:11:24 PM)

;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]
}




Tidavis -> RE: Writing Events (2/24/2019 6:59:59 PM)

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





Tidavis -> RE: Writing Events (2/24/2019 7:24:22 PM)


quote:

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!




crispy131313 -> RE: Writing Events (2/24/2019 9:39:20 PM)

Yes it was only the location, pop up could be left blank.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.625