| 03-18-2004, 04:18 PM | #1 |
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 | |
Quote:
that means nothing, just ignore it |
| 03-18-2004, 06:10 PM | #3 |
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 | |
Quote:
Let me know if im barking up the wrong tree. Is this a cinimatic element? |
| 03-18-2004, 07:08 PM | #5 |
... 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 |
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 | |
Quote:
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 |
Thanks jank :) So does anyone know what's wrong with the frekkin regions? |
| 03-23-2004, 11:12 AM | #9 |
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. |
