Help: event for Near_East

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

Moderator: Vic

Post Reply
User avatar
lion_of_judah
Posts: 2332
Joined: Mon Jan 08, 2007 6:36 pm
Location: somewhere over the rainbow

Help: event for Near_East

Post by lion_of_judah »

I'm attempting to make an event that will allow the certain Arab countries request economic aid in the form of aid there by that nation getting 2000 Raw for the expediture of 25 PP. It is not working and I'm having a heck of a time, below I have pasted what I've done and if anyone could please help that would be appreciated. Thanks



Image
Attachments
eventcode..event1.jpg
eventcode..event1.jpg (60.39 KiB) Viewed 75 times
User avatar
lion_of_judah
Posts: 2332
Joined: Mon Jan 08, 2007 6:36 pm
Location: somewhere over the rainbow

RE: Help: event for Near_East

Post by lion_of_judah »

Next event...

Image
Attachments
Eventcode..teevent.jpg
Eventcode..teevent.jpg (60.83 KiB) Viewed 75 times
GrumpyMel
Posts: 864
Joined: Fri Dec 28, 2007 8:37 pm

RE: Help: event for Near_East

Post by GrumpyMel »

Not sure what the problem might be, but I've run into some issues in the past with playing event cards, if the triggered event doesn't return a message to the regieme which played it. That can also be a decent method of debugging events if you run into problems. Put a few messages in...at certain points during the event execution...and you can see what the values are for certain variables during execution....as well as tell what steps get executed during the event. Can really help with more complex events.
User avatar
lion_of_judah
Posts: 2332
Joined: Mon Jan 08, 2007 6:36 pm
Location: somewhere over the rainbow

RE: Help: event for Near_East

Post by lion_of_judah »

I'm not the best at programming and so I'm just probably missing something really simple and easy to fix. Just happens I have no idea what I'm doing wrong. There are 11 regimes 12 if you count " Neutral" which is non-playable" I wish the manual would be more indepth about event programming and what to do......
GrumpyMel
Posts: 864
Joined: Fri Dec 28, 2007 8:37 pm

RE: Help: event for Near_East

Post by GrumpyMel »

So what's actually happening? Is the regieme getting the action card? Is anything at all happening when the action card is played? (I assume you are having the action card trigger the correct event number?).

Your code looks fine to me...though I don't remember the order of the parameters in those functions from memory...so you probably want to check those.

What I would do with the play raw material event for debugging purposes is have it send a message to the regieme you are testing it with (hard code the regieme number in for now just to test, don't use a variable) and have the message text include the values of TempVar0 & TempVar1.... that may help key you in on where the problem is occuring.
User avatar
lion_of_judah
Posts: 2332
Joined: Mon Jan 08, 2007 6:36 pm
Location: somewhere over the rainbow

RE: Help: event for Near_East

Post by lion_of_judah »

the regimes are getting the action and card and I can spend the required 25 PP but then nothing happens, the regime does not get the raw material amount, nothing zip, nodda....
Grymme
Posts: 1776
Joined: Sun Dec 16, 2007 5:06 pm
Contact:

RE: Help: event for Near_East

Post by Grymme »

A classic mistake is forgetting to connect the actioncard to the event in the actioncard screen. That could be it.
My Advanced Tactics Mod page
http://atgscenarios.wordpress.com

30+ scenarios, maps and mods for AT and AT:G
User avatar
lion_of_judah
Posts: 2332
Joined: Mon Jan 08, 2007 6:36 pm
Location: somewhere over the rainbow

RE: Help: event for Near_East

Post by lion_of_judah »

I double checked and it appears that the card is linked to this event....
Post Reply

Return to “Mods and Scenarios”