• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Change item/abilities properties

Status
Not open for further replies.
Level 7
Joined
Mar 16, 2008
Messages
348
Can i use a trigger to change an item/ability's properties?
For example the name or damage of the item?
 
Level 25
Joined
May 11, 2007
Messages
4,650
You could use
Unit set level of ability for unit
It works if the item you have gives the unit an ability, then you can change the name in the object editor for that particular ability.

Edit: Give it a day before you bump ;)
 
Last edited:
Level 7
Joined
Mar 16, 2008
Messages
348
Thats not exactly it, what i wanted was like this:
A trigger that would make my weapon pass from name= ice sword to name = fire sword ( and i do NOT mean replacing the item)
Anyways i posted a kind of an answer to your thread and thx for trying to help =P
 
Level 9
Joined
Oct 17, 2007
Messages
547
Why don't you try this:

- Go to Object editor make another copy of your item rename it to "Fire Sword"
- Write 2 triggers:
  • Event - Any event
    • Condition - Any condition
    • Actions -
      • Set Point = (Triggering Unit)
      • Item - Create Fire Sword at Point
      • Hero - Give (Last created item) to (Triggering Unit)
      • Item - Remove Ice Sword
      • Custom script: call RemoveLocation(udg_Point)
And

  • Event - Any event
    • Condition - Any condition
    • Actions -
      • Set Point = (Triggering Unit)
      • Item - Create Ice Sword at Point
      • Hero - Give (Last created item) to (Triggering Unit)
      • Item - Remove Fire Sword
      • Custom script: call RemoveLocation(udg_Point)
Thats the simplest way of doing it if you want to switch items. You cannot switch item without replacing it... well at least not possible in WC3.
 
Level 7
Joined
Mar 16, 2008
Messages
348
Lol noone is understanding what i really wanted, its np ill give an explanation that i believe everione will understand better, anyways this is probably impossible
Explanation:
Imagine i have an item named sword.
And i had a trigger that would let the player choose his name(for example -setname alex)
then when the user tipped those words i wanted to make the item name be Alex sword, thats it anyways i think its impossible so thanks anyway
 
Level 9
Joined
Oct 17, 2007
Messages
547
Well i know its impossible wit GUI not sure about JASS though.. i saw a system that can change bonus stats in an item so it might be possible to do the same for names.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
There is no such thing in GUI or JASS nor vJASS nor WEU nor Jass NewGen Pack nor... want me to continue ?
 
Status
Not open for further replies.
Top