|
|
NKidd

 
Tavern Dweller
|
posted November 18, 2010 05:55 PM |
|
|
Missions Object problem
When i made a custom map, i got this problem 
One of my Primary Object is kill the AI Hero. Well, u can just say that's so easy with Type Object DEFEAT_HERO, but problem is the hero i mention is a Reserve Hero (Deploy in DAY==36).
So if i choose DEFEAT_HERO object type --> the map can't start. Pls help me!!
|
|
markkur

    
     
Honorable
Legendary Hero
Once upon a time
|
posted November 18, 2010 08:16 PM |
|
Edited by markkur at 20:16, 18 Nov 2010.
|
Quote: When i made a custom map, i got this problem 
One of my Primary Object is kill the AI Hero. Well, u can just say that's so easy with Type Object DEFEAT_HERO, but problem is the hero i mention is a Reserve Hero (Deploy in DAY==36).
So if i choose DEFEAT_HERO object type --> the map can't start. Pls help me!!
You know that the names for some heroes are different in the Editor...correct?
____________
"Do your own research"
|
|
NKidd

 
Tavern Dweller
|
posted November 19, 2010 08:06 AM |
|
|
Yeah, the AI Hero is Vittorio and his script name is "Christian"
I still couldn't solve this prob 
I try to change object to KIND_MANUAL and use the script:
function Win(heroname)
if heroname == "Christian" then
Win(PLAYER_1);
end;
end;
Trigger(PLAYER_REMOVE_HERO_TRIGGER, PLAYER_2, "Win");
But nothing happen . Oh, holy shEEp *_*
____________
|
|
NKidd

 
Tavern Dweller
|
posted November 19, 2010 09:26 AM |
|
|
Well, no answer, and i find out the answer myself.
I set the objecttive is not InstantlyACtive and use script to set the activation when the Reserve Hero is appear. Maybe it useful for anyone get the same problem
____________
|
|
markkur

    
     
Honorable
Legendary Hero
Once upon a time
|
posted November 19, 2010 10:13 AM |
|
|
Quote: When i made a custom map, i got this problem 
One of my Primary Object is kill the AI Hero. Well, u can just say that's so easy with Type Object DEFEAT_HERO, but problem is the hero i mention is a Reserve Hero (Deploy in DAY==36).
So if i choose DEFEAT_HERO object type --> the map can't start. Pls help me!!
Sorry I don't script. I'm offering this idea because no one else has tried to help yet. I've read quite a bit but I don't remember seeing what you are trying to do before. ofc I've not read all.
I have had map crash (at start). It was because I had my Objectives wrong. They could not be achieved with the settings I had. i.e. My player to win was not Human playable. I'd swtiched earlier and forgot.
Anwyay it "could be" that at the start; the Hero you want to be defeated is not on the map. Could be something that simple. If I am understanding correctly; Have you tried; leaving the objectives normal at start and for day "37" writing the script for "change Objectives", since your "Hero to defeat" pops in on Day 36?
I don't know but am hoping my thoughts might trigger something you know or forgot. Good luck.
____________
"Do your own research"
|
|
NKidd

 
Tavern Dweller
|
posted November 20, 2010 04:37 AM |
|
|
That's exactly what i did Thanks anyway
____________
|
|
|
|