Barricades

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
Lanaya
Banned-To-Be
Posts: 1378
Joined: July 28th, 2008, 6:28 pm
Title: Administrator

Barricades

Post by Lanaya »

mmm

Any1 know how to make an item that builds barricades?
Like in...Dawn of the Dead?..
Image
League of legends North America - Nietono
User avatar
Syre
Forum Staff
Posts: 506
Joined: November 17th, 2008, 3:49 pm

Re: Barricades

Post by Syre »

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
User avatar
Lanaya
Banned-To-Be
Posts: 1378
Joined: July 28th, 2008, 6:28 pm
Title: Administrator

Re: Barricades

Post by Lanaya »

mmm how do i make the item stack? Like have more than 2 barricades in same slot... >.>
Image
League of legends North America - Nietono
User avatar
Syre
Forum Staff
Posts: 506
Joined: November 17th, 2008, 3:49 pm

Re: Barricades

Post by Syre »

Thats an item stack system...most basic one would be this..

Code: Select all

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
User avatar
Lanaya
Banned-To-Be
Posts: 1378
Joined: July 28th, 2008, 6:28 pm
Title: Administrator

Re: Barricades

Post by Lanaya »

Thanks syre :)
Image
League of legends North America - Nietono