items which make heroes transform into diff heroes

bboykonjo

New Member
Reaction score
1
how do i make itms which make u transform into something else.

Example, u are pudge and u buy the item which transform u into potm, but with the same items u had before and the same skills, same lvl, etc.


how do i trigger this??
ty in advance

+rep if u hep me:banghead:
 

Ashlebede

New Member
Reaction score
43
... different heroes don't have the same spells? That's the problem...

Apart from that, I think the ability you're looking for is called Bear Form or Metamorphosis, although you need to set something in gameplay constants for Metamorphosis to be cancellable.

Also, temporary or permanent morphing?
 

bboykonjo

New Member
Reaction score
1
... different heroes don't have the same spells? That's the problem...

Apart from that, I think the ability you're looking for is called Bear Form or Metamorphosis, although you need to set something in gameplay constants for Metamorphosis to be cancellable.

Also, temporary or permanent morphing?
permanent morphing.

have u played shadowrazewars b4???

they have items which turns u (for example: omniknight or mortred but still have same items and lvl.)
 

Ashlebede

New Member
Reaction score
43
Something along these lines :

Trigger:
  • // Hand-written
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) equal to {My item's ability}
    • Actions
      • -------- If you want to be able to morph back, use this line to find the unit later --------
      • Hashtable - Save (Triggering unit) as 0 of (Key (Owner of(Triggering unit))) in Hashtable
      • Set loc = (Position of (Triggering unit))
      • Set loc2 = (Center of AnyRegion <gen>)
      • Unit - Create 1 {Unit-type} at loc2
      • Unit - Set Life of (Last created unit) to (Life percentage of (Triggering unit)) %
      • Unit - Set Mana of (Last created unit) to (Mana percentage of (Triggering unit)) %
      • -------- Give items --------
      • For each Integer A from 1 to 6, do (actions)
        • Loop - Actions
          • -------- I can't remember how to give an item to another unit without orders --------
          • -------- and I'm using my Linux, so... ---------
      • -------- Loop ends --------
      • Unit - Hide (Triggering unit)
      • Unit - Move (Last created unit) to loc
      • -------- Ain't sure about this line, and I think it uses a unit group (so watch out for leaks) : --------
      • Player - Make (Owner of(Triggering unit)) select (Last created unit)
      • Custom Script : call RemoveLocation(udg_loc)
      • Custom Script : call RemoveLocation(udg_loc2)


The hardest part is to transfer the abilities. The easiest solution is to let the user choose his abilities himself.
 

NeuroToxin

New Member
Reaction score
46
Nah, abilities wouldnt be that hard, use a loop, get the abilities set into an array, and also stats, stats would need to be transferred over too, at least I think so
 

Ashlebede

New Member
Reaction score
43
Stats, indeed, would also require the equation to be entered and would need an array as well... but you might as well just hardcode it all, if you're going to make a 'constant array'... it can be done, though.
 

AoW_Hun7312

I'm a magic man, I've got magic hands.
Reaction score
76
If it's permanent, you could try adding modified Chaos abilities to the items. Maybe it'll work the same way as adding it directly to the unit, which transforms them.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top