Druid form

Level 4
Joined
Oct 9, 2024
Messages
63
I'm playing a druid hero and I just discovered how to transform into a bear using night elf druid skills as a base, but I have a problem, I didn't want him to be able to use the character's other spells in animal form, however he is free to use all of them and I don't know how to do so.
 
It's also possible to have a research called "Human Form" (or whatever you want), make abilities requiring that form require this research. When hovering the disabled abilities, it'll say "Required: - Human Form".
Then you set research on map initialization (or when "picking the hero") with triggers to what makes sense as the default and when casting the transform abilities. This obviously only works if you have exactly 1 of that hero per player! You can have full control over when abilities is available to cast using this method (as long as you can detect it using triggers).
 
Level 4
Joined
Oct 9, 2024
Messages
63
ThompZon, I believe that this factor research trigger is the way to go, a research that is only active in the humanoid form, I am very new to triggers so if you could explain to me better how to do the proposed trigger I would greatly appreciate it.
 
I assume that you have the 2 units (forms) already setup.

In Object Editor: Setup a new upgrade. If you only care about "Form A vs B", let it be 1 level and change the "Text - Name" to what you want the yellow "Requires:"-text to have (test to see what happens). For example "Night Elf Form".

For the abilities that should be blocked if this isn't "on" (in the Object Editor - Abilities-tab), Ensure that the "Techtree - Check Dependencies = true", and add your upgrade to them (Techtree - Requirements -> Add Tech Item -> (Top dropdown): Upgrades, and use rest of dropdowns to find your upgrade).

Should now be ready for the
  • HeroDruidInit
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player - Set the current research level of Night Elf Form to 1 for Player 1 (Red)
  • OnFormChangeFromElfToGhost
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Ghost Form
      • (Unit-type of (Triggering unit)) Equal to Hero Druid
    • Actions
      • Game - Display to (All players) the text: From Elf to Ghost
      • Player - Set the current research level of Night Elf Form to 0 for (Triggering player)
  • OnFormChangeFromGhostToElf
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Ghost Form
      • (Unit-type of (Triggering unit)) Equal to Ghost
    • Actions
      • Game - Display to (All players) the text: From Ghost to Elf
      • Player - Set the current research level of Night Elf Form to 1 for (Triggering player)
First when applicable, ensure that the default-level of the reserach is set, my example only Player 1 gets it on init
Then when changing form, toggle it.

Attached a test-map that requires 1.31 or newer to run
 

Attachments

  • ResearchBlockingTest.w3x
    18.2 KB · Views: 4
Level 4
Joined
Oct 9, 2024
Messages
63
It works perfectly, thank you very much ThompZon, I didn't understand it very well at first, but when I analyzed your map file and saw the trigger I could see how it's done.
 
Top