HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

About Triggers, Regions, Icons and WE

03-18-2004, 04:18 PM#1
Therin
1) I got this weird problem where I'm using a condition that requires two specific units to be in a region at the same time for a certain thing to happen.
The problem is that sometimes it doesn't work and the weird thing is that it seems like it works when the unit enters the region from a certain angel. I know it sounds weird, but I can't find any other explanation.

Here's the trigger:

Event: A unit enters NPCspeak <gen>
Condition: Triggering unit equal to HERO

Actions:
If(multiple if):
Or(multiple or):
And(multiple and): NPCtalk contain NPC equal to True
NPCtalk contain HERO equal to True
And(multiple and): NPCtalk2 contain NPC equal to True
NPCtalk2 contain HERO equal to True
And(multiple and): NPCtalk3 contain NPC equal to True
NPCtalk3 contain HERO equal to True

Then: (Whatever action)

I pretty sure that it's right, cause it works sometimes, when you enter it from some other angel, like i said before.

2) I've been ignoring the fact that when I go into the f10 menu and such my custom hero icons turn green, but now I want to fix it, so what do I need to do?

3) After installing the patch I get this error message when loading my map:
referencing unknown database field: 'selSize' (Units/ItemData)
I can't seem find what the problem is.

Thanks.
03-18-2004, 06:05 PM#2
Arohk
Quote:
3) After installing the patch I get this error message when loading my map:
referencing unknown database field: 'selSize' (Units/ItemData)
I can't seem find what the problem is.

that means nothing, just ignore it
03-18-2004, 06:10 PM#3
Pyrus
It's hard to read the code. Maybe indent it so it is clear what is in the ORs and ANDs.
Or use code tags: [ code ] ... [/ code ] (no spaces)
03-18-2004, 06:12 PM#4
dexllgamer
Quote:
Originally Posted by Therin
1)
Here's the trigger:

Event: A unit enters NPCspeak <gen>
Condition: Triggering unit equal to HERO

Actions:
If(multiple if):
Or(multiple or):
And(multiple and): NPCtalk contain NPC equal to True
NPCtalk contain HERO equal to True
And(multiple and): NPCtalk2 contain NPC equal to True
NPCtalk2 contain HERO equal to True
And(multiple and): NPCtalk3 contain NPC equal to True
NPCtalk3 contain HERO equal to True

Then: (Whatever action)
from this it sounds like your are trying to have 2 NPC's talk to eachother. If that is the case then i think you are making tit to hard. Since they are NPC (non playable characters) why dont you specifically control them and have them move to tiny regions you make so they stand exactly where they are suposed to stand. And since you are controlling them you should know which will arive at the conversation point first. Just make the action occur when the second NPC reaches the conversation region.

Let me know if im barking up the wrong tree. Is this a cinimatic element?
03-18-2004, 07:08 PM#5
ThyFlame
...

events:
A unit enters region
trigger unit in region = blah
x unit is in region y

Can't do that?

Regardless, under your current system, all you want is:

events: a unit enters region
actions: if triggering unit = blah and NPC is in region [i believe theres a way to automatically pick the region, if u want that]
Then:
Else: Do nothing

Then another if
03-19-2004, 09:53 AM#6
Therin
It's not a cinematic, it's a system where the npc can spawn at three different places (he doesn't move around.) Then when the playable hero enters the region that the npc has spawned in, something will happen.

I know that the trigger works, the problem is the region it's somehow ****ed up.
03-19-2004, 07:03 PM#7
Das Jank
Quote:
Originally Posted by Therin
2) I've been ignoring the fact that when I go into the f10 menu and such my custom hero icons turn green, but now I want to fix it, so what do I need to do?


I asked a question like this recently for custom icon, and here is what you have to do:

Lets say you name your icon "CustomHero"

Part 1
1.) Open Import Manager
2.) Double click imported icon
3.) Check the box that says "Use custom path"
4.) Now put this "ReplaceableTextures\CommandButtons\BTNCustomHero.blp" (note the bold part is the name of your icon, it can be anything)

Part 2
1.) Creat a Disabled version of your icon, easiest way is to use an art program like Photoshop and just paintbrush black over it with 60% Opacity.
2.) Upload the image and do the same at the first image except put this one as, "ReplaceableTextures\CommandButtonsDisabled\DISBTNCustomHero.blp" (Make sure the name in bold is the same as the first icon)
03-23-2004, 07:15 AM#8
Therin
Thanks jank :)

So does anyone know what's wrong with the frekkin regions?
03-23-2004, 11:12 AM#9
ThyFlame
Put some debug lines in your triggers to see what is firing and what values are being returned.


Regions can only be moved once if you are trying to move them.