Hello, how to create a tech like spies in regicide but for each player’s hero. Or should I create a hero unit out of a king?
Can you detail abit more what you aim to do exactly ?
Like is it for solo scenario, moving targets, static targets, etc.
Hey, of course. I need an ability like spies in regicide. But my regicide kind of game does not have kings, but heroes. So I would like that all heroes would become visible for the researching player for a small duration of time when paid that price. How does that spies technology even work.?
It swap a ressource from 0 to 1, and based on that resource, ennemy is visible or not.
This means it’s an hardcoded mechanics.
So what you could try to do is making a custom tech, with the blank techs available, in trigger.
When the player research it, you garrison some objects into the wanted hero, with this unit having as “blood unit” the id of a Flare A or B. The object must also be invisible, as in the graphics of it must be set to the blank graphic id, same goes for sounds etc so maybe try just using the “invisible object” we have available.
Then you unload the garrison of the heroes.
Then you need to have a looping trigger that will kill those units that got discharged.That will make the invisible object spawning, where he died, a temporary map revealer.
That’s what they did in BfG with the moving supply carts.
And then you just need to make the tech available again when you want to redo the same process.
Seems quite hard. But ill give it a shot. Thank you!
IF you’re not used to trigger yeah it may be abit complexe.
But try to set it up, and if you can’t have it working as I’ve described, DM me mand I’ll try to make you a scenario with the mechanics done so you can study and reproduce.
ill try today after work
You can also maybe work with the “reveal ennemy” resource id 183. But you’d need to have some neutral players for then only having the heroes to be revealed from an ennemy player.
The ally / ennemy vision is driven by resources beeing on/off and tech detection resources on/off too.
I dunno how reveal resource works. But my game is for 6 players and than two players are used for enemy and ally of all players. So it might work. I am not jet successful. Will let u know what happens.
Basically, you turn it from 0 to 1 so it reveals what it’s supposed to. For the ennemy reveal it’s the ennem,y, for shared vision / shared exploration it’s allies exploration / vision.
Just use the trigger “modify resource” and try those one I mentionned. And then with a timer loop you can disable it back, and re-enable it when you research again the custom tech you’ll have to use to process the triggering mechanics.
Ozzy made a video about the Fog of War, you may want to take a look at the video so you can understand even more how the fog of war works for yout custom spy thing. https://www.youtube.com/watch?v=OIyM80ki5NM