Search found 6 matches

by MirageTD
Wed Sep 07, 2016 10:57 pm
Forum: Mapping and Modding
Topic: Spy Hunt
Replies: 11
Views: 42470

Here is an examples from survival01 (from inside the Tick function): if soviets.Resources > soviets.ResourceCapacity / 2 then soviets.Resources = soviets.ResourceCapacity / 2 end This will prevent the silos from being filled more than 50%. Voila! Floating prevention achieved. Thanks, I didn't catch...
by MirageTD
Wed Sep 07, 2016 8:33 pm
Forum: Mapping and Modding
Topic: Spy Hunt
Replies: 11
Views: 42470

For preventing floating you could just set their cash to zero (Or some other number) every X ticks. I got that to work on a real player, but it doesn't seem to apply to bots. To add to what abcdefg30 said, if the actor is already placed on the map you can reference it by it's name in the map.yaml. ...
by MirageTD
Wed Sep 07, 2016 3:56 pm
Forum: Mapping and Modding
Topic: Spy Hunt
Replies: 11
Views: 42470

Murto the Ray wrote: For tracking losses you could add an OnKIlled Trigger to each patrol unit.
Is there a way to add a trigger to a spawned unit or would they have to be pre-existing actors on the map?
by MirageTD
Wed Sep 07, 2016 4:05 am
Forum: Mapping and Modding
Topic: Spy Hunt
Replies: 11
Views: 42470

I finished the map I'll be setting this up on. Couldn't figure out how to use the map renderer so I had to hack this together from screenshots... http://i.imgur.com/LtH3Kol.png I also got pretty much all the lua stuff I need to know figured out. All I need is something that can detect when a certain...
by MirageTD
Wed Aug 24, 2016 8:43 am
Forum: Mapping and Modding
Topic: Spy Hunt
Replies: 11
Views: 42470

Thanks for the tip. I've been using that and Fort Lonestar to try to figure out how the lua works. So far I haven't been able to do much, my patrols don't seem to be working and setting win conditions is miles off. The patrol tutorial on GitHub didn't really help much either. I did learn how to add ...
by MirageTD
Mon Jul 18, 2016 9:32 am
Forum: Mapping and Modding
Topic: Spy Hunt
Replies: 11
Views: 42470

Spy Hunt

Greetings! I’ve been making maps for Red Alert 2 for a while now and I thought I’d try my hand at making something for OpenRA. So I starting poking and prodding at some of the originals that had scripting I could use as an example. The lua stuff does not make much sense to me. I’m sure I’ll ...