Double event equipment system

Status
Not open for further replies.

sheep

New Member
Reaction score
2
Why dont my double event work, my actions dont respont to "Unit - A unit Begins channeling an ability". Why is that? And what can I do to solve it.

Trigger:
  • Equiping items
    • Events
      • Unit - A unit Begins channeling an ability
      • Unit - A unit Uses an item
    • Conditions
      • (Item-class of (Item being manipulated)) Equal to Artifact
    • Actions
      • Game - Display to (All players) the text: (Name of (Item being manipulated))
      • Game - Display to (All players) the text: (casting unit + (Name of (Casting unit)))
      • -------- Items --------
      • If ((Ability being cast) Equal to Cloak ) then do (Set loadi = Cloak) else do (Do nothing)
      • Game - Display to (All players) the text: (loadi + (String(loadi)))
      • -------- Init --------
      • Set Temp_ability = (Ability being cast)
      • -------- Subtracting stats --------
      • Game - Display to (All players) the text: (String(Equipment_stats[13]))
      • Hero - Modify Strength of (Casting unit): Subtract Equipment_stats[(Integer((Substring((String((((Integer((Substring((String(loadi)), 1, 2)))) - 10) + (10 x (Player number of (Triggering player)))))), 3, 4))))]
      • Hero - Modify Agility of (Casting unit): Subtract Equipment_stats[(Integer((Substring((String((((Integer((Substring((String(loadi)), 1, 2)))) - 10) + (10 x (Player number of (Triggering player)))))), 5, 6))))]
      • Hero - Modify Strength of (Casting unit): Subtract Equipment_stats[(Integer((Substring((String((((Integer((Substring((String(loadi)), 1, 2)))) - 10) + (10 x (Player number of (Triggering player)))))), 7, 8))))]
      • -------- Saving stats --------
      • Set Equipment_stats[(((Integer((Substring((String(loadi)), 1, 2)))) - 10) + (10 x (Player number of (Triggering player))))] = loadi
      • -------- Adding stats --------
      • Hero - Modify Strength of (Casting unit): Add (Integer((Substring((String(loadi)), 3, 4))))
      • Hero - Modify Agility of (Casting unit): Add (Integer((Substring((String(loadi)), 5, 6))))
      • Hero - Modify Intelligence of (Casting unit): Add (Integer((Substring((String(loadi)), 7, 8))))
      • -------- Remove old spell --------
      • If ((Integer((Substring((String(loadi)), 1, 2)))) Equal to 13) then do (Unit - Remove Equipment_abilitys[(3 + ((Player number of (Triggering player)) x 10))] from Equipment[(Player number of (Triggering player))]) else do (-------- Head --------)
      • If ((Integer((Substring((String(loadi)), 1, 2)))) Equal to 12) then do (Unit - Remove Equipment_abilitys[(2 + ((Player number of (Triggering player)) x 10))] from Equipment[(Player number of (Triggering player))]) else do (-------- gloves --------)
      • If ((Integer((Substring((String(loadi)), 1, 2)))) Equal to 11) then do (Unit - Remove Equipment_abilitys[(1 + ((Player number of (Triggering player)) x 10))] from Equipment[(Player number of (Triggering player))]) else do (-------- Neckless --------)
      • -------- Inset new --------
      • Unit - Add Temp_ability to Equipment[(Player number of (Triggering player))]
      • Set Equipment_abilitys[(((Integer((Substring((String(loadi)), 1, 2)))) - 10) + (10 x (Player number of (Triggering player))))] = Temp_ability
 

Pharaoh_

The epic journey will soon begin... Prepare!
Reaction score
136
I guess by "begins casting an ability" refers to the ability of the item. You don't need to use it :) Just use 'uses an item' and all done! 'Uses an item' means that the item has an ability to be used. So, adding those 2 events, means that the trigger will actually work when both events are done at the same time, like trying to cast an ability and use the item at the same time, which will just not work.
 

X-maul

AKA: Demtrod
Reaction score
201
a unit starts the effect of an ability works good to?

(atleast i think so, you could try...)
 

sheep

New Member
Reaction score
2
I guess by "begins casting an ability" refers to the ability of the item. You don't need to use it :) Just use 'uses an item' and all done! 'Uses an item' means that the item has an ability to be used. So, adding those 2 events, means that the trigger will actually work when both events are done at the same time, like trying to cast an ability and use the item at the same time, which will just not work.

I guess you are wrong, I tryed using "Uses an item" as the only event, and it dident work.
And as you can read under 'ability being cast' then the ability only respons to 'begins casting an ability' or 'starts the effect of an ability'


a unit starts the effect of an ability works good to?

(atleast i think so, you could try...)
Still same problem, the double event think dont work, I am only getting the item i am using.

STILL NEED HELP :S
 

Pharaoh_

The epic journey will soon begin... Prepare!
Reaction score
136
Don't get why you think this way. Using the item means that you use the ability that the item has. Simply give the ability the name of the item and your 'Game - Display to (All Players) the text: (Name of (Item being maniuplated))' will work fine. The name of ability will not be shown anyway within the item; you won't point the item and it will tell you the ability used.
 

sheep

New Member
Reaction score
2
Don't get why you think this way. Using the item means that you use the ability that the item has. Simply give the ability the name of the item and your 'Game - Display to (All Players) the text: (Name of (Item being maniuplated))' will work fine. The name of ability will not be shown anyway within the item; you won't point the item and it will tell you the ability used.

I dont need the name of the item to be displayed. that i can do in an easyere way.
I need the item type and the ability it is casting.
I have to put them into 2 sepret variables.

The game - Display to (All players) the text:
Is just a check I am doing to see if I get a respont form the event. And I dont. :S
 

Pharaoh_

The epic journey will soon begin... Prepare!
Reaction score
136
Well, if that ability of the item exists for the item only (and doesn't belong to a hero as an ability too), then using just 'starts the effect of an ability' will work fine, meaning you won't need 'uses an item' event. Because the system considers the 'use of an item' = 'ability being cast', which is cast by the unit using the item. I am 99% sure it will work :p And remove the 'item-type' conditions, replacing it with 'ability being cast equal to (your ability)'.
 

lindenkron

You can change this now in User CP
Reaction score
102
You do realise you're using
"A unit Begins channeling an ability"
And not
"A unit begins casting an ability"
Right?

There's a difference between channeling and casting as far as I know, not sure though :p
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> Right?

Not really.
The problem is more that he seems to be expecting both types of event responses when only one event can happen at a time...
You either have the ability responses or the item responses, but not both at the same time.

Usually, "starts the effect of" is enough.
Unless you have several different items with the same ability... at which point you either need different abilities for different items, or work with orders (which, in turn, might just be a bigger pain).
 

sheep

New Member
Reaction score
2
Well, if that ability of the item exists for the item only (and doesn't belong to a hero as an ability too), then using just 'starts the effect of an ability' will work fine, meaning you won't need 'uses an item' event. Because the system considers the 'use of an item' = 'ability being cast', which is cast by the unit using the item. I am 99% sure it will work :p And remove the 'item-type' conditions, replacing it with 'ability being cast equal to (your ability)'.

Did you read my trigger, because you are 100% wrong.
The ability is given to a hero.
In this tigger line:
Trigger:
  • Unit - Add Temp_ability to Equipment[(Player number of (Triggering player))]


I am happy that you are trying to help. :)
 
Status
Not open for further replies.
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