Noob needs help with event writing, Please!

Discuss and post your mods and scenarios here for others to download.

Moderator: Vic

Post Reply
explorer2
Posts: 468
Joined: Thu Nov 29, 2007 10:45 pm

Noob needs help with event writing, Please!

Post by explorer2 »

Nevermind. I found a work around.
Sorry, but I can't seem to be able to delete this thread.


This is my first time trying to mod, (and 0 programming experience) and I've hit a wall, please help!
I'm trying to create an event in the World at War mod which would automatically wake up Soviet Union if Germany's power points within 4 hexes of the border exceed a set number (2000). Areas (3, 2, 0) & (3, 4, 0) are the Poland & Axis Minor areas that constitute the border with Soviets. I want it to check the sum of power points in those 2 areas, and if they exceed 2000, Soviets wake up.

Here's what I've tried, it's not working, I'm clueless. Any help GREATLY appreciated.

0

Code: Select all

) Check: Check Round = 0
 1)       SetVAr: TempVar0= CheckPowerPoints In Area (3, 2, 0)
 2)       SetVar: TempVar0+ Check Power POints in Area (3, 4, 0)
 3)       Check: TempVar0 > 2000
 4)           Execute: ExecSetSleep (3, 0)
 5)           Execute: ExecMessage (0, 2, -1, -1)
 6)       End Check
 7)  End Check
Post Reply

Return to “Mods and Scenarios”