wc3edit.net

United Warcraft 3 map hacking!
It is currently April 28th, 2024, 3:38 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Barricades
PostPosted: June 8th, 2009, 8:16 pm 
Offline
Banned-To-Be
User avatar

Joined: July 28th, 2008, 6:28 pm
Posts: 1539
Title: Administrator
mmm

Any1 know how to make an item that builds barricades?
Like in...Dawn of the Dead?..

_________________
Image
League of legends North America - Nietono


Top
 Profile  
 
 Post subject: Re: Barricades
PostPosted: June 8th, 2009, 10:02 pm 
Offline
Forum Staff
User avatar

Joined: November 17th, 2008, 3:49 pm
Posts: 610
Im not too familiar with the game, but i think its really simple. The items and ability that you will need to fool around with are the item "Tiny Farm" in the miscellaneous folder. And the ability "Build Tiny Farm". Just copy each of those abilitys, and paste them. Then edit them as needed.

First, before anything, create a new unit..just base it off the farm. Now you will have to change the name, text, icon, and stats as you want. A barricade with 500 health isiant the best...you may need to fool around with the collision size, as it will be turned into a barricade. Also, you will have to change the model of it to the barricade and the cooldown that its built, as thats how fast it will be made after being placed down.

Next, you should edit the ability, build tiny farm. If youve already copied as above, that dont worry about it, but if you havent, copy the ability, and paste it, as youll be editing that one. After thats done, you dont have to change a lot here, just need to change the name, icon, and Data - Unit Created, youll have to change that to the newly made barricade. Im not familiar with this, so you will have to mess around with the number listed to meet your desired result.

Finally, you need to edit the item. Change "Ability - Abilities" to the newly made ability, invalid, text, icon, and whatever else ya need.

And..that should be it. As ive said, im not too familiar with the game, so if theres something i missed that the makers added just state so.

_________________
Image


Top
 Profile  
 
 Post subject: Re: Barricades
PostPosted: June 8th, 2009, 11:03 pm 
Offline
Banned-To-Be
User avatar

Joined: July 28th, 2008, 6:28 pm
Posts: 1539
Title: Administrator
mmm how do i make the item stack? Like have more than 2 barricades in same slot... >.>

_________________
Image
League of legends North America - Nietono


Top
 Profile  
 
 Post subject: Re: Barricades
PostPosted: June 8th, 2009, 11:14 pm 
Offline
Forum Staff
User avatar

Joined: November 17th, 2008, 3:49 pm
Posts: 610
Thats an item stack system...most basic one would be this..
Code:
ChargesAddGUI
    Events
        Unit - A unit Acquires an item
    Conditions
        (Item-class of (Item being manipulated)) Equal to Charged
    Actions
        For each (Integer A) from 1 to 6, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Item-type of (Item carried by (Triggering unit) in slot (Integer A))) Equal to (Item-type of (Item being manipulated))
                        (Item carried by (Triggering unit) in slot (Integer A)) Not equal to (Item being manipulated)
                    Then - Actions
                        Item - Set charges remaining in (Item carried by (Triggering unit) in slot (Integer A)) to ((Charges remaining in (Item carried by (Triggering unit) in slot (Integer A))) + (Charges remaining in (Item being manipulated)))
                        Item - Remove (Item being manipulated)
                    Else - Actions


The item class, will have to be changed to whatever item type you want to use, or just remove that to work with every item. I took this off one at the hiveworkshop, go here to download the map if you want to C&P it.

_________________
Image


Top
 Profile  
 
 Post subject: Re: Barricades
PostPosted: June 9th, 2009, 12:22 am 
Offline
Banned-To-Be
User avatar

Joined: July 28th, 2008, 6:28 pm
Posts: 1539
Title: Administrator
Thanks syre :)

_________________
Image
League of legends North America - Nietono


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)