Jump to content
  • Sign Up
4 votes
Guests cannot vote

Provide full unit protox API to triggers

  • Views: 32
  • Submitted:

A small number of properties for a unit can be changed via modify protounit trigger and some techs but otherwise unit modifications are not possible.

It would be nice to expand to provide full API for editing all unit properties listed in there (Other than critical ones such as object name, unit type) which would include:

* Adding/Modifying/Removing properties such as obstruction radius, bounty factor, turn rate, decay time.

* Adding or removing the many supported flags.

* Adding/Modifying/Removing action types. E.g. Change the attack on some special attacks, or the radius or splash attacks, Add or remove regen persistent actions, even silly things like have minotaurs gore units across the map etc.

* Other property changes such as changing what units can be trained, changing what techs can be researched, allowing other units to carry relics, etc.

The possibilities this would provide for scenario designers for custom games is enormous!

Maybe the simplest way to enable it would be to allow an xml fragment to be accepted for a unit id/name and it overrides the protounit data with the provided fragment but there are probably neater ways.

User Feedback

Recommended Comments

Meant to specify preferable it be per player - end result is effectively a super powerful modify protounit replacement. On that note native support to set a value for modify protounit rather than only add or subtract would be nice. There's an overflow and underflow hack I found which allows effectively setting a value but it would be nice to be able to remove it.

Edited by nottud
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...