• 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] Ability conflict! Help!

Status
Not open for further replies.
Level 4
Joined
Jan 28, 2013
Messages
94
Me and a friend are making a map together. My friend made a Druid ability for a hero unit where the hero unit morphs into a bear. He altered the Battle Roar ability and made it into a Dummy ability with not active or passive effects. I helped him with the trigger but for some reason it doesn't work. When Bear unit uses its Battle Roar it chages back to the Druid instead of using the Battle Roar ability! The morph ability also causes the Battle Roar buff. I've wrecked my mind over this but I don't know how to solve it.

Here are the triggers:
  • Bear FormP1
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Bear (Dummy)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering player) Equal to Player 1 (Red)
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Casting unit)) Equal to Druid
            • Then - Actions
              • Set CasterDruid = (Casting unit)
              • Set DruidPoint = (Position of CasterDruid)
              • Set DruidXp = (Hero experience of Player1Hero)
              • Set P1_HeroName = (Proper name of Player1Hero)
              • Unit - Hide CasterDruid
              • Unit - Make CasterDruid Invulnerable
              • Unit - Change ownership of CasterDruid to Neutral Passive and Retain color
              • Unit - Create 1 Bear for Player 1 (Red) at DruidPoint facing (Facing of CasterDruid) degrees
              • Set BearForm = (Last created unit)
              • Hero - Set BearForm experience to DruidXp, Hide level-up graphics
              • Hero - Learn skill for BearForm: Bear (Dummy)
              • Game - Display to (All players) the text: Debug -- BearForm c...
              • Trigger - Turn off (This trigger)
              • Trigger - Turn on Bear to DruidP1 <gen>
              • Trigger - Turn on Druid to BearP1 <gen>
            • Else - Actions
              • Do nothing
        • Else - Actions
          • Do nothing
The following triggers are intially disabled:
  • Druid to BearP1
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Bear (Dummy)
      • (Owner of (Casting unit)) Equal to Player 1 (Red)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Casting unit)) Equal to Druid
        • Then - Actions
          • Set CasterDruid = (Casting unit)
          • Set DruidPoint = (Position of CasterDruid)
          • Set DruidXp = (Hero experience of CasterDruid)
          • Unit - Hide CasterDruid
          • Unit - Make CasterDruid Invulnerable
          • Unit - Change ownership of CasterDruid to Neutral Passive and Retain color
          • Unit - Move BearForm instantly to DruidPoint
          • Unit - Make BearForm face (Facing of CasterDruid) over 0.00 seconds
          • Unit - Make BearForm Vulnerable
          • Unit - Change ownership of BearForm to Player 1 (Red) and Retain color
          • Unit - Unhide BearForm
          • Hero - Set BearForm experience to DruidXp, Hide level-up graphics
          • Game - Display to (All players) the text: Debug -- Bear Summo...
        • Else - Actions
  • Bear to DruidP1
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Bear (Dummy)
      • (Owner of (Casting unit)) Equal to Player 1 (Red)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Casting unit)) Equal to Bear
        • Then - Actions
          • Set BearForm = (Casting unit)
          • Set DruidPoint = (Position of BearForm)
          • Set DruidXp = (Hero experience of BearForm)
          • Unit - Hide BearForm
          • Unit - Make BearForm Invulnerable
          • Unit - Change ownership of BearForm to Neutral Passive and Retain color
          • Unit - Move CasterDruid instantly to DruidPoint
          • Unit - Make CasterDruid face (Facing of BearForm) over 0.00 seconds
          • Unit - Make CasterDruid Vulnerable
          • Unit - Change ownership of CasterDruid to Player 1 (Red) and Retain color
          • Unit - Unhide CasterDruid
          • Hero - Set CasterDruid experience to DruidXp, Hide level-up graphics
          • Game - Display to (All players) the text: Debug -- Druid Summ...
        • Else - Actions
I also know how to use GUI. I also doesn't got any RemoveLocation as the same variable is used over and over again and I'm not sure if you should remove then.

Please help?
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
Me and a friend are making a map together. My friend made a Druid ability for a hero unit where the hero unit morphs into a bear. He altered the Battle Roar ability and made it into a Dummy ability with not active or passive effects. I helped him with the trigger but for some reason it doesn't work. When Bear unit uses its Battle Roar it chages back to the Druid instead of using the Battle Roar ability! The morph ability also causes the Battle Roar buff. I've wrecked my mind over this but I don't know how to solve it.

Here are the triggers:
  • Bear FormP1
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Bear (Dummy)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering player) Equal to Player 1 (Red)
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Casting unit)) Equal to Druid
            • Then - Actions
              • Set CasterDruid = (Casting unit)
              • Set DruidPoint = (Position of CasterDruid)
              • Set DruidXp = (Hero experience of Player1Hero)
              • Set P1_HeroName = (Proper name of Player1Hero)
              • Unit - Hide CasterDruid
              • Unit - Make CasterDruid Invulnerable
              • Unit - Change ownership of CasterDruid to Neutral Passive and Retain color
              • Unit - Create 1 Bear for Player 1 (Red) at DruidPoint facing (Facing of CasterDruid) degrees
              • Set BearForm = (Last created unit)
              • Hero - Set BearForm experience to DruidXp, Hide level-up graphics
              • Hero - Learn skill for BearForm: Bear (Dummy)
              • Game - Display to (All players) the text: Debug -- BearForm c...
              • Trigger - Turn off (This trigger)
              • Trigger - Turn on Bear to DruidP1 <gen>
              • Trigger - Turn on Druid to BearP1 <gen>
            • Else - Actions
              • Do nothing
        • Else - Actions
          • Do nothing
The following triggers are intially disabled:
  • Druid to BearP1
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Bear (Dummy)
      • (Owner of (Casting unit)) Equal to Player 1 (Red)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Casting unit)) Equal to Druid
        • Then - Actions
          • Set CasterDruid = (Casting unit)
          • Set DruidPoint = (Position of CasterDruid)
          • Set DruidXp = (Hero experience of CasterDruid)
          • Unit - Hide CasterDruid
          • Unit - Make CasterDruid Invulnerable
          • Unit - Change ownership of CasterDruid to Neutral Passive and Retain color
          • Unit - Move BearForm instantly to DruidPoint
          • Unit - Make BearForm face (Facing of CasterDruid) over 0.00 seconds
          • Unit - Make BearForm Vulnerable
          • Unit - Change ownership of BearForm to Player 1 (Red) and Retain color
          • Unit - Unhide BearForm
          • Hero - Set BearForm experience to DruidXp, Hide level-up graphics
          • Game - Display to (All players) the text: Debug -- Bear Summo...
        • Else - Actions
  • Bear to DruidP1
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Bear (Dummy)
      • (Owner of (Casting unit)) Equal to Player 1 (Red)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Casting unit)) Equal to Bear
        • Then - Actions
          • Set BearForm = (Casting unit)
          • Set DruidPoint = (Position of BearForm)
          • Set DruidXp = (Hero experience of BearForm)
          • Unit - Hide BearForm
          • Unit - Make BearForm Invulnerable
          • Unit - Change ownership of BearForm to Neutral Passive and Retain color
          • Unit - Move CasterDruid instantly to DruidPoint
          • Unit - Make CasterDruid face (Facing of BearForm) over 0.00 seconds
          • Unit - Make CasterDruid Vulnerable
          • Unit - Change ownership of CasterDruid to Player 1 (Red) and Retain color
          • Unit - Unhide CasterDruid
          • Hero - Set CasterDruid experience to DruidXp, Hide level-up graphics
          • Game - Display to (All players) the text: Debug -- Druid Summ...
        • Else - Actions
I also know how to use GUI. I also doesn't got any RemoveLocation as the same variable is used over and over again and I'm not sure if you should remove then.

Please help?

I think it would be useful to see what the abilities look like in object editor.

Why not just use demon form or chemical rage as base ability for morph?

About the last question, you still need to remove it every single time you set it. The variable is not what's leaking, the location is.
 
Level 4
Joined
Jan 28, 2013
Messages
94
I'll add the object info when I get the chance.
Also he got a similar ability where the Druid changes into a Treant. The trigger is build similarly. When we test the ability a few times one of the ability stops working eventually and the Druid will change into only one form no matter which ability is used.
Edit. Added a Example Map with the abilities as I don't know how to showcase them otherwise.
 
Last edited:

Wrda

Spell Reviewer
Level 28
Joined
Nov 18, 2012
Messages
1,993
About the last question, you still need to remove it every single time you set it. The variable is not what's leaking, the location is.
He stored the location inside a variable, so it leaks too.
@StormChaser: NEVER use "Do nothing" actions, they make the trigger run slower and it is absolutely unnecessary, it also may cause bugs.
 
Level 4
Joined
Jan 28, 2013
Messages
94
So both the location and the variable leaks? How should I stop that leak? The variable will be used several times over...

Oh OK, I'll remove Do Nothing then. Do you think that's what causes the bug that breaks the trigger? If not, how should I fix that?

The thing is that the ability and trigger works fine a few times then suddenly it stops working.

There are two problems: The Dummy ability give the Battle Roar buff. When I use the Battle Roar ability the trigger runs, which it shouldn't. I don't understand that... I got the Condition which should make the trigger run only if the Dummy ability is used. But that doesn't work!

The second problem is that after a few morphs the trigger stops working. Instead of changing to either the Tree form or the Bear form the unit will be stuck with one morph only. I don't understand that either as it's separate abilities!

I would appreciate any help.
 

Wrda

Spell Reviewer
Level 28
Joined
Nov 18, 2012
Messages
1,993
So both the location and the variable leaks? How should I stop that leak? The variable will be used several times over...
If you only save a location on a variable, and don't use it nor remove it, it will leak. If you save a location on a variable and use it for something, it will leak.
If you save a location on a variable and use it for something and after remove it, it won't leak.
Oh OK, I'll remove Do Nothing then. Do you think that's what causes the bug that breaks the trigger? If not, how should I fix that?
The thing is that the ability and trigger works fine a few times then suddenly it stops working.
Long time ago, i had "Do nothing" action in a trigger, and the trigger had no flaws, but somehow the trigger didn't work more than once or twice, after i removed the "Do nothing", the trigger worked perfectly. So you just need to remove it :thumbs_up:
There are two problems: The Dummy ability give the Battle Roar buff. When I use the Battle Roar ability the trigger runs, which it shouldn't. I don't understand that... I got the Condition which should make the trigger run only if the Dummy ability is used. But that doesn't work!

The second problem is that after a few morphs the trigger stops working. Instead of changing to either the Tree form or the Bear form the unit will be stuck with one morph only. I don't understand that either as it's separate abilities!
You might have screwed the "Run trigger" action, use messages to find out what fires and what doesn't, this is what I do when there are confusion problems with my triggers, can happen to everyone :D
Edit: I wouldn't use triggers to make a morph ability, since you already have a standard ability, you just need to change some things, then it will work.
 
Level 4
Joined
Jan 28, 2013
Messages
94
So I only need to use Custom Script call RemoveLocation(udg_Variable) then? Should I have it at the end of the trigger or earlier?

I only got Do Nothing in the first trigger and that one is disabled after it has run once. So I'm not sure that is the issue. Nevertheless I'll remove those actions.

I'm not sure I understand what you mean with Run trigger being skewy... I already got debug messages. Do I need more messages?

Edit. The thing is that it only works with triggers. My friend tried with Metamporphis (The demon hunter ability) but that didn't work with more than one morph. The unit got stuck in only one morph. It also couldn't have different hero abilities. My friend wants the different morph units to have hero abilities like the Druids in WoW. This is the best I could do... I used a similar trigger for a mounting ability.
Edit. It also doesn't work with Druid of Talon or Druid of Claw abilities as those will replace the hero with a level 1 unit.
 

Wrda

Spell Reviewer
Level 28
Joined
Nov 18, 2012
Messages
1,993
So I only need to use Custom Script call RemoveLocation(udg_Variable) then? Should I have it at the end of the trigger or earlier?
  • Unit - Create 1 Bear for Player 1 (Red) at DruidPoint facing (Facing of CasterDruid) degrees
After this action, in bear FormP1.
  • Unit - Move BearForm instantly to DruidPoint
" in Druid to BearP1.
  • Unit - Move CasterDruid instantly to DruidPoint
" in Bear to DruidP1.
I only got Do Nothing in the first trigger and that one is disabled after it has run once. So I'm not sure that is the issue. Nevertheless I'll remove those actions.
Just remove all "Do nothing" actions, as their name says, they do nothing, to sum up, they're useless.
I'm not sure I understand what you mean with Run trigger being skewy... I already got debug messages. Do I need more messages?
Ah, I mean Trigger - turn on/off;
  • Bear FormP1
  • Events
    • Unit - A unit Begins casting an ability
  • Conditions
    • (Ability being cast) Equal to Bear (Dummy)
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Triggering player) Equal to Player 1 (Red)
    • Then - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Casting unit)) Equal to Druid
            • Then - Actions
              • Set CasterDruid = (Casting unit)
              • Set DruidPoint = (Position of CasterDruid)
              • Set DruidXp = (Hero experience of Player1Hero)
              • Set P1_HeroName = (Proper name of Player1Hero)
              • Unit - Hide CasterDruid
              • Unit - Make CasterDruid Invulnerable
              • Unit - Change ownership of CasterDruid to Neutral Passive and Retain color
              • Unit - Create 1 Bear for Player 1 (Red) at DruidPoint facing (Facing of CasterDruid) degrees
              • Set BearForm = (Last created unit)
              • Hero - Set BearForm experience to DruidXp, Hide level-up graphics
              • Hero - Learn skill for BearForm: Bear (Dummy)
              • Game - Display to (All players) the text: Debug -- BearForm c...
              • Trigger - Turn off (This trigger)
              • Trigger - Turn on Bear to DruidP1 <gen>
              • Trigger - Turn on Druid to BearP1 <gen>
              • //DEBUG MESSAGE
        • Else - Actions
          • Do nothing
  • Else - Actions
    • Do nothing
Edit. The thing is that it only works with triggers. My friend tried with Metamporphis (The demon hunter ability) but that didn't work with more than one morph. The unit got stuck in only one morph. It also couldn't have different hero abilities. My friend wants the different morph units to have hero abilities like the Druids in WoW. This is the best I could do... I used a similar trigger for a mounting ability.
Edit. It also doesn't work with Druid of Talon or Druid of Claw abilities as those will replace the hero with a level 1 unit.
It should work with Druid of Claw.
Edit: Here you have a map that shows you how to use morph abilities made by me, I recommend you not to change vertex colors on units you'll use with this ability.
View attachment 123003
 
Last edited:
Level 4
Joined
Jan 28, 2013
Messages
94
OK. Thanks for all the help. I'll try and see if things works better after the changes!

Edit. I can use remove location after every time the variable is used. I can also remove the Do Nothing commands.

However the ability still doesn't work as intended. The bear form keeps inventory (that's good), experience/level (that's good too) and name as far as I can tell. (that's good too!). But a few problems remain...
The alternate bear form gains the same stats (after level up), sound set and abilities as the original Druid form. The Bear form is supposed to have their own stats and abilities. That's a problem.
Edit2. Base Armour, Dice attack, sound and Health remains different from form to form. But stats and abilities are unaffected by change.
 
Last edited:
Level 4
Joined
Jan 28, 2013
Messages
94
Bump

Bumping this thread because my problem is still not solved. I have done pretty much everything you suggested but it still doesn't work as intended. I'm on my wit's end here mate.

The problems start arising when I uses both the Bear form ability and the Elder tree for ability. For some reason the Tree trigger stops running and the Druid keeps changing into the Bear no matter which morph ability I use!

Also the issue with the trigger running when using the Roar ability is still persisting. My friend is considering scrapping the druid altogether.

I'll add an update example map with Object data and Triggers.
Edit. I don't seem to be able to attach the example map... help?
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
Bumping this thread because my problem is still not solved. I have done pretty much everything you suggested but it still doesn't work as intended. I'm on my wit's end here mate.

The problems start arising when I uses both the Bear form ability and the Elder tree for ability. For some reason the Tree trigger stops running and the Druid keeps changing into the Bear no matter which morph ability I use!

Also the issue with the trigger running when using the Roar ability is still persisting. My friend is considering scrapping the druid altogether.

I'll add an update example map with Object data and Triggers.
Edit. I don't seem to be able to attach the example map... help?

About attaching, use the advanced mode and then at the lower part of the page is a button named "Manage attachments". If that's what you asked.
 
Level 4
Joined
Jan 28, 2013
Messages
94
I clicked on the Manage Attachment but nothing happens. :/

@Karkul
...
Because the Druid is a hero and its different forms will have hero abilities of their own. I already tried with the Druid of the Claw ability, the stats and abilities for the original form remains which isn't what should happen. The form shall have their own abilities and stats.
 
Level 4
Joined
Jan 28, 2013
Messages
94
You mean the stats of the casting hero remains on the new hero it appears?

If I make a custom ability based upon Chemical Rage or Druid of the Claw morph the stats from the druid will remain on the morphed unit. A Druid got 18 strength but it's Bear form got 20. But when I use a morph ability the Druid's stats remains and the Bear got 18. As the Bear is supposed to be stronger and more endurable than the Druid it doesn't work. Same with abilities. The Bear should have abilities like Taunt and Roar not Thorns aura or Elder Tree form like it has via a morph ability. That's why I tried to make it work with triggers. But it doesn't.

For some reason the trigger completely ignores which ability is cast and the Druid can only shift into one form instead of two i.e. the form the Druid was going to change into first time around. Then it also get a buff or de-buff it shouldn't have, depending on which ability it's based upon even though the morph abilities is supposed to have no effects at all! It must be hard coded somewhere...

I don't know what to do with this... other than giving up.

I tried to alter the trigger but the same problem occurs. The condition which check which ability is cast is ignored. Instead of being able to change into either Bear or Elder Tree, the druid will only change into one form. Even though it's different abilities which is supposed to condition the trigger! then it's the issue with the trigger running when the Bear uses Roar. That shouldn't happen either. My conclusion? The trigger ignores which specific Custom ability is used. I'm at my wit's end over this.:goblin_cry:

If I only could attach the map so that you can check it yourself. But for some reason the manage attachments button isn't working for me. :(

If there was a JASS way of programming this so it works I would do that even though I don't know the first thing about JASS.
 
Level 4
Joined
Jan 28, 2013
Messages
94
Manage Attachments>choose file>Upload (top right), close the window then, and go to your post, you have an icon at the right of a smily face, it says attachments, click there and click on your map.

But the damn button won't work. I click on it over and over again but nothing happens. then the page freezes and I've to close down the entire browser.
 
Level 4
Joined
Jan 28, 2013
Messages
94
Manage Attachments>choose file>Upload (top right), close the window then, and go to your post, you have an icon at the right of a smily face, it says attachments, click there and click on your map.

:eekani: Internet problem?? :goblin_jawdrop:

I don't know what the problem is. I've tried disabling my Ad Blocker and put this site in exceptions for pop-up windows.

EDIT. I switched browser and I was able to upload the map now!
 

Attachments

  • ExampleMap Druid abilities.w3x
    34.1 KB · Views: 59
Level 21
Joined
Mar 27, 2012
Messages
3,232
I don't know what the problem is. I've tried disabling my Ad Blocker and put this site in exceptions for pop-up windows.

EDIT. I switched browser and I was able to upload the map now!

The last post of the previous page gave me an idea.

Simply put: I should make it myself and give you a working version.
Why? Because I also need a morph system sooner or later.
So now I'm silently in the background, working on the details. Hopefully I can show you a working version with the hour.
 
Level 4
Joined
Jan 28, 2013
Messages
94
The last post of the previous page gave me an idea.

Simply put: I should make it myself and give you a working version.
Why? Because I also need a morph system sooner or later.
So now I'm silently in the background, working on the details. Hopefully I can show you a working version with the hour.
Thank you!

If you're able to make a working system/spell/whatever then I'll be very grateful. I'll give you rep too, if I can.

Edit. And credits in every map I use it in ofc.
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
Thank you!

If you're able to make a working system/spell/whatever then I'll be very grateful. I'll give you rep too, if I can.

Edit. And credits in every map I use it in ofc.

Here you go. I'm surprised that I got it working so fast.

Anyways, it's in JASS/vJASS, so you'll need JNGPE to save it.

The triggers themselves are very simple. Basically you can copy this for multiple morphs and all you have to change is:
global names
function names
ability IDs

And that's all. If you don't understand this trigger at all, then give me another morph idea. After all, we both need this system :D

EDIT: Forgot to attach map. I'm sleepy.
 

Attachments

  • The wannabe amazing map.w3x
    355.8 KB · Views: 81
Level 4
Joined
Jan 28, 2013
Messages
94
Oh thanks! That was quick work. :) Let's hope it works! *crosses fingers*

I got the JNGP editor but my friend doesn't. i suppose I'll have to persuade him to use it then. :)

I'll take a look at the trigger and see if I can understand it... or at least part of it!

Thanks for the help. I'll get back to you once I've tested it. If I'm pleased I'll give you rep and credits. :D

EDIT: I got a few ponders about this system.

General.
I have to save the map before I'm able to test it. Is that normal? Also I can't find the map via Custom Game in Warcraft III. It just doesn't show up...
Do I need to use those other systems? (Unit Index, damage detection etc.)

Technical.
I see that you haven't tested the trigger with a hero so I wonder:
Can the ability be a hero ability?
Will stats, attack and ability remain separate between forms?
Can the morph form have Hero abilities?
Can experience transfer between morphs?
Can inventory transfer between forms?

Also
Is this system MUI?

JASS.
I... I don't even know where to start modifying... I get a few things though. Maybe things will be clearer tomorrow after I have got some sleep...

I'll experiment around with the map tomorrow seeing at I'm too tired right now. Not strange considering it's very late over here. I may find the answers to my questions by myself but if you got any input or suggestions on how to implement my ideas in your system, feel free to leave a comment.
 
Last edited:
Level 21
Joined
Mar 27, 2012
Messages
3,232
Oh thanks! That was quick work. :) Let's hope it works! *crosses fingers*

I got the JNGP editor but my friend doesn't. i suppose I'll have to persuade him to use it then. :)

I'll take a look at the trigger and see if I can understand it... or at least part of it!

Thanks for the help. I'll get back to you once I've tested it. If I'm pleased I'll give you rep and credits. :D

EDIT: I got a few ponders about this system.

General.
I have to save the map before I'm able to test it. Is that normal? Also I can't find the map via Custom Game in Warcraft III. It just doesn't show up...
Do I need to use those other systems? (Unit Index, damage detection etc.)

Technical.
I see that you haven't tested the trigger with a hero so I wonder:
Can the ability be a hero ability?
Will stats, attack and ability remain separate between forms?
Can the morph form have Hero abilities?
Can experience transfer between morphs?
Can inventory transfer between forms?

Also
Is this system MUI?

JASS.
I... I don't even know where to start modifying... I get a few things though. Maybe things will be clearer tomorrow after I have got some sleep...

I'll experiment around with the map tomorrow seeing at I'm too tired right now. Not strange considering it's very late over here. I may find the answers to my questions by myself but if you got any input or suggestions on how to implement my ideas in your system, feel free to leave a comment.

Yesterday I went to sleep after posting this.
Before I fell to sleep I realized how I can improve this system and perhaps make it good enough for uploading to the hive.

Do I need to use the other systems? No, only the unit indexer is needed for this one. The reason why the others are there is that I want to make this into a map and this system is just one of many.

Technical.
I see that you haven't tested the trigger with a hero so I wonder:
Can the ability be a hero ability? - Yes, it doesn't care at all.
Will stats, attack and ability remain separate between forms? - No. On the first morph it creates an alternate form as a separate unit.
Can the morph form have Hero abilities? - It's basically a separate unit, so no limitations. Although you need to have 1 free ability slot for the normal form ability.
Can experience transfer between morphs? - Not yet.
Can inventory transfer between forms? - Not yet.
MUI? Yes, completely. That's why I use unit indexer.

I think I'll make a better version today. Making this gave me ideas.

EDIT:
I've made the next version now.
It now transfers hero XP and items

Also, I have yet to figure out a way to have more than 1 alternate form in store for hero. This means that every morph creates a new unit now. The unit is killed and removed upon morphing back.
Consequences:
Control groups will always fuck up with alternate form(it is removed upon morphing back)
Hero names shuffle

EDITEDIT:
Forgot to attach map.
 

Attachments

  • The wannabe amazing map.w3x
    358.4 KB · Views: 59
Last edited:
Level 4
Joined
Jan 28, 2013
Messages
94
I haven't tested the new system yet... but I'll get to it ASAP.

About the hero proper name problem... my friend dealt with that by having only one hero name.
There's a GUI function called Hero - Proper Name. I know how to store it as a string variable but I haven't found any function of transferring it to a unit.

Edit.
Feedback
I really do like the system. It seems like the shape shifting can be used many times over. I do like that. Also stat between normal and alternate differs. That's great! Like the Paladin got 32 strength while the Beastman got 35! I'm yet to test if it works for my heroes though but it looks promising.
I also like that item and experience transfers now.

A few things I ran into:
-There seem to be a bit of lag when shape shifting. The screen seems to freeze up for a second or two. I guess it's the trigger run time?
-Abilities for the alternate form needs to be set after shift. Not optimal but I guess that may be difficult to fix with it being a morph spell instead of hide/unhide unit.
- Although experience transfers, attribute enchantment doesn't. E.g. I made the morphed unit take a +1 strength book but when I morphed back and forth it lost that strength point. In my original mount trigger I had a variable function which kept the stats in memory. Of course I set it every time the morph happened. But I guess you can save it as different variables for different forms and set them when the unit morphs? edit. Ofc that doesn't count if the morphed unit goes up a level... hm. I suppose you could save it each time either unit got up one level and/or too a stats enhancement.

I have yet to try how the normal unit works with abilities.
 
Last edited:
Level 21
Joined
Mar 27, 2012
Messages
3,232
I haven't tested the new system yet... but I'll get to it ASAP.

About the hero proper name problem... my friend dealt with that by having only one hero name.
There's a GUI function called Hero - Proper Name. I know how to store it as a string variable but I haven't found any function of transferring it to a unit.

Yeah, using a single name fixes it.
Also, I don't think it's possible to apply a proper name. I would love to have this though.
 
Level 4
Joined
Jan 28, 2013
Messages
94
Bumping! So my friend solved it by using a different base ability. However I still don't know what caused the error. Maybe I can upload the JASS script and someone can tell me why the trigger fired when Battle Roar was used which it shouldn't?

Also, how's that Morph system going Xonok? I sent you a PM earlier.

Edit. Besides the above mentioned... I would really appreciate if someone could tell me a little more about how the JASS script in my trigger worked seeing as just looking at the script confuses me.
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
Bumping! So my friend solved it by using a different base ability. However I still don't know what caused the error. Maybe I can upload the JASS script and someone can tell me why the trigger fired when Battle Roar was used which it shouldn't?

Also, how's that Morph system going Xonok? I sent you a PM earlier.

Edit. Besides the above mentioned... I would really appreciate if someone could tell me a little more about how the JASS script in my trigger worked seeing as just looking at the script confuses me.

The newest.
 

Attachments

  • The wannabe amazing map.w3x
    372.5 KB · Views: 47
Status
Not open for further replies.
Top