case EVENT_TYPE_CAMPAIGN_ITEM_ACQUIRED:
{
object oAcquirer = GetEventCreator(ev); // item acquierer
object oItemAcquired = GetEventObject(ev, 0); // the item that's been acquired
// Insert event-handling code here.
PrintToLog( "**** Acquired item " + GetTag(oItemAcquired) + " by " + GetName(oAcquirer) + " ****" );
break;
}
Recompile module_core, run your module, and check to see if the message shows in your log. The only way this could fail is if the item doesn't have that flag set or if you didn't export the item after setting the flag. I have done this so I know it works.
EDIT: I really hate the way this forum screws up scripts.
Modifié par FalloutBoy, 11 janvier 2010 - 06:27 .





Retour en haut






