HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

dialog hero creation help

07-06-2006, 01:09 AM#1
refl3ction
ok for my campaign im using a worldwide effect (one map for one region) and the different races within the world have their own city,
the starting map uses dialog to create a hero and i want the hero created to move to his race's starting city (a different map)

thanks for ne1 helps
07-06-2006, 01:28 AM#2
aquilla
uhm, well, compare each hero's race and move them accordingly?
07-06-2006, 01:32 AM#3
map-maker
in the trigger you create your hero in...just depending on the dialouge button clicked move the hero to its respective city.
07-06-2006, 02:40 AM#4
refl3ction
before the hero is stored in the the cache, i create the hero stored in a region and i remove the leak using custom scripts, here is my trigger:
Trigger:
Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to C_Mage[1]
Collapse Then - Actions
Set Creation_Point = (Center of Create <gen>)
Unit - Create 1 |cff000000Mage|r for Player 1 (Red) at Creation_Point facing Default building facing degrees
Custom script: call RemoveLocation (udg_Center_Point)
Game Cache - Create a game cache from Winterwind.w3v
Game Cache - Store (Last created unit) as Humans of Heroes in (Last created game cache)
Set Hero = (Last created game cache)
Else - Actions

when i save the map, i get a error saying that the script needas a name,

ne ideas??
07-06-2006, 03:50 AM#5
Alevice
You called RemoveLocation (udg_Center_Point), yet your global is called Creation_Point.
07-06-2006, 04:47 AM#6
refl3ction
gah
thanks for the help im aretard, yah see triggers arnt my strong point

also, how do i load the hero into that certain map, after ive created the cache?