Werewolf spear system

eric92

New Member
Reaction score
3
Has anyone ever played werewolf trans game?? Well i was wondering if anyone knew how to make the spear system from that game.

Ok so when your hero picks up a bundle of spears, he changes from mele to ranged, each time you attack you lose a spear. When the spears are gone you go back to mele.

Please can someone help me on this?

Or does anyone know of an amo system? Maby something different, like your hero is already a ranged unit but he cannot attack unless he has amo in his inventory, so a certain item... I already know how to stack items, I just would need help knowing how to make it so your hero cannot attack unless he has the amo, and how do i make it so he loses amo each time he attacks?
 

Necrach

You can change this now in User CP.
Reaction score
62
I haven't played the map, but they could use the same way of doing things like orbs do, eg. enabling the 2nd attack for the hero (which is ranged).

I suppose you want the spears in the inventory to show how many there are left, so lets make that item a dummy item with several charges.

Then trigger it so that when you pick up the item, you gain an invisible ability that enables the hero's second attack. Another trigger that drains one charge from the Spear item each time a hero attacks. And of course a trigger that disables the ability to shoot if the hero drops the spears.

Hope this helped :)
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
second attack wont do anything when the hero actually has a first attack. he will always use the first attack if possible.

what you can do is replace the melee hero with a ranged version of it if he picks up the item though this would be quite alot of work.
 

Necrach

You can change this now in User CP.
Reaction score
62
second attack wont do anything when the hero actually has a first attack. he will always use the first attack if possible.

what you can do is replace the melee hero with a ranged version of it if he picks up the item though this would be quite alot of work.

Replacing heroes is very complicated to make bug-free. It is, however, possible to disable the first attack and enable the second attack (using the War Club ability)
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
i think the war club ability (the thing of mountain giants right?) needs trees to work. seems even more annoying to me then replacing a hero. (well this depends on how complicate the systems around the hero are)
 

eric92

New Member
Reaction score
3
Hey the orb of fire idea sounds good, it may work but when a hero has an orb it will give him a ranged attack against air and not land. So there is a problame with that.

I need it to be ranged all the way around. I searched the fourms for amo systems but ill search again.
 

Necrach

You can change this now in User CP.
Reaction score
62
i think the war club ability (the thing of mountain giants right?) needs trees to work. seems even more annoying to me then replacing a hero. (well this depends on how complicate the systems around the hero are)

my bad. but its still possible in more simpler ways; for example disabling both attacks for the heroes, giving them an upgrade enabling attack 1, then replacing it with another upgrade to enable attack 2 while carrying the spears.

of course, if attack 1/2 is used somewhere else in the map (like normal Orbs) its impossible.

and as you said, replacing could work, depending on additional triggered systems affecting the heroes

So, disable both attack 1 and attack 2 for melee heroes, making the first one melee and the other one ranged. Originally enable an upgrade or an ability for all players/heroes that enables attack 1. Now, when the spears are in action disable the ability/upgrade that grants attack 1 and enable an ability/upgrade that grants attack 2!
 

WastedSavior

A day without sunshine is like, well, night.
Reaction score
217
Well, in Werewolf Transylvania i used the orb of fire, and i made it so the animals (boar, wolf, stag, rabbit etc) were all considered ancient. I then made it so attack 1 could not attack ancients, and attack 2 could only attack ancients. This is why you only use spears on animals.

However, from what your saying this is probably not the best method for you to use.

There are certain attributes in abilities like the dragon hawks cloud ability, the brew masters drunken haze ability, and the dark rangers silence ability that can be abused through triggers and dummy units to switch between melee and ranged attacks.

I think those methods would probably work the best for you. :thup:
 

eric92

New Member
Reaction score
3
Ok the orb of fire idea sounds good but i cant get my character to attack.

I made the creatures anchient, and the attck type 2 target anchient. Attack 1 is not. I gave the hero the orb, i made the orbs targets anchient, and my hero wont attack.

I put a test map of it in attachments.
 

Attachments

  • Spears.w3x
    17.1 KB · Views: 162

Necrach

You can change this now in User CP.
Reaction score
62
Ok the orb of fire idea sounds good but i cant get my character to attack.

I made the creatures anchient, and the attck type 2 target anchient. Attack 1 is not. I gave the hero the orb, i made the orbs targets anchient, and my hero wont attack.

I put a test map of it in attachments.

Thing is, your creeps must be "Targeted as" Ground or something as well, otherwise its not possible to attack. And your hero's first attack should have non-Ancients as an allowed target.

Secondly, its Unit Classification that must be changed to Ancient, not "Targeted as".

And I do not now what your map should look like, but should really both attack 1 and 2 be originally enabled for the hero? :eek:
 
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