• 🏆 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!

[Spell] Ability that changes attributes?

Status
Not open for further replies.
Level 23
Joined
Oct 20, 2012
Messages
3,075
you can add then remove an item Attribute bonus ability.

EDIT:
  • Add Attribute
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Add Attribute
    • Actions
      • Custom script: local unit u = GetTriggerUnit()
      • Unit - Add Attribute Bonus Skill to (Triggering unit)
      • Wait 15.00 seconds
      • Unit - Remove Attribute Bonus Skill from (Triggering unit)
 
Level 20
Joined
Jun 27, 2011
Messages
1,864
you can add then remove an item Attribute bonus ability.

EDIT:
  • Add Attribute
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Add Attribute
    • Actions
      • Custom script: local unit u = GetTriggerUnit()
      • Unit - Add Attribute Bonus Skill to (Triggering unit)
      • Wait 15.00 seconds
      • Unit - Remove Attribute Bonus Skill from (Triggering unit)

It's already MUI even without the custom script. The triggering unit makes it MUI.
 
Level 30
Joined
Nov 29, 2012
Messages
6,637
What do you mean by this question. I think there is many possibilties with this. Maybe he wants his unit to change into a agi hero, a int hero or maybe strength hero? is this what you meant?

If yes, make another unit based on the hero you want but with different attribute type and in triggers, if ability is casted, just replace units with the specified attirbute and vice versa.
 
you can add then remove an item Attribute bonus ability.

EDIT:
  • Add Attribute
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Add Attribute
    • Actions
      • Custom script: local unit u = GetTriggerUnit()
      • Unit - Add Attribute Bonus Skill to (Triggering unit)
      • Wait 15.00 seconds
      • Unit - Remove Attribute Bonus Skill from (Triggering unit)

You forgot to null "u",which makes it leak. Btw, you are not using "u".

Actually,the one you suggested is not good enough. You must use an Attribute system,similar to Custom Stat System by Doomlord or Bonus Mod by EarthFury.
 
Why isn't it good enough? it does what he wants it to do. But it's just up to the OP if he wants some system or not, I just gave him the simplest thing I could think of.

BTW, I'm not really a good or even a decent JASSer so forgive me for my mistake.

Im not sure about those Attribute Manipulation actions. But i think i'll go with that simple suggestion.
 
Status
Not open for further replies.
Top