NiKaNoRoU's Question Thread

NiKaNoRoU_GR

New Member
Reaction score
115
This thread is for me to ask question in one thread instead of other threads separately.Any correct or very helpful answer to questions is a +rep reward.
Question#1:
I am basically an enthusiast at RPGs, and I would like to know how can you make certain items not to stack in certain heroes.Any triggerwork posted or better JASS is accepted (JASS more, because I don't know of it)
 

SFilip

Gone but not forgotten
Reaction score
634
uh you need to be more specific...most items do not stack by default. and you can't really change that for the ones that do.
 

SFilip

Gone but not forgotten
Reaction score
634
check the Free Trigger Code section. plenty of solutions there. :rolleyes:
 

SFilip

Gone but not forgotten
Reaction score
634

NiKaNoRoU_GR

New Member
Reaction score
115
Another question, which I revived from an old thread:
An ability where the hero leaves a mark on one of the allied units and within a period of time, if he dies, he will be reborn within that creep.If the creep dies, no reviving for the hero...
So if anyone knew triggers or JASS functions to make this work, pleaze post.
Remember, +rep 4 each correct answer
 
M

Mini-Me

Guest
I guess you could use the pit lords ultimate spell 'doom'. Modifie it to target ally units and do no damage. So its basicly a forever buff.

Then triggers, remember to remove the unit created by doom, simple trigger with unit enters playable map area, unit type equal *doom unit*, remove entering unit.

And when the hero casts the doom on a unit, have a trigger set the unit into a variable.

events unit begins casting an ability
condition ability being cast equal to doom
actions:
set variable 'doom_unit' = target unit of ability being cast

Then another trigger that checks when your hero dies (i hope you set your hero into a variable, if not, do it now)

event unit dies
condition dying unit equal to 'hero_unit'
actions:
if/then/else
if
doom_unit equal to alive
then
unit - kill doom_unit
hero - revive hero_unit at position of doom_unit
else
do nothing

That should work, or atleast put you into right direction. I hope you can do the triggers, if not, atleast try and post if you run into problems.
 

NiKaNoRoU_GR

New Member
Reaction score
115
Almost worked. the problem is, when doom passes, the hero still revives at that units position, but I want the revival to happen only while the unit is on doom
+rep anyway for the help
 

NiKaNoRoU_GR

New Member
Reaction score
115
smith_s9 said:
I did this to help you, not for rep :rolleyes:
I know, I know, I just said that 'coz I already have repped u through the PA forum ;)
And I've started to like you, no matter why you -repped me before

But enough of off topic.
I will see what I can do
 

Tonks

New Member
Reaction score
160
NiKaNoRoU_GR said:
I know, I know, I just said that 'coz I already have repped u through the PA forum ;)
And I've started to like you, no matter why you -repped me before
It's probably because of the Loony Toons avatars :p
 
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