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.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      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