Classic-Burger Posted yesterday at 06:39 Author Report Share Posted yesterday at 06:39 2 minutes ago, Outis said: I think the biggest questions is: will the 0 AD priest chant Wololo? I found a list of free royalties sounds there, but just to try it out. Quote Link to comment Share on other sites More sharing options...
Classic-Burger Posted 11 hours ago Author Report Share Posted 11 hours ago (edited) Conversion.js a copy of "heal" Emulates heal but uses similar logic for conversion. It's just one of several files, and I think you'll add something. I need ideas. conversion.rar Edited 10 hours ago by Classic-Burger Quote Link to comment Share on other sites More sharing options...
Classic-Burger Posted 8 hours ago Author Report Share Posted 8 hours ago (edited) Unitai.js It's definitely a monstrosity. What a difficult thing, no wonder no one tries to introduce new commands and components lately. https://gitea.wildfiregames.com/0ad/0ad/issues/2579 This is going to be a wall to break down in my project, that is: trying to implement conversion in unit AI. Edited 8 hours ago by Classic-Burger Quote Link to comment Share on other sites More sharing options...
Classic-Burger Posted 7 hours ago Author Report Share Posted 7 hours ago Additional information to explore. https://gitea.wildfiregames.com/0ad/0ad/issues/997 I didn't know the team were looking to have multiple mechanics, including "conversion" But should it be called conversion or convert? Quote Link to comment Share on other sites More sharing options...
Classic-Burger Posted 7 hours ago Author Report Share Posted 7 hours ago I didn't know you could do that, split unitai.js with a new one. "UnitAICanConvert.js" UnitAICanConvert.js Quote Link to comment Share on other sites More sharing options...
Atrik Posted 40 minutes ago Report Share Posted 40 minutes ago @Classic-Burger, why don't you use the existing capture system? Would be much easier. Probably works right away with only few tweaks in templates: I) Add a capture attack to template_unit_support_healer.xml Spoiler <Attack> <Capture> <AttackName>Capture</AttackName> <Capture>30</Capture> <MaxRange>30</MaxRange> <RepeatTime>1000</RepeatTime> <RestrictedClasses datatype="tokens">Structure</RestrictedClasses> </Capture> </Attack> II) Add capture points to all units you want to be able to be converted (you can also then put different values in hero, champion templates...) Spoiler <Capturable> <CapturePoints>50</CapturePoints> <RegenRate>5</RegenRate> </Capturable> Just tested it and it seems seamless. If you really want to add some randomization too into the capture then you could afterward add it to Capturable.js, but you could do it now in 2 lines of code too. Quote Link to comment Share on other sites More sharing options...
Classic-Burger Posted just now Author Report Share Posted just now 37 minutes ago, Atrik said: why don't you use the existing capture system? Would be much easier. In theory I want it to work differently, I want it to have a cooldown and cost faith or power/mana. The other thing is to prevent what happened with the catapults, a few alphas ago. Then it looked like a tennis match. 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.