Units that may destroy itself
-
Any way adding a percentage to a unit to destoy itself?
-
I think you could do it via triggers in the current version, using the chance option and the removeUnits option. Something like this perhaps (tweaking as necessary):
<attachment name="triggerAttachment_UnitSep" attachTo="P1" javaClass="TriggerAttachment" type="player"> <option name="conditions" value="[Your_Condition_Here]"/> <option name="chance" value="2:10"/> <option name="when" value="[When_You_Want]"/> <option name="removeUnits" value="[Unit_to_Die]" count="1"/> </attachment> -
I would need more detail or example XML files.
-
A good example file is the pact of steel repo. Download that map and unzip it, then just open up the xml its full of comments about every option available.
Or just click here.
Another good example is the Warcraft_war_heroes beta from Frostion. Although he uses the chance option for fishing you can modify it for whatever.
I might be more help if you want to post some code I can look at?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login