EmptyPettyCash()
From ElectronicWar
| Function information for emptyPettyCash() | |
| Function | emptyPettyCash() |
| Parameters | N/A |
| API | Attack API |
| Cost | $250 |
| Level | 15 |
| CPU Usage | 5 |
| Description | Steals any money in the petty cash of the player being attacked. This only works when the port being attacked is a banking port. |
[edit] Basic Attack Example
If placed in the finalize event of an attack script, this will take all of the targets petty cash (if any).
[edit] Advanced Attack Example
if(checkPettyCash() > 800){ emptyPettyCash(); }else{ showChoices(); }
If placed in the finalize event of an attack script, this will automatically take all of the target's petty cash if they it is greater than 800. If they are not, the choices box will be shown, giving you the option on how to end the attack.

