How do I get a summoned Hero to join my force?

  • Thread starter Thread starter Perseus
  • Start date Start date
P

Perseus

Guest
I am player 1. When my hero enters a region, triggers create a bloodmage for player 2 in that region. during this time, this new summoned hero attacks some enemies. (to make it look like you stumbled upon a wandering hero). when the enemies are dead, i want the bloodmage to join my force. player 1 and player 2 are on the same force. here is my code this far:

mainquest1
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Quest - Create a Required quest titled Main Quest with the description Help the Bloodmage ..., using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
Set mainquest = (Last created quest)
Quest - Create a quest requirement for (Last created quest) with the description Bring the Bloodmage...
Quest - Enable (Last created quest)

paladinenter
Events
Unit - A unit enters rain3 <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Paladin
Actions
Unit - Create 1 Blood Mage for Player 2 (Blue) at (Center of enemy1 <gen>) facing (Center of enemy1 <gen>)
Trigger - Turn off (This trigger)

death1
Events
Unit - Forest Troll Berserker 0085 <gen> Dies
Unit - Forest Troll Berserker 0087 <gen> Dies
Conditions
(Forest Troll Berserker 0085 <gen> is dead) Equal to True
(Forest Troll Berserker 0087 <gen> is dead) Equal to True
Actions
Cinematic - Turn on letterbox mode (hide interface) for (All players): fade out over 2.00 seconds
Cinematic - Disable user control for (All players)
Cinematic - Send transmission to (All players) from Paladin 0006 <gen> named Paladin: Play No sound and display What brings a Blood.... Modify duration: Set to 4.00 seconds and Wait
Cinematic - Send transmission to (All players) from (Summoned unit) named Bloodmage: Play No sound and display Yes, I am a bloodma.... Modify duration: Set to 7.00 seconds and Wait
Cinematic - Send transmission to (All players) from Paladin 0006 <gen> named Paladin: Play No sound and display Of course, follow o.... Modify duration: Set to 4.00 seconds and Wait
Cinematic - Enable user control for (All players)
Cinematic - Turn off letterbox mode (show interface) for (All players): fade in over 2.00 seconds
Quest - Mark mainquest as Discovered
Quest - Display to (All players) the Quest Discovered message: MAIN QUEST
Quest - Display to (All players) the Quest Discovered message: Bring the Bloodmage...
Cinematic - Ping minimap for (All players) at (Center of church <gen>) for 3.00 seconds
Quest - Flash the quest dialog button
Unit - Change ownership of (Summoned unit) to Player 1 (Red) and Change color
Trigger - Turn off (This trigger)

When the Bloodmage defeats the enemies, he does not join my force. How can I fix this?
 
Unit - Change ownership of (Summoned unit) to Player 1 (Red) and Change color

Try changing that to Unit - Change ownership of (Last created unit) to Player 1 (Red) and Change color

I belive that will work.
 
I have something like that except I do not want Player One to control the new hero. I have 2 different bases and a hero selection. If you select a good guy hero you go to Mithril Hall, and a bad guy hero you go to Menzoberranzan. How do I edit forces determining who enters those regions? If player one picks a bad guy hero it puts him in Menzoberranzan region and he gets attacked by the base because he is on Force 1. I want as soon as all 5 heros enter the region, it allies whichever players those are so they aren't fighting the wrong people.

Or if you could do it a simpler way like if player one tries to go to a bad guy it says Sorry you are a Surface Dweller and cannot select a Drow Hero. I haven't completely figured out either one of these yet so any help would be great. Either limit which heros a force can select or change forces upon entering a region. SOME ONE HELP PLZ it is driving me nuts. Thank You
 
Last Created Unit ONLY works for units created by the "Create N Unit(s)" action, doesn't work for anything else.

You can make a dummy ability and use the action "Create N Unit(s)" to create the unit, then refer to them as (Last Created Unit)".
 
General chit-chat
Help Users
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/
  • The Helper The Helper:
    Also on the bottom right side bar we now have a Trending Content Box!
    +1
  • The Helper The Helper:
    Not on the Headline News page just on the Forums page can we get that Featured and Trending on the home page?
  • Ghan Ghan:
    Since the home page is technically a forum, it now shows on all forum views. Still in the sidebar.
    +1
  • The Helper The Helper:
    Happy Friday! Hope everyone has a fantastic day and an even better weekend!
  • The Helper The Helper:
    Happy Sunday!
  • The Helper The Helper:
    I lovc that I can post webp and X links now! :)
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper

The Helper Discord

Staff online

  • Ghan
    Administrator - Servers are fun

Members online

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top