Unit Movements.

BSJikan

New Member
Reaction score
5
I don't know if this is accomplishable, but I wanted to make a passive ability that wherever a unit with this ability moves they have blight created underneath them. I want it to also disappear from behind them. The only reason that I want this is for the unit regen requirement of being on blight.
If this this can not be done, then I'll survive to setting it so they can regen all the time.

The next one that I can't do alone is some kind of passive ability that whenever the unti stands still and is doing no actions for say 5 seconds, then they create a shroud of darkness around them, thereby simulating night, which allows them to regen, same as above with the unit regen requirement, only this time it requires night.
Once again, if this can not be done, then I'll survive to setting it so they can regen all the time.

If I was too vague or not understandable, please ask and I'll try my best to clear your confusion.
 

Zedzy

ℑΣÐℑΨ
Reaction score
41
Do you need the blight one MPI or MUI? I could make one MPI quickly if you want.
 

BSJikan

New Member
Reaction score
5
If I knew what those meant, I would probably agree.
I only know a little JASS and the GUI. But I can't figure out what I need to do to make the abilities I listed.
MUI and MPI are more coding, like JASS and GUI right?
 

Zedzy

ℑΣÐℑΨ
Reaction score
41
MPI means multiple player intancability. This means that several units can use the ability at once, as long as it is by different players.

MUI means multiple unit intancability. This means that multiple units can use it at once, even from the same player.
 

BSJikan

New Member
Reaction score
5
Dang. Just shoot me now. That all went over my head. No fault of your own, I'm a little brain dead at the moment. I guess in due time I will come to understand it.

But anyway, if you are still willing to help with what you said, then I'm willing to accept.
 

Zedzy

ℑΣÐℑΨ
Reaction score
41
:S may take longer then I expected, I'm just making a unit with no food and no model that has blight.
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
Code:
Untitled Trigger 004
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Set p = (Position of hero[(Player number of (Picked player))])
                Environment - Remove Blight for (Picked player) from p to a radius of 700.00
                Environment - Create Blight for (Picked player) from p to a radius of 450.00
                Custom script:   call RemoveLocation(udg_p)

Code:
Untitled Trigger 005
    Events
        Map initialization
    Conditions
    Actions
        Set hero[1] = Mountain King 0004 <gen>
        Set hero[2] = Blood Mage 0003 <gen>

>>Does the blight go away after they step away?
Yes...

It can be done better, by removing the blight at the point you create it, after 1 second....
 

Zedzy

ℑΣÐℑΨ
Reaction score
41
Wow, I was way off, I was creating a unit that had blight, the removing it, then creating a unit that despells blight then removing it, I thought there was a create/remove action, but didn't see it.

Edit: ManyTimes, that would make the blight appear then disappear, without the player seeing it.

Edit 2: this is what I had before I remembered that your not supposed to use waits inside of unit groups.
Do not use this, it's just to show you what I've done.

Code:
Blight Walk Copy
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in (Units in (Playable map area) matching ((Level of Blight  for (Matching unit)) Greater than or equal to 1)) and do (Actions)
            Loop - Actions
                Custom script:   local unit udg_Blight_Unit
                Custom script:   local unit udg_UnBlight_Unit
                Unit - Create 1 Blight for (Owner of (Picked unit)) at (Position of (Picked unit)) facing Default building facing degrees
                Set Blight_Unit = (Last created unit)
                Unit - Remove Blight_Unit from the game
                Unit - Create 1 Despell Blight for (Owner of (Picked unit)) at (Position of (Picked unit)) facing Default building facing degrees
                Set UnBlight_Unit = (Last created unit)
                Unit - Remove UnBlight_Unit from the game
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top