IS THIS POSIBLE pls help

ss501maku

New Member
Reaction score
0
:) pls help me about this one guys..


Peasant builders can build footman, when the build finish that footman can move, attack, and also can spawn 1 archer every 10sec of game time in owner region 001

when the footman is kill or die, the spawn of archer is also stop

tnx a lot :thup:
 

Necrach

You can change this now in User CP.
Reaction score
62
I think that the smoothest way of "building" a footman is to build a dummy building looking like it (with Map Pathing - None) and when its finished, you replace the building with a unit footman using a replace action
Trigger:
  • footrman
    • Events
      • Unit - A unit Finishes construction
    • Conditions
      • (Unit-type of (Constructed structure)) Equal to FootmanBuilding
    • Actions
      • Unit - Replace (Constructed structure) with a Footman using The old unit's relative life and mana


then for the spawning archers, I don't see exactly what you mean, but use something like
Trigger:
  • spawn
    • Events
      • Time - Every 10.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Set tempunitgroup = (Units owned by (Player((Integer A))) of type Footman)
          • Set temppoint = (Center of Region 000 <gen>)
          • Unit - Create (Number of units in tempunitgroup) Archer for (Player((Integer A))) at temppoint facing Default building facing degrees
          • Custom script: call DestroyGroup (udg_tempunitgroup)
          • Custom script: call RemoveLocation (udg_temppoint)

That I made the point in the region temporary is not neccessery, that could be it from start. But I don't know if you want different regions for different players. Then I recommend putting those regions in a Region variable with Arrays, putting the array index to [Loop Integer A] inside the loop, having RegionVariable[1] for Player 1, etc :eek:
 

ss501maku

New Member
Reaction score
0
I think that the smoothest way of "building" a footman is to build a dummy building looking like it (with Map Pathing - None) and when its finished, you replace the building with a unit footman using a replace action
Trigger:
  • footrman
    • Events
      • Unit - A unit Finishes construction
    • Conditions
      • (Unit-type of (Constructed structure)) Equal to FootmanBuilding
    • Actions
      • Unit - Replace (Constructed structure) with a Footman using The old unit's relative life and mana


then for the spawning archers, I don't see exactly what you mean, but use something like
Trigger:
  • spawn
    • Events
      • Time - Every 10.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Set tempunitgroup = (Units owned by (Player((Integer A))) of type Footman)
          • Set temppoint = (Center of Region 000 <gen>)
          • Unit - Create (Number of units in tempunitgroup) Archer for (Player((Integer A))) at temppoint facing Default building facing degrees
          • Custom script: call DestroyGroup (udg_tempunitgroup)
          • Custom script: call RemoveLocation (udg_temppoint)

That I made the point in the region temporary is not neccessery, that could be it from start. But I don't know if you want different regions for different players. Then I recommend putting those regions in a Region variable with Arrays, putting the array index to [Loop Integer A] inside the loop, having RegionVariable[1] for Player 1, etc :eek:





what is the variable type for Set tempunitgroup = (Units owned by (Player((Integer A))) of type Footman)
what is the variable type for Set temppoint = (Center of Region 000 <gen>)
 

Necrach

You can change this now in User CP.
Reaction score
62
The tempunitgroup is a Unit Group, and the temppoint is a Point. Its as simple as that :)
 

ss501maku

New Member
Reaction score
0
last question pls. . .

what is this? (all underline) what to do?

Events
Unit - A unit Finishes construction
Conditions
(Unit-type of (Constructed structure)) Equal to FootmanBuilding <<<how?
Actions
Unit - Replace (Constructed structure) with a Footman using The old unit's relative life and mana

and this?


Unit - Create (Number of units in tempunitgroup) Archer for (Player((Integer A))) at temppoint facing Default building facing degrees
Custom script: call DestroyGroup (udg_tempunitgroup)
Custom script: call RemoveLocation (udg_temppoint)

[/WC3]
 

Necrach

You can change this now in User CP.
Reaction score
62
last question pls. . .

what is this? (all underline) what to do?

Events
Unit - A unit Finishes construction
Conditions
(Unit-type of (Constructed structure)) Equal to FootmanBuilding <<<how?
Actions
Unit - Replace (Constructed structure) with a Footman using The old unit's relative life and mana

and this?


Unit - Create (Number of units in tempunitgroup) Archer for (Player((Integer A))) at temppoint facing Default building facing degrees
Custom script: call DestroyGroup (udg_tempunitgroup)
Custom script: call RemoveLocation (udg_temppoint)

[/WC3]

You could skip the first trigger, as Accname said. But what I did was to make a Costum Unit in the Object editor named FootmanBuilding. Meaning, it was a completely home-made unit and just picked from the list, nothing special about it :eek:

To use "For Loop Integer A" when finding a player in the trigger editor, use "Convert Player Index to Player" and then when setting the Integer, use For Loop Integer A. What you do here is equalizing the player number with the current loop. If you don't know how to use loops, search this forum for a tutorial :)

The costum scripts (and why I am using Set Variable actions at all) are to remove leaks. If you don't know what leaks are, again, search this forum for a tutorial ;)

you can just add units to the building list. that works.

Ah, ok, well that was what I thought. Couldn't remember if it was any bug involved with that, though, and didn't want to risk putting a completely wrong advice here :p
 

ss501maku

New Member
Reaction score
0
i don't know this one, i am confusing finding it! pls help?

Unit - Create (Number of units in tempunitgroup)

tnx world editor member
 

ss501maku

New Member
Reaction score
0
if i do this?

The skill like manta/copy/image can auto spawn every periodic of time! like this trigger that copy have a same damage and damage receive of the original copy and move/attack to other region and uncontrollable copy?
 

ss501maku

New Member
Reaction score
0
Just remember, dont double post. DO NOT EVER Quadrople post(4 posts in a row). :mad:


im sorry! :thup:

:thup: I'm just keep practicing triggers and more triggers and learned more :thup:

47208_149092748457438_100000701402753_298688_1363332_n.jpg


58725_149092771790769_100000701402753_298689_4982407_n.jpg


help this problem?
58725_149092775124102_100000701402753_298690_1036798_n.jpg
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
I'm not sure why you have the first problem, but to fix the problem, you should create a trigger that removes a footman from the unit group when it dies.

Also, please read the rules, you must wait 24 hours after the last post before you can 'bump' a thread. Double posting is not allowed (unless it has been 24 hours since your last post), as you can simply use the 'Edit' button.
 
General chit-chat
Help Users
  • The Helper The Helper:
    I just got to watch the video because even though I was there I was trying to work out tech problems with the chat since I was the social media guy so I was distracted but check it out guys the video is super fucking great!
    +1
  • 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 Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top