Corpses to meat

kiren17

New Member
Reaction score
2
how would i use and ability to change a corpse into an item

im using it for a survival map... :D
 
F

Fl4meS

Guest
Code:
Corpses
    Events
        Time - Every 5.00 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked unit) is dead) Equal to True
                        ((Picked unit) is A Hero) Equal to False
                    Then - Actions
                        Unit - Remove (Picked unit) from the game
                        Item - Create (Random level -1 item-type) at (Position of (Picked unit))
                    Else - Actions
                        Do nothing
Sorry, fast trigger again :/
this one works, but doesn't has the leak removing.
Adjust it to your own properties!
 

hi_im_bob

......and you are?
Reaction score
44
I am not sure, but I think that there is something that tells you what item a unit drops upon death.
 

Tom Jones

N/A
Reaction score
437
Firstly create a ability based of channel. Set the option to visible, the Follow Trough time to 0, and Disable Other Abilities to false. Now find the field called Targets Allowed, and check dead. Now on to the triggering:
Code:
Corpses
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to *Your ability*
    Actions
        Hero - Create *Your Item* and give it to (Triggering unit)
        Unit - Remove (Target unit of ability being cast) from the game
 

kiren17

New Member
Reaction score
2
Tom Jones you close... i want an ability to change the corpses but not to give the items that are created to the spell user.

i want them to appear on the ground were the corpse was at...
 

U are a noob

Mega Super Ultra Cool Member
Reaction score
152
make a non auto cast raise dead then you make a trigger where when it is casted adds a item table to the raised unit with the item you want and then kill the unit
 

kiren17

New Member
Reaction score
2
could you make that simpler or just in i way i could put it into the editor... :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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