Maelstorm Ability possible?

SayNoToWar

Member
Reaction score
3
Maelstrom ability possible?

Ayeaye the-helper community,

I am maker of Battleships Crossfire (bs cf) since some years and got a problem with an ability:

The Maelstrom ability of the Seawaver in the current version has a buggy & laggy gui code which is not really working if two people cast it at once (download bs cf 4.31: wc3files.de -> downloads; the 14k shipshop).

I tryed to make it look a bit like a maelstrom.

The main problem is that currently I create 72 waterfalls (destructables) in a spiral around the caster faceing the caster and then move nearby ships towards the center.:nuts:

The moving towards the center is not the problem, I made it alot better. Although I think some pros would advice me to make it with timers its made by a script beeing run every 0,1s which disables itself if its not needed anymore (It can work even with many castings at once).

Anyone got any idea how to make such a maelstrom look nice without massive lags? Or do you say I would need to get a special model for it?

At this time I see no way for it and will maybe have to remove it for the next version... :banghead:
Of course the random names of the Seawaver would be changed those who helped. :)
Want to see my crappy gui code?
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
Reduce number of waterfalls? And rather make them look larger by default?

>>Want to see my crappy gui code?
You bet.
 

bOb666777

Stand against the ugly world domination face!
Reaction score
117
72 destructables aren't THAT much but it could help to remove some. Depending on the circle's size, 18 or 36 should do the trick. But yeah post the trigger.
 

SayNoToWar

Member
Reaction score
3
72 destructables aren't THAT much but it could help to remove some. Depending on the circle's size, 18 or 36 should do the trick. But yeah post the trigger.

Well I think 72 are already too few xD
but yes I guess you are right, I should just strech them a bit.
thanks

edit: trigger source in english comes soon, sry
 

SayNoToWar

Member
Reaction score
3
But to stretch them I need to make them as units or is there any way to create a streched destructable?
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Go to ur triger events above it is ur triger name right click on it and say copy as text then in ur post here click on that yellow a the right click between it and paste
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Yes and dont take a pic and attach it do what i said.
 

SayNoToWar

Member
Reaction score
3
y sorry I forgot about that xD

One general question: What causes more lags: destructables or units? or is it only the model that makes the difference?
 

SayNoToWar

Member
Reaction score
3
ok, here it is:

Trigger Maelstrom (triggered by ability use):
Code:
For each (Integer A) from 1 to 72, do (Actions)
    Loop - Actions
        Set t[SPOILER][/SPOILER]emppunkt = ((Position of (Casting unit)) offset by (((0.00 - (Real((Integer A)))) + 36.00) x 12.00) towards ((Real((Integer A))) x 20.00) degrees)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Terrain pathing at temppunkt of type Walkability is off) Equal to True
                (Terrain pathing at temppunkt of type Amphibious Pathing is off) Equal to False
            Then - Actions
                Destructible - Create a Maelstorm Wasserfall at temppunkt facing (Angle from temppunkt to (Position of (Casting unit))) with scale ((0.01 x (Real((Integer A)))) x 1.05) and variation 0
                Set maelstormdoodad[(Integer A)] = (Last created destructible)
            Else - Actions

Set Maelstormpunkt[(Player number of (Owner of (Casting unit)))] = (Position of (Target unit of ability being cast))

Set maelstorm_running[(Integer A)] = ((Level of Maelstorm  for (Casting unit)) x 15)

Trigger - Turn on maelstrom mover <gen>

Wait ((Real((Level of Maelstorm  for (Casting unit)))) x 1.50) seconds

For each (Integer A) from 1 to 73, do (Actions)
    Loop - Actions
        Destructible - Remove maelstormdoodad[(Integer A)]



Trigger Maelstrom mover (runs every 0,1 s):
Code:
For each (Integer A) from 1 to 13, do (Actions)
    Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                maelstorm_running[(Integer A)] Greater than 0
            Then - Actions
                Set maelstorm_running[(Integer A)] = (maelstorm_running[(Integer A)] - 1)
                Set maelstorm_tempgroup = (Units in (Region centered at Maelstormpunkt[(Integer A)] with size (1000.00, 1000.00)))
                Unit Group - Pick every unit in maelstorm_tempgroup and do (Actions)
                    Loop - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                (Picked unit) Not equal to (Casting unit)
                                ((Picked unit) is A structure) Equal to False
                            Then - Actions
                                Set temppunkt = ((Position of (Picked unit)) offset by 10.00 towards (Angle from (Position of (Picked unit)) to Maelstormpunkt[(Integer A)]) degrees)
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    If - Conditions
                                        (Terrain pathing at temppunkt of type Walkability is off) Equal to True
                                        (Terrain pathing at temppunkt of type Amphibious Pathing is off) Equal to False
                                    Then - Actions
                                        Unit - Move (Picked unit) instantly to temppunkt, facing ((Angle from (Position of (Picked unit)) to Maelstormpunkt[(Integer A)]) + 0.00) degrees
                                    Else - Actions
                                Custom script:   call RemoveLocation (udg_temppunkt)
                            Else - Actions
            Else - Actions
                Custom script:   call RemoveLocation (udg_Maelstormpunkt[GetForLoopIndexA()])
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        And - All (Conditions) are true
                            Conditions
                                maelstorm_running[2] Equal to 0
                                maelstorm_running[3] Equal to 0
                                maelstorm_running[4] Equal to 0
                                maelstorm_running[5] Equal to 0
                                maelstorm_running[6] Equal to 0
                                maelstorm_running[7] Equal to 0
                                maelstorm_running[8] Equal to 0
                                maelstorm_running[9] Equal to 0
                                maelstorm_running[10] Equal to 0
                                maelstorm_running[11] Equal to 0
                                maelstorm_running[12] Equal to 0
                    Then - Actions
                        Trigger - Turn off (This trigger)
                    Else - Actions
 

SayNoToWar

Member
Reaction score
3
Solution

Thanks for your time ppls, I found a solution: I change the textures of the flamestriketarget.mdx to make it look a bit like waves :).
I ll post the link here when its completely finished.
thx
 

SayNoToWar

Member
Reaction score
3
Closing posting, Maelstrom model

Here is my maelstrom model as used in Battleships Crossfire. HF with it, if anyone needs it. ;)
 

Attachments

  • maelstrom.jpg
    maelstrom.jpg
    311.6 KB · Views: 89
  • Maelstrom 1.0.zip
    25.1 KB · Views: 108

WolSHaman

knowledgeably ignorant
Reaction score
51
Well I think 72 are already too few xD
but yes I guess you are right, I should just strech them a bit.
thanks

edit: trigger source in english comes soon, sry

generally for circles around a unit, 4 units are required for each 50 distance away from the hero. For example, if you wanted waterfalls a distance of 50, 100, 150 and 200, you would need 40, assuming you wanted them every 50. But generally creating a special effect every 100 distance away from the hero is fine, so you'd want them at 50, 150 and 250. To determine the angle apart you need each one to be spaced for an even circle, divide 360 by the number of units in the circle. For example, for a distance of 100 you'd have a circle of 8 units, and they'd be placed every 45 (360/8) degrees. And it seems like this spell would be hard to have for multiple nearby castings no matter what, because if a unit was under the effect of 2 maelstroms, they'd both be pulling the hero towards it, unless you used unit groups or something.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top