1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  4. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  5. The results are out! Check them out.
    Dismiss Notice
  6. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  7. The raddest synthwave tracks were chosen - Check out our Music Contest #12 - Results and congratulate the winners!
    Dismiss Notice
  8. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[Spell] Battleship broadside cannon fire?

Discussion in 'World Editor Help Zone' started by FyreMoon Studios, Feb 13, 2019.

  1. FyreMoon Studios

    FyreMoon Studios

    Joined:
    Dec 10, 2011
    Messages:
    14
    Resources:
    0
    Resources:
    0
    Hey everyone!

    I am currently working on a war ship map where you will be able to battle other ships (NPC or players) to climb up the leaderboard ladder. I'll try to add a wave system with different kinds of ships you need to sink.

    To my question:

    I am trying to create a spell that will fire missiles at enemy ships (units) upon tapping a hotkey. As the title suggests, it is supposed to be a "broadside" spell where multiple cannonballs shall be launched at the same time. To add complexity, I don't want to target enemies directly, but fire either to the starboard or port side depending on the spell I use, hitting enemies in the path, just with a button click.
    I have tried building the spell based on cluster rockets, thunder clap and fan of knives, but either of those require a specific target area or do damage in a radius around my ship.

    Is there a way to create AoE spells that don't require targets and cast missiles in a specific conic area? If left or right won't work no matter what, it would still be cool to have that spray of cannonballs in the direction my ship is facing.

    I hope this is comprehensible enough to know what I'm after.


    Thanks in advance!

    Jon
     
  2. Chaosium

    Chaosium

    Joined:
    Aug 29, 2012
    Messages:
    406
    Resources:
    2
    Models:
    2
    Resources:
    2
    I don't think you can achieve that simply by using default spells, you'll need to trigger it.

    The easiest way would be to create two spells based on Channel for your left & right cannons, then you'd have multiple solutions. You'd need to use a bit of math in order to get a firing angle (for instance, facing of the caster -/+ 90 to shoot left/right) and then cast multiple spells based on shockwave in that direction, for instance. You could also use dummies that would act as projectiles, give them something like immolation aura and cause them to move like cannonballs, although that would need a bit more triggers.
     
  3. givecake

    givecake

    Joined:
    Sep 28, 2016
    Messages:
    47
    Resources:
    1
    Maps:
    1
    Resources:
    1
    I did this for an old map. Easiest done with lots of bricks and mortar triggering as the above post lays out. AoE damage done in the areas where you’re firing will be easy to set damages to. I’ll try to help out if you have any questions with specifics.
     
  4. FyreMoon Studios

    FyreMoon Studios

    Joined:
    Dec 10, 2011
    Messages:
    14
    Resources:
    0
    Resources:
    0
    Thanks for your help!
    I could indeed use some advice for the triggers as I'm not very familiar with triggered custom spells. I created a dummy unit, two abilities for each side based on Channel and managed to get the hotkeys straight. But I don't know how to go about the dummy + spell effect thing.
    Would you mind uploading your map with those triggers/spells?
     
  5. givecake

    givecake

    Joined:
    Sep 28, 2016
    Messages:
    47
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Download 0.9d:

    Irate Pirates v0.9d

    Look for SHIPS Abilities in the trigger set. My triggers are set for multiplayer, so there's dummy groups.
     
  6. FyreMoon Studios

    FyreMoon Studios

    Joined:
    Dec 10, 2011
    Messages:
    14
    Resources:
    0
    Resources:
    0
    Thank you!
    I will have a closer look when I have more time, probably the weekend. I've played your map for a couple minutes and I didn't see those side fire spells in use. Which of the units actually uses them?
    Overall, I got a better understanding of it. Now I need to give it a try :smile:
     
  7. givecake

    givecake

    Joined:
    Sep 28, 2016
    Messages:
    47
    Resources:
    1
    Maps:
    1
    Resources:
    1
    If you want to try the ship abilities, try adding some of the custom ships on the map to try them out. If you wanted to do it 'properly', you'd have to first do some quest-missions on the main island, until you have enough to buy a ship and island expansion from the port. Then you'd have to expand to one of the empty islands. Then get the resources to buy a better ship, and I think those ships will all have varying strengths of the side fire ability. It'd be easier to just add the ships on world editor then test it from there ;d