November 23, 2024, 03:07:05 pm

Author Topic: Help with WC3 Editor  (Read 7122 times)

0 Members and 2 Guests are viewing this topic.

Offline rygorych

  • Super-Blademaster
  • ******
  • Posts: 1072
  • Total likes: 0
  • Pro Troll
    • View Profile
  • B.net Account: Ebo
  • Coins: 100
  • Country: Belarus
  • Race: Orc
Help with WC3 Editor
« on: November 09, 2011, 07:53:33 pm »
I'm trying to customize the Silverpine Forest map to include 1 worker of each race (peon aco peasant wisp) at every starting location.

My goal is to create map where every player has all 4 workers at their command right off the bat and can build up as any combination of races.

Any pointers?

Offline FML|WorpeX

  • Administrator
  • Super-Blademaster
  • *****
  • Posts: 4069
  • Total likes: 160
  • Crypt Lord King
    • View Profile
  • B.net Account: WorpeX
  • Coins: 100
  • Country: USA
  • Race: Undead
Re: Help with WC3 Editor
« Reply #1 on: November 09, 2011, 11:29:30 pm »
And what is it that you actually need help with? if you can't figure this out on your own, you're either blind or not actually trying cause this is super simple.

Offline FML|red7z7

  • Administrator
  • Super-Blademaster
  • *****
  • Posts: 1219
  • Total likes: 48
    • View Profile
  • B.net Account: red7z7
  • Coins: 284
  • Country: USA
  • Race: Undead
Re: Help with WC3 Editor
« Reply #2 on: November 10, 2011, 03:28:37 am »
yeah you dumbass. seriously your IQ must be like 50 or something.

nah jk. go to the "units" layer and click on the player color and select whatever unit i think then place it on the map. actually that would probly give a set number of players in set positions so iuno

Offline rygorych

  • Super-Blademaster
  • ******
  • Posts: 1072
  • Total likes: 0
  • Pro Troll
    • View Profile
  • B.net Account: Ebo
  • Coins: 100
  • Country: Belarus
  • Race: Orc
Re: Help with WC3 Editor
« Reply #3 on: November 10, 2011, 05:40:27 am »
Well, OK, I should have specified the particular issue I'm having.

There is a unit called "Starting Location" which seems to be generic and includes:

Depending on the race chosen
5 peasants + Town Hall
or
5 peons+ Great Hall
or
3 acos +1 ghoul + Necropolis
or
5 wisps + TOL



What I want it to include instead is this:

Depending on the race chosen
1 aco 1 peon 2 peasant 1 wisp + Town Hall
1 aco 2 peon 1 peasant 1 wisp + Great Hall
2 aco 1 peon 1 peasant 1 wisp + Necropolis
1 aco 1 peon 1 peasant 2 wisp+ TOL



So every race starts out with their particular "Town Hall" building... but diff race workers instead of their particular 5 racial workers.



So I guess my question is, can I modify what is included in every race's "Starting Location"?

« Last Edit: November 10, 2011, 07:14:20 am by rygorych »

Offline FML|red7z7

  • Administrator
  • Super-Blademaster
  • *****
  • Posts: 1219
  • Total likes: 48
    • View Profile
  • B.net Account: red7z7
  • Coins: 284
  • Country: USA
  • Race: Undead
Re: Help with WC3 Editor
« Reply #4 on: November 10, 2011, 06:47:47 am »
should make a gender neutral townhall that can make any of the 4 peons. and shops will all races items. and 1 production building for each tier that can make all races units of that tier. and infernal stones hidden behind the tree line

Offline FML|WorpeX

  • Administrator
  • Super-Blademaster
  • *****
  • Posts: 4069
  • Total likes: 160
  • Crypt Lord King
    • View Profile
  • B.net Account: WorpeX
  • Coins: 100
  • Country: USA
  • Race: Undead
Re: Help with WC3 Editor
« Reply #5 on: November 10, 2011, 07:03:08 am »
ah, that needs to be done in triggers. Don't have time to write it up at the moment, ill do it when I get home.

Offline rygorych

  • Super-Blademaster
  • ******
  • Posts: 1072
  • Total likes: 0
  • Pro Troll
    • View Profile
  • B.net Account: Ebo
  • Coins: 100
  • Country: Belarus
  • Race: Orc
Re: Help with WC3 Editor
« Reply #6 on: November 10, 2011, 07:09:38 am »
Thanks Worp, and Red, the idea is basically same as WC3 melee, but you get access to each race's workers right off the bat, so you can build up any tree/any units/ any hero combo. I think the possibilities here are limitless, and for people with good micro especially since they can make these ridiculous armies with 1 of each caster, etc.

Offline FML|WorpeX

  • Administrator
  • Super-Blademaster
  • *****
  • Posts: 4069
  • Total likes: 160
  • Crypt Lord King
    • View Profile
  • B.net Account: WorpeX
  • Coins: 100
  • Country: USA
  • Race: Undead
Re: Help with WC3 Editor
« Reply #7 on: November 10, 2011, 07:58:11 am »
Well here, I'll write up a quick "this is the general idea" and if you can figure it out, awesome. If not, then I'll post the actual code here when I get home (which wont be till super late)

Basically, go into triggers and find the map initialization trigger. You need to remove the one which creates the starting units.

Then, you need to create an if/then/else action in this trigger which says, "If player 1 race = undead then create necropolis at the center of start location. Also in "then", create all the workers (perhaps making a new region outside the start location so that the workers all spawn at the same spot.) Else, do nothing.

You need to do this for all 4 races and 6 players.

Offline rygorych

  • Super-Blademaster
  • ******
  • Posts: 1072
  • Total likes: 0
  • Pro Troll
    • View Profile
  • B.net Account: Ebo
  • Coins: 100
  • Country: Belarus
  • Race: Orc
Re: Help with WC3 Editor
« Reply #8 on: November 10, 2011, 08:31:51 am »
Sounds painful. How easy would this be to transfer to other maps? I'm testing Silverpine because it's simple/popular.

Offline rygorych

  • Super-Blademaster
  • ******
  • Posts: 1072
  • Total likes: 0
  • Pro Troll
    • View Profile
  • B.net Account: Ebo
  • Coins: 100
  • Country: Belarus
  • Race: Orc
Re: Help with WC3 Editor
« Reply #9 on: November 10, 2011, 09:20:58 am »
Btw, Worp I figured it out, but it's ridiculously painful to set it all up 1 by 1.

Offline FML|Renaud

  • Administrator
  • Super-Blademaster
  • *****
  • Posts: 4857
  • Total likes: 61
  • ex King of FFA
    • View Profile
  • B.net Account: FML_Renaud
  • Coins: 100
  • Country: Canada
  • Race: Night Elf
Re: Help with WC3 Editor
« Reply #10 on: November 10, 2011, 09:32:32 am »
hehe that might be painful for elf and ud, since they have a special way to mine gold!

Then again i suppose it will also be painful to every race beside ud, who will be stuck with an aco that can't mine, and can't even build unless he finds blight :D

So it balances it out! (xpte for elf, they are mostly fuck, but aren't they always).

Offline rygorych

  • Super-Blademaster
  • ******
  • Posts: 1072
  • Total likes: 0
  • Pro Troll
    • View Profile
  • B.net Account: Ebo
  • Coins: 100
  • Country: Belarus
  • Race: Orc
Re: Help with WC3 Editor
« Reply #11 on: November 10, 2011, 11:01:44 am »
I can give elves an extra wisp to balance out the beginning?

Offline rygorych

  • Super-Blademaster
  • ******
  • Posts: 1072
  • Total likes: 0
  • Pro Troll
    • View Profile
  • B.net Account: Ebo
  • Coins: 100
  • Country: Belarus
  • Race: Orc
Re: Help with WC3 Editor
« Reply #12 on: November 10, 2011, 11:05:26 am »
So worp here is my trigger, now tell me how to copy this for every race and player

Map initialization

(Race of Player 1 (Red)) Equal to Human

Unit - Create 1 Wisp for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing degrees
Unit - Create 1 Peon for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing degrees
Unit - Create 2 Peasant for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing degrees
Unit - Create 1 Town Hall for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing degrees

I tested it and it works... but I'm going to die if I have to create this 15 more times (4 players 4 races)



Nm, found the copy option :) kekeke


Ohh shit, more problems. When I create ud units, how do i put the haunted gold mine on the actual gold mine? Same for NE :S
« Last Edit: November 10, 2011, 11:26:12 am by rygorych »

Offline FML|WorpeX

  • Administrator
  • Super-Blademaster
  • *****
  • Posts: 4069
  • Total likes: 160
  • Crypt Lord King
    • View Profile
  • B.net Account: WorpeX
  • Coins: 100
  • Country: USA
  • Race: Undead
Re: Help with WC3 Editor
« Reply #13 on: November 10, 2011, 01:04:52 pm »
I don't know off hand, i'm sure their is a way though. If you don't figure it out by the time I get home, Ill play with the world editor and get an answer for you. Also, I don't think this code takes into account a player being absent (which would mean creeps should spawn.) That isn't a hugely difficult fix, but again, I don't know the code off hand for it.

If you had asked this 3 years ago when I knew the world editor like the back of my hand, i'd probably be able to answer better, but not anymore. :(

Offline rygorych

  • Super-Blademaster
  • ******
  • Posts: 1072
  • Total likes: 0
  • Pro Troll
    • View Profile
  • B.net Account: Ebo
  • Coins: 100
  • Country: Belarus
  • Race: Orc
Re: Help with WC3 Editor
« Reply #14 on: November 10, 2011, 02:25:45 pm »
Well I'm taking it one step at a time... can't figure out this so far.