New card morale reporting

Post bug reports and ask for game support here.

Moderator: Vic

Post Reply
glvaca
Posts: 1312
Joined: Tue Jun 13, 2006 12:42 pm

New card morale reporting

Post by glvaca »

Hi Vic,

I'm creating some cards for Air units and are experiencing some problems with reporting of morale increases, although, the morale increase is actually carried out.

In this example, I create an OKL attention card much like the Stavka attention card, but specifically for Air units only.

Here the event code:

https://dl.dropboxusercontent.com/u/636 ... _Event.jpg


Here's the message in the Event: As in mazny other events (and the original stavka one) I'm using tempvar0 for the morale bonus.

https://dl.dropboxusercontent.com/u/636 ... essage.jpg


I select the card to play from 4th Luftflotte HQ:

https://dl.dropboxusercontent.com/u/636 ... L_Card.jpg


I select VIII Flieger Korps to play the card on:

https://dl.dropboxusercontent.com/u/636 ... rd_8FK.jpg


This is the report I get, notice the 0 for morale.

https://dl.dropboxusercontent.com/u/636 ... Report.jpg


This is the status of one air unit before the card was played:

https://dl.dropboxusercontent.com/u/636 ... e_Card.png


This is the status of the unit after the card was played:

https://dl.dropboxusercontent.com/u/636 ... Effect.jpg


So basically, the morale bonus does work but is incorrectly reported. I just tried everything I could think of but can't figure out why the reporting is bad.
Is this a bug? A limitation of some kind?

Also, is there a list of tempvars that have specific uses? I see the same tempvars being used for specific purposes but have not found any documentation in Case Blue, although I have read it is available for one of your other games. Can this be shared, or, can you point me to where I can find this?

Thanks!
Glenn
User avatar
Vic
Posts: 9265
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: New card morale reporting

Post by Vic »

Hey there,

No its suboptimal event scripting :)

Your are quite close to have it working.

However... its looping through all units and checking if they are in the chain of command on the Air corps... so far so good.

But the tempvar0 is modified by HqPower (distance from HQ).. So if the last unit checked in that loop is actually outside HQ range it will end up setting tempvar0 to 0. Which would then be reported in the message.

Fix would be to add another tempvar. Say tempvar 44 for example. You would initially set tempvar44 to 0. And then in the loop CHECK IF tempvar0>tempvar44 and if so set tempvar44 = tempvar0 and then report tempvar44 in your message. This way you'll avoid the current issue.

hope this helps.

best,
Vic
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
glvaca
Posts: 1312
Joined: Tue Jun 13, 2006 12:42 pm

RE: New card morale reporting

Post by glvaca »

Hi Vic,

Sorry for the late answer but didn't want to bug you too much.

In the end for air units which are spread all over the map I decided to remove HQ power modification and that took some time to figure it out.

Got it working now. Thanks!

Best,
Glenn
Post Reply

Return to “Tech Support”