Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 5 - Modders Workshop > Thread: Map Scripting
Thread: Map Scripting This thread is 3 pages long: 1 2 3 · «PREV
mike80d
mike80d


Famous Hero
Map Maker
posted December 29, 2010 02:42 PM

I have a quick scripting question that I'm stuck on.. I'm really hoping someone here can help:

Hero_Must_Survive (Objective).  I CANNOT get this to work properly, and I don't know why.  I can do all other objectives correctly, but not this one.  Can someone please help??

I even set the parameter to the Hero's script name (per the guide book), but whenever ANY hero dies the objective auto-fails.  There must be something simple I'm missing.  

Thank you!!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
naadirslo
naadirslo


Hired Hero
posted December 30, 2010 09:50 AM

you can do that in map editor you don't need scripts to make "hero must survive" obj. Here's an example:

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
mike80d
mike80d


Famous Hero
Map Maker
posted December 30, 2010 03:46 PM

Hi Naadirslo, thanks for the reply but I had done exactly that and it isn't working properly.  Sorry if this is the wrong thread for it, but I put in everything as you stated only to find that whenever ANY hero dies the objective becomes failed.  It musn't be reading the parameter, but I am definitely using the script name.  I don't get why it's not working only for that hero

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
naadirslo
naadirslo


Hired Hero
posted December 31, 2010 09:08 AM

are you sure? this should work...maybe you mistyped the name or something like that...

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
mike80d
mike80d


Famous Hero
Map Maker
posted January 03, 2011 07:07 PM

Yup... its even the same scripting name that I used through the 1k lines of script w/o error.  I guess I'm just really confused as to why its not using the parameter properly, and instead behaving as if any hero dying will cause failure

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
naadirslo
naadirslo


Hired Hero
posted January 06, 2011 10:00 AM

do you do something with this objective in the script?
that could be the case...

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
markkur
markkur


Honorable
Legendary Hero
Once upon a time
posted January 06, 2011 06:26 PM

NaadirSlo, FYI, Gibblets and I are making good progress on a map. Does your offer still stand, to give us a hand with scripting?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
naadirslo
naadirslo


Hired Hero
posted January 07, 2011 09:26 AM

sure. just email me what you need

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
markkur
markkur


Honorable
Legendary Hero
Once upon a time
posted May 29, 2011 04:36 AM

NaadirSlo are you still interested in scripting? Things have been toast for a while but that's changing.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
falcontank
falcontank

Tavern Dweller
posted June 01, 2011 02:38 PM

Hi all! Can anyone tell me is the GetCurrentPlayer() works in multiplayer (online) or not? Because the players are playing at the same time, until they meet each other.
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 3 pages long: 1 2 3 · «PREV
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0274 seconds