wowgetoffyourcellphone Posted August 27, 2016 Report Share Posted August 27, 2016 (edited) Hi guy. So, I read somewhere a few month ago on the forum (maybe?) that actors can now show upgrades with techs. Like, if I have GOLD SHILED tech researched, the actor can know this and display the Gold Shield variation. I looked on the forum but couldn't find it with search function. My qyuestion is, is this true? And if it is true, is there a example of this in the game right now? If true and no example yet, can someone show me (and everyone else) how to do it? Thanks. Edited August 27, 2016 by wowgetoffyourcellphone Quote Link to comment Share on other sites More sharing options...
fatherbushido Posted August 27, 2016 Report Share Posted August 27, 2016 Yes it is. Use the replace (instead of add or multiply) operation for the value: VisualActor/Actor For example: "modifications": [{ "value": "VisualActor/Actor", "replace": "units/athenians/champion_unit_marine.xml" }] Currently it is not used in the main game afaics but it works pretty well. 1 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted August 27, 2016 Author Report Share Posted August 27, 2016 (edited) Thanks fatherbushido, but I already knew that one. That is actor switching on tech/json side. I thought maybe there was code in the actors themself that recognize techs are being research, inside the actor xml as a variation. Was this implemented or just maybe I saw it was a Trac ticket and my memory got confused. Edited August 27, 2016 by wowgetoffyourcellphone 1 Quote Link to comment Share on other sites More sharing options...
fatherbushido Posted August 27, 2016 Report Share Posted August 27, 2016 I don't really get what you want to do. Perhaps you think at something like #3983 but listening to techs (instead of health variations) ? Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted August 27, 2016 Author Report Share Posted August 27, 2016 (edited) Oh I thought the re was something like this possible in the actors: <variant frequency="1" name="tech-hellenes/gold_shields"> <textures> <texture file="props/shield/gold.png" name="baseTex"/> <texture file="props/shield/gold_norm.png" name="normTex"/> <texture file="props/shield/gold_spec.png" name="specTex"/> </textures> </variant> It detects that the technology hellenes/gold_shields.json has been researched and then changes the texture. I thought this was implemented but maybe I am misremember. Edited August 27, 2016 by wowgetoffyourcellphone Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.