• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Transform units in items

Status
Not open for further replies.
Level 19
Joined
Nov 16, 2006
Messages
2,165
Depending on what you want you'll need to adjust it by yourself.

You should use a trigger

Your Event.
Then Remove a specific unit from the game
and create a specific item on the location of the unit that has been removed.

We also don't know your experience with the WE so..
 
Level 4
Joined
Mar 6, 2007
Messages
73
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Transform
Actions
Unit - Remove (Casting unit) from the game
Item - Create Test-Item at (Position of (Casting unit))

I tried this and it doesnt seem to work.
P.S.: I still dunno how to make GUI tags ,sry.





Edit:I found the probleme but i still want to know how to make GUI tags. But thx for your help Heero.
 
Level 4
Joined
Mar 6, 2007
Messages
73
I dont understand what this is suppose to be. (
  • [./trigger])
  • What am i suppose to do with this?
 
Level 4
Joined
Mar 6, 2007
Messages
73
Thx ill try it right now.
  • Items
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Devotion Aura
    • Actions
      • Unit - Remove (Casting unit) from the game
      • Item - Create Legion Doom-Horn at (Position of (Casting unit))
Edit: Nice, it works thx to all of you guys. Im happy :D
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
LoLz you cant type [trigger][/trigger]

tip: [trigger[B][I][U][/U][/I][/B]][/trigger]

(I didnt wanna fail GhostWolf)

to slutoi: It wont work. LoLz you fail
 
Level 3
Joined
May 18, 2007
Messages
20
  • Transmutation
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to War Stomp (Neutral Hostile 1)
    • Actions
      • Set Location = (Position of (Casting unit))
      • Unit - Remove (Casting unit) from the game
      • Item - Create Banstick at Location
Worked for me, Might have to find a jass code to remove the variable.
 
Level 12
Joined
Mar 16, 2006
Messages
992
If you want to make the item different each unit, I'm sure there's another way, but you would have to write a lengthy IF-THEN statement for each unit.

Unit finishes casting an ability
Ability Equal to ITEMIZE
If unit = footman
then, remove footman from game, create item at position of footman.
If unit = ghoul, etc.
 
Level 4
Joined
Mar 6, 2007
Messages
73
Its ok it all work i just forgot to replace the Devotion Aura with my ItemTransf spell in the GUI tag and for the differnt unit=different item I can make different triggers too or use the long but easy If/then/else. Anyways thx to all of you guys and all i wanted to do works fine.
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
  • Transmutation
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to War Stomp (Neutral Hostile 1)
    • Actions
      • Set Location = (Position of (Casting unit))
      • Unit - Remove (Casting unit) from the game
      • Item - Create Banstick at Location


You set the point to a variable, thats good, but you didn't remove it later so you gained nothing.

use the "call RemoveLocation(udg_Your_Location)" script to remove it.
In this case it'll be "call RemoveLocation(udg_Location)" so the final code will look like this

  • Transmutation
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to War Stomp (Neutral Hostile 1)
    • Actions
      • Set Location = (Position of (Casting unit))
      • Unit - Remove (Casting unit) from the game
      • Item - Create Banstick at Location
      • Custom script: call Removelocation(udg_Location)
 
Status
Not open for further replies.
Top