Page 1 of 1

Help with triggering

Posted: Wed Jun 22, 2016 1:59 am
by DoomCarrot
Ok, so I'm coming across an issue in my next campaign map...

The enemy is supposed to attack sneakily. Thus, the map is on (fog). However, the ally AI is somehow able to sense the presence of enemies in the woods, and moves their forces towards the hidden troops, giving away the enemy's position to the player.

Thus, is there any sort of trigger or way to keep AI from "seeing" through fog? Just curious. If not, I'll find a workaround, butnthis is irritating me. :lol:

Re: Help with triggering

Posted: Wed Jun 22, 2016 2:32 am
by COOLguy
Not that I know of -

Maybe if you disable them until the enemy is within a certain area?

Re: Help with triggering

Posted: Wed Jun 22, 2016 5:39 am
by Stratego (dev)
or do not put enemy there until you want them to be seen.

Re: Help with triggering

Posted: Wed Jun 22, 2016 12:39 pm
by COOLguy
Daniel (the dev) wrote:or do not put enemy there until you want them to be seen.
+1 :D better idea

Re: Help with triggering

Posted: Wed Jun 22, 2016 1:30 pm
by DoomCarrot
Duh. :roll:

Thanks, Daniel. TBF, it was late at night when I was struggling with this. My processing speed wasn't at 100% :lol:

Re: Help with triggering

Posted: Wed Jun 22, 2016 2:13 pm
by tamtam12345
You can disable them first so they can't move and attack.Then you can set "objs in area""objs enable".

Another method is spawn emeny units"create objs in area" when your objs in certain area.

Or you can just change emeny objs speed.

I find sth interesting.Even I change all emeny sight be 0,they all become blind but they still can move towards you. :)

Re: Help with triggering

Posted: Thu Jun 23, 2016 3:37 am
by DoomCarrot
Exactly, sight does not affect the AI. Even if you have one disabled enemy unit in the corner of the map, the AI will move straight towards it.

AI have radar. :lol:

Re: Help with triggering

Posted: Thu Jun 23, 2016 3:48 am
by DoomCarrot
Ok, it seems that (Eff. Change Obj. Armor/HP/Attack) triggers don't work. I have tried all three, double checked to make sure they are all good, and none of them work. However, change obj. name works fine. Anyone else have this issue?

Re: Help with triggering

Posted: Thu Jun 23, 2016 4:42 am
by tamtam12345
seems no problem.

Re: Help with triggering

Posted: Thu Jun 23, 2016 1:49 pm
by DoomCarrot
Ok, I'm going to try to redo the trigger and see if I can get it working. If not I'll take screenshots for proof lol.

Re: Help with triggering

Posted: Wed Sep 28, 2016 4:00 pm
by merwin352@gmail.com
I was very excited(and over ambitious) when I saw triggers....I wanted to make a maze were enemies would trigger as you walk spun and story was rescuing your brother from abandoned house... I just couldn't get triggering to work as expected :oops:

Re: Help with triggering

Posted: Wed Sep 28, 2016 4:10 pm
by tamtam12345
merwin352@gmail.com wrote:I was very excited(and over ambitious) when I saw triggers....I wanted to make a maze were enemies would trigger as you walk spun and story was rescuing your brother from abandoned house... I just couldn't get triggering to work as expected :oops:
Walk spun:Can be done by using obj in area condition.
Maze:Difficult because AI is not too clever. Maybe can activate disable emenies to move and atk when you step in certain area and change your sight smaller?

Re: Help with triggering

Posted: Wed Sep 28, 2016 5:32 pm
by DoomCarrot
RPG-like campaign maps are certainly doable with the trigger system. What you said could certainly be done, it would just take a while.

You could even have findable items to change your character type, or make your character level up when you kill enemies. The trigger system is actually very great. :)

Re: Help with triggering

Posted: Thu Dec 15, 2016 2:11 am
by nguyentrongvan
Good idea :D