Need help with ability: Hire boat

Extremedesyr

New Member
Reaction score
6
Hey, I am trying to make an ability where you can hire a boat, that has 4 abilities and each of these abilities will sail you to another target location, but how do I make the owner of the hero who hires the boat unable to steer, but make the boat able to load the hero, and make the player able to use these abilities? thanks
 

SGT Vejito

New Member
Reaction score
9
The easiest way you can do this is dependent on one main thing:

do you want your player to be able to choose a new location mid travel, or more of a charter system, where you specify where to go and it travels your char to there and once you arrive you can go again.

if yes, then create your boat in Object editor, once that's done create an exact copy, but crank its movement speed to 0, this will make it unable to move, and eliminate the move option in your attack (you might need to specify that it is a building as well, I don't remember off the top of my head)

when a player hires the boat, they hire the one that has no movement speed (and the 4 abilities for locations)

The player can load their hero into the boat and then click an ability of where they want to go, then this trigger can kick in:

Trigger:
  • Boat Travel
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to TravelPointB
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (RedHero is being transported) Equal to True
        • Then - Actions
          • Set Boat[1] = (Casting unit)
          • Unit - Create 1 TravelBoat for Player 12 (Brown) at (Position of Boat[1]) facing Default building facing degrees
          • Set TravelBoat[1] = (Last created unit)
          • Unit - Hide Boat[1]
          • Unit - Order TravelBoat[1] to Move To (Center of TravelPointB)
        • Else - Actions
          • Game - Display to Player Group - Player 1 (Red) for 5.00 seconds the text: Error, load hero before traveling.


for this trigger you'd need 3 Variables; Boat, TravelBoat and RedHero.

RedHero can be made at the start of the game, when red chooses his hero, or w/e you want
Boat and TravelBoat are specified in the trigger itself.

Now all you need to do is close off the trigger when the second boat reaches the proper point:

Trigger:
  • Boat Arrive Location B
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Entering unit) Equal to TravelBoat[1]
    • Actions
      • Unit - Move Boat[1] instantly to (Position of TravelBoat[1])
      • Unit - Remove TravelBoat[1] from the game
      • Unit - Unhide Boat[1]
      • Game - Display to Player Group - Player 1 (Red) for 5.00 seconds the text: Arrived in <Insert name here>


only trick to remember is to make sure the traveling boat isn't a player controlled one, have it controlled by an ally of your players if you have one.
 

BlackRose

Forum User
Reaction score
239
UM. WELL. Try removing it's movement. It should still be able to load/unload.

AND:

Give it 4 abilities, Channel, each with diffferent BASE ORDER ID. (Or 1 Channel ability, just set spell to different level with different BASE ID), whenever they cast the ability, just fade out and then fade in with your units at some different location. (If you want the boat movement to be visible and the journey, this won't work).
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top