(>^^)> Ayumi's Question Thread <(^^<)

Tom Jones

N/A
Reaction score
437
1. Set casting time on the ability to something besides 0
2. By setting a players food cap.
 

ayumilove

Youtube account suspended! youtube.com/ayumilove8
Reaction score
110
yea tom is back in town

btw where can i find this food cap thingy?
 

ayumilove

Youtube account suspended! youtube.com/ayumilove8
Reaction score
110
thanks mr zero !

seen some people keep using that word which i dont understand @_@
 

Evan1993

Ultra Cool Member
Reaction score
30
Change these:
Game interface> text - general - |Cff00ff00No Upkeep
Game interface> text - general - |Cffffff00Low Upkeep
Game interface> text - general - |Cffff0000High Upkeep
To:
Game interface> text - general - No Upkeep
Game interface> text - general - Low Upkeep
Game interface> text - general - High Upkeep
 

ayumilove

Youtube account suspended! youtube.com/ayumilove8
Reaction score
110
how do you create an artificial intelligence for hero ?

for example:

creating an artificial intelligence for a particular hero to cast spell
attack, flee from battle when get really injured and so.

i tried to use the AI editor, but the AI editor only allows to make the
hero to arrange what spell to be learnt (only 10 order)
and i have like more than 20 levels of abilities all together,
 
S

Sunny_D

Guest
there is always the possibility to trigger the AI with normal GUI or JASS triggers ;)

AFAIK, the ai editor is simply another interface for jass triggers. just like gui...
 

Curuinor

New Member
Reaction score
7
Problem 10: Unsolved
How do I nullify enemy armour? Let's say there is a group of enemy units.
Some of them are peon, grunts, and so on. Those guys have different
armour of course. I am creating a spell that reduces their armour to 0,
but not negative. How am I suppose to do it?

If you don't have a huge armor range, here's a way to do it. Messy hack, but it'll work.

Make an array of spells debuffing def. 1=1, 2=2, and so on, to the max armor of your highest-armor unit, fully buffed. Also, make an integral variable.
If a unit uses the spell you want to give 0 armor, check unit-type of unit. If you have random units, this is going to be a pain in the butt. Set the integer to the max armor unit.
If you have defense buffing and debuffing skills, check for those.
Now, create a dummy unit, give the ability that suits the enemy to it, and then make it cast it on the enemy.
 

Baby-Bever

Cool Member
Reaction score
11
For Problem 10, you could base it of devotion aura and set the defense bonus - percent bonus to -100 (don't forget to set target units to enemies). This way it would set enemies armour to 0, I think this should work. This is if you want it to be an aura ofc... (If there are anyway to make an ability invisible (Spellbook?) then you could add it to target unit/units
 

ayumilove

Youtube account suspended! youtube.com/ayumilove8
Reaction score
110
hi guys!

i have a new problem, how do i detect a spell which is activated?
such as searing arrows?

can this be done in trigger?

for example, i want to detect whether my ally hero has activated his searing arrow. how do i do that? i can't view it unless he attacks someone right?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Attack-modifying skills, like Searing Arrows, can not be detected when they auto-cast.
If you cast them by hand, the usual "starts the effect of an ability" will do.


Turning the auto-cast on / off can be detected with:

Event:
- A unit is issued an order with no target
Conditions:
- (Issued order) equal to "flamingarrows" / "unflamingarrows"
Actions:
- ...
 

ayumilove

Youtube account suspended! youtube.com/ayumilove8
Reaction score
110
thanks for replying here acehart!

i was wandering, how to detect a non attacking ability
does curse counts as non attacking ability
or non attacking ability are friendly type of auto cast such as frost armor?
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
how to detect a non attacking ability
such as ciritical?
cuz i don't think u can detect them....
attacking ability are friendly type of auto cast such as frost armor?
u can check it by picking every unit with buff within range from unit i think
 

ayumilove

Youtube account suspended! youtube.com/ayumilove8
Reaction score
110
could someone list me some examples of abilities that are attack modifying skills?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Searing Arrows, Black Arrows, <Other> Arrows.
Critical Strike.

They happen as part of the attack, and, therefore, are undetectable when auto-cast.


Other auto-casts, like Raise Dead, Inner Fire, ... with those the casting unit actually stops doing whatever it is it's currently doing,
then casts the spell, and resumes its activity.
Those are cast, and, as such, trigger the usual "starts the effect of an ability".


The entire problem does not apply to non-autocasts anyway, given you need to manually cast them...
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
i thought of a way for detecting critical but it's not 100% sure:
Code:
Detect Critical
     Event
         Unit - A unit is Attacked
     Condition
         (Attacking unit) equal to <<Ur Unit>>
     Action
          Trigger - Add to Detect Critical 2 <gen> the Event (Attacked unit) takes damage.
Code:
Detect Critical 2
    Event
    Condition
         (Damage Source) Equal to <<Ur Unit>>
    Action
         if (Condition) Then (Action) Else (Action)
            if - Condition
               DamageVar Greater then or Equal to (Damage Taken X 1.9)
            Then - Action
               <<Whatever u Want>>
            Else - Action
               Set DamageVar = (Damage Taken)
i made it 1.9 and not 2 incase the unit's damage is not exacly similiar in the min and max but about realy high difference i think it should be harder to detect and will take a lot more actions of if\then\else in order to it....
anyway i hope u understand what i was trying to say :)
 

ayumilove

Youtube account suspended! youtube.com/ayumilove8
Reaction score
110
detect movment?

Question 23: How do we detect that a unit is moving?
I guess this requires trigger. But I have no idea on how to make it.
Could someone spare some time to help me out? <3
 
J

janzak

Guest
Edit: ah damn, only Ayumi can ask questions here... sorry, ignore this! I'll just keep it in place if anyone stumbles upon it :)

Attachment points "Sprite First Ref" (first to sixth) spawn fire when buildings take damage. This fire has a lower Priority Plane than the objects on the model, so the fire appears to be behind all models even though it's on top of them!

(3Ds Max 4 with WC3 Art Tools)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top