So my script for the spacial action work fine and i was trying to use even to activate and deactivate the special action. So i have the trigger that activate if the player have over 99 points and the event action is a lua script witch should deactivate the even that prevent the player buying the destroyer.The trigger is the one we can chose in the trigger option and is not a lua script.
This is the action script
Code: Select all
ScenEdit_SetEvent ({DescriptionOrID ='DDG no longer available to buy', IsActive='False'})
ScenEdit_SetSpecialAction ({ActionNameOrID ='Buy a Arleigh Burke DDG 100 VP', IsActive='True'})and is have a event that activate when the player score fall under 100.
Code: Select all
ScenEdit_SetEvent ({DescriptionOrID ='DDG now avilabe to buy', IsActive='False'})
ScenEdit_SetSpecialAction ({ActionNameOrID ='Buy a Arleigh Burke DDG 100 VP', IsActive='False'})Also when i test this my game star lagging a lot and it is not because of the amount of unit I play bigger scenario with out problem.