We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copied from phu54321/epScript#5
function afterTriggerExec() { while(Bring(P1, AtLeast, 1, "Zerg Drone", "Anywhere")) { MoveLocation("loc", "Zerg Drone", P1, "Anywhere"); RemoveUnitAt(1, "Zerg Drone", "loc", P1); CreateUnit(1, "Zerg Mutalisk", "loc", P1); } } /* __epspy__ makes 3 Triggers for 3 actions, 2 objects are wasted. def afterTriggerExec(): if EUDWhile()(Bring(P1, AtLeast, 1, "Zerg Drone", "Anywhere")): DoActions(MoveLocation("loc", "Zerg Drone", P1, "Anywhere")) DoActions(RemoveUnitAt(1, "Zerg Drone", "loc", P1)) DoActions(CreateUnit(1, "Zerg Mutalisk", "loc", P1)) EUDEndWhile() */ It should use 1 DoActions in a series of actions for performance and map file size.
function afterTriggerExec() { while(Bring(P1, AtLeast, 1, "Zerg Drone", "Anywhere")) { MoveLocation("loc", "Zerg Drone", P1, "Anywhere"); RemoveUnitAt(1, "Zerg Drone", "loc", P1); CreateUnit(1, "Zerg Mutalisk", "loc", P1); } } /* __epspy__ makes 3 Triggers for 3 actions, 2 objects are wasted. def afterTriggerExec(): if EUDWhile()(Bring(P1, AtLeast, 1, "Zerg Drone", "Anywhere")): DoActions(MoveLocation("loc", "Zerg Drone", P1, "Anywhere")) DoActions(RemoveUnitAt(1, "Zerg Drone", "loc", P1)) DoActions(CreateUnit(1, "Zerg Mutalisk", "loc", P1)) EUDEndWhile() */
It should use 1 DoActions in a series of actions for performance and map file size.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Copied from phu54321/epScript#5
The text was updated successfully, but these errors were encountered: