Tutorial Guide for Buildable Gates

storgaard

New Member
Reaction score
4
Hey, so after a long holliday, hundreds of threads i think im ready to share the way i found, ive seen meny other answer the same questions as me,
so i hope this will help!.

Step 1 making the units: First you make 1 unit based on the human unit farm
with change this: Abilities-none, grund texture=none, game interface= what ever you like,art modeloodads\LordaeronSummer\Terrain\Gate\Gate.mdl
Recruied animation names:stand, art- shadow textures=ShadowStoneWall1
colision size:20,Pathing:magical pen wall and last placement recruies:grund pathable.

Now you go down under EDIT sufrace and post this into the field:Buildable Horizontal.

After this you got youre first unit, you now copy paste it into 6 units.

all with the name Gate but after go down and edit sufrance,

this shuld be the 6 names

Gate Buildable Horizontal
Gate Buildable Vertical
Gate (closed)(Horizontal)
Gate (closed)(Vertical)
Gate (Open)(Horizontal)
Gate (open)(Vertical)

after that you go into youre units and edit the despriptions so their fit do what the unit do. after that you change so that all that dosnt got the name Buildable Into it, you will change build speed to 1 so that they will open/close nearly instantly, you shuld also remove the gold/lumber cost of them, since it shuld´t cost to open close a gate

Now you go into the units called (open)((Horizontal or Vertical))
and go down to Colision size and change it to 0
than you go to pathing - Doddads- Mushrooms>base< birds>base<..............
this is importent, since Mushrooms dosnt have a pathing, but its still a pathing. this is because if you try to upgrade a non pathing into a pathing youre game will crash.

after you have done this to both youre (Open)
you upload the file under this thread caled "vertical gate" You import this, restart World EDIT and put it into the field called Models in youre 3 gates called Buildable Vertical,Open vertical, and Closed Vertical.

now you add the 2 "Builable" gates to a worker.
than you go into upgrades to under youre buildable horizontal gate and makes it upgrade into youre Open horizontal gate, after you do so that youre open horizontal gate upgrades into youre closed horizontal gate, and youre closed horizontal gate upgrades into youre open horizontal gate.

you repeat this with youre Vertical gates(so it upgrades into the open,closed version of vertical gate.)

after you have done this you make this trigger:
Trigger:
  • Gate trigger
    • Events
      • Unit - A unit Finishes an upgrade
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Triggering unit)) Equal to Gate (Open)(Horinzontal)
        • Then - Actions
          • Animation - Play (Triggering unit)&#039;s Death Alternate animation
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Triggering unit)) Equal to Gate (Close)(Horinzontal)
        • Then - Actions
          • Animation - Play (Triggering unit)&#039;s stand animation
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Triggering unit)) Equal to Gate (Close)(Vertical)
        • Then - Actions
          • Animation - Play (Triggering unit)&#039;s stand animation
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Triggering unit)) Equal to Gate (Open)(Vertical)
        • Then - Actions
          • Animation - Play (Triggering unit)&#039;s Death Alternate animation
        • Else - Actions

and hopefully, youre gate shuld be working, if it dosnt tell me, because i might have made some mistakes in my guide ;)

at last i wanna say thanks to all those who have helped me on helpernet with coming this far :)
 

Attachments

  • GateVertical.mdx
    21.5 KB · Views: 502
Well... Some things here that can make this a little better.

Well, first off, you uploaded the gate model, not the map :p
Second, there are a lot of grammer errors. This is a common one that people make every now and again.
youre gate shuld be working
Take of the e and you're fine, because you're means you are. You are gate should be working :)
Don't worry, everyone screws up the english language.
Last, the trigger would be better off only having the person need build 2 gates. A horizontal closed and vertical closed. Add an ability which opens / closes it.
If you don't know that, you should look up on how to make a trigger enhanced spell.

It seems you have everything together, just... Grammatical errors and a trigger that can use a little work.
 
Well... Some things here that can make this a little better.

Well, first off, you uploaded the gate model, not the map :p
Second, there are a lot of grammer errors. This is a common one that people make every now and again.
youre gate shuld be working
Take of the e and you're fine, because you're means you are. You are gate should be working :)
Don't worry, everyone screws up the english language.
Last, the trigger would be better off only having the person need build 2 gates. A horizontal closed and vertical closed. Add an ability which opens / closes it.
If you don't know that, you should look up on how to make a trigger enhanced spell.

It seems you have everything together, just... Grammatical errors and a trigger that can use a little work.
I know i uploaded the Model... that was the whole point mate ;) and to the thing about using abillties, i have been working on that and more ALOT but i havnt find a way thats better than this, and belive me ive used so godamn much time trying all sort of ways
 
I made a quick vertical pathing that you can use for such gates if it helps anyone:

just import into the map and use. Select it in the pathing field, it is just like the magic pen wall pathing but vertical for use with buildings, units and such.
 

Attachments

  • 8x2VerticalGato.tga
    66 bytes · Views: 415
I made a quick vertical pathing that you can use for such gates if it helps anyone:

just import into the map and use. Select it in the pathing field, it is just like the magic pen wall pathing but vertical for use with buildings, units and such.

Hmm, nice but i already posted one under my post?^^
 
No, his is pathing. Its so you cant walk through a gate.


Heres some feedback:
1.Please make it more "Appetising", so better looks, all of it isnt ordered very neatly.
2.You dont have to restart World Editor. This is only if you want to see the file IN WE
3.The Lack of punctuation, grammer and spelling does not appeal to me, please fix this.
4.Nice Idea, loads of people are always wondering how to do this kind of thing.
5.Test Map?
6.Explain why you're doing things such as triggers.
 
Edit: After Doing a little work on it, I was able to make the gates work(even addded a diagonal one.) Check the demo map to see.

This is pretty smooth, I like it.
 

Attachments

  • Gates.w3x
    24.3 KB · Views: 433
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good
  • The Helper The Helper:
    I would like to see it again like Ghan had it the first time with pagination though - without the pagination that view will not work but with pagination it just might...
  • The Helper The Helper:
    This drink recipe I have had more than a few times back in the day! Mind Eraser https://www.thehelper.net/threads/cocktail-mind-eraser.194720/

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top