Ability question

Xofthebest

New Member
Reaction score
1
Is there any ability that requires you to have an item-type in your inventory to use the ability? I could need such an ability for my map.
 

T.s.e

Wish I was old and a little sentimental
Reaction score
133
Not that I know of. You could trigger it though.
Trigger:
  • Blah
    • Events
      • Unit - A Unit starts the effect of an ability
    • Conditions
    • Actions
      • For each integer A from 1 to 6 do (Actions)
        • If (Item type of Item carried in Slot (Integer A) equal to YourItem then do (Actions)

Quite so freehanded.
 

istar

New Member
Reaction score
31
Unit - A Unit starts the effect of an ability
dont use this, it works AFTER it consumes mana, meaning mana is wasted if the spell fails
use begins casting
 

T.s.e

Wish I was old and a little sentimental
Reaction score
133
Then the player shouldn't use it if he/she doesn't have that item in the inventory. Also, "begins casting" is buggable if you spam Stop, causing the spell to fire without a mana cost.
 

BarzahdX

Active Member
Reaction score
18
dont use this, it works AFTER it consumes mana, meaning mana is wasted if the spell fails

I'm sorry sir, but that is false information. It triggers after the spell has been initiated, meaning casted, and the mana has been used. It also means the spell cannot fail, for the mana to be taken, the spell fires at the same time.. I have personal experience with the difference between the two--it's slight but dynamic.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
The idea seems to be to stop the spell before it can happen, so "begins" sounds like the event to use.
You don't need a loop though, there's a boolean condition: Hero - Hero has item of type. (Works on non-Heroes too)
 

ShadowBlade

New Member
Reaction score
10
Not that I know of. You could trigger it though.
Trigger:
  • Blah
    • Events
      • Unit - A Unit starts the effect of an ability
    • Conditions
    • Actions
      • For each integer A from 1 to 6 do (Actions)
        • If (Item type of Item carried in Slot (Integer A) equal to YourItem then do (Actions)

Quite so freehanded.

Trigger:
  • Trigger
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to YourSpellHere
      • ((Triggering unit) has (YourItemHere)) Equal to False
    • Actions
      • Unit - Order (Triggering unit) to Stop
 

ShadowBlade

New Member
Reaction score
10
When "Starts the effect of an ability" fires, it's too late to cancel the spell.

And you spelt "beings" wrong. :D
 

Cloak_Master

Active Member
Reaction score
41
You could make it like a research-esque ability. As in, you have the ability, it's grayed out, in yellow you can put needs "Name of the item". When the player gets the item, you can replace that ability with one that doesn't have that requirement and vice versa.
 

istar

New Member
Reaction score
31
I'm sorry sir, but that is false information. It triggers after the spell has been initiated, meaning casted, and the mana has been used. It also means the spell cannot fail, for the mana to be taken, the spell fires at the same time.. I have personal experience with the difference between the two--it's slight but dynamic.
I'm sorry sir, but that is false information. Lets say for a spell of 5 sec casting time, Begins casting works immediately, but starts effects work 5 seconds later, after mana is consumed, (i not too sure for finished casting?)
in this case, the point is to cancel the spell if it cant be use, so use begins casting so mana is not wasted
When "Starts the effect of an ability" fires, it's too late to cancel the spell.
exactly
Then the player shouldn't use it if he/she doesn't have that item in the inventory. Also, "begins casting" is buggable if you spam Stop, causing the spell to fire without a mana cost.
you are being awfully evil to your players...-.-
its one thing to allow a noob player to spam shockwave on nothing, its another to make a shockwave skill that does absolutely nothing
the appropriateness of using a spell is up to the player, but the duty to make sure the spell is actually useful is up to the mapmaker
 

ShadowBlade

New Member
Reaction score
10
Yes, what if they think they're so good that they can't be screwed reading the tooltip? Or what if they're blind? :D
Thanks Never Quit. :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top