Dream Wanderer Posted November 24, 2017 Report Share Posted November 24, 2017 Hey there, I had two scripting-related questions concerning a speculative change for a game mod and I was wondering if anyone might know a good way to implement them. Firstly, I was wondering if I could create a method to switch actors within the game and allow units to be replaced by others at their current locations. I had some ideas for allowing certain units to mount and dismount or transform into different creatures and I wanted their different modes to have unique stats and attributes. Secondly, a likely more difficult question I had was about creating user interface buttons these actor switching commands could be tied to. If possible I would want to allow players to perform the unit change quickly and easily, so something like the icons used for building creation could be a potential appearance for these "action buttons" I'd like to add. Quote Link to comment Share on other sites More sharing options...
Stan` Posted November 24, 2017 Report Share Posted November 24, 2017 I think what you are looking for is the unit upgrade function of the game that allows one unit to turn into another with a button. So yes it's doable. 1 Quote Link to comment Share on other sites More sharing options...
Dream Wanderer Posted November 24, 2017 Author Report Share Posted November 24, 2017 (edited) Awesome, if this is doable in a manner similar to Battle For Middle Earth II this will also allow us to switch between multiple weapons and stuff too. I appreciate the tip. Do you know if this function could work with Heroes? And just so i could confirm it: Could you add the previous form as an upgrade to the new unit to allow it to switch back? Edited November 24, 2017 by Dream Wanderer Quote Link to comment Share on other sites More sharing options...
Stan` Posted November 24, 2017 Report Share Posted November 24, 2017 I think there is a working implementation in delenda est a mod made by @wowgetoffyourcellphone. Also have a look at the Hyrule conquest mod maybe there is stuff you can pick from there. As of being able to switch back just make the hero upgrade back to the unit. Quote Link to comment Share on other sites More sharing options...
Dream Wanderer Posted November 24, 2017 Author Report Share Posted November 24, 2017 I really appreciate it. Ironically enough it's Hyrule Conquest I was checking this information for lol. I've been thinking about possible new ideas for the mod's future and discussing them on it's discord. Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted November 24, 2017 Report Share Posted November 24, 2017 In the base game check out the sentry tower template. Look for the <Upgrade> tag. 2 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.