Is there a way to set the damage of a unit or a spell into a variable? because I would like to know how to do this for my GUI Critical strike spell Attempt. Thank you for any information given on this Variable.
you cannot get the damage a unit is dealing with an attack. at least not easy and effective, there is one way but i wouldnt recommend it especially not to a newbie.
What exactly do you mean in your post canons200? What i want exactly is that when a unit learns the ability it stores them in a variable then every 0.01 seconds of game time after when they attack it will check what the attack damage of that unit stored in that variable is and then cause the attacking unit to damage the attacked unit for the the attacking units Base damage+Bonuses x the multiplier set for that level of the spell and also play an attack animation.
P.S I can post an example of my current trigger if i need to
So basically i just need to know how to store the attack damage of a unit or unit variable into a real or integer or some kind of variable.
P.S.S Thank you for any help on this complicated subject:thup::thup:
You need a damage dection system. And you would have to distinguish between regular attack damage and your spell damage. Your trigger would look something like this:
Event
- GDD_Damage Equal to 0
Conditions
- GDD_DamageSource Equal to [your unit]
- [any other conditions you want]
Actions
- Set Temp_Damage = GDD_Damage
Now your Temp_Damage Real variable will track the current damage dealt to a unit.
/@ Kalder : well, I used a very complicated variable setting on a map ^_^
You will need 4 Variables with array.
1 Unit - Type variable
5 Integer Variable (Damage Base, Number of Dice, Sides per die, Minimum Damage, Maximum Damage)
You will set this on the map init.
Trigger:
Set Unit-Type [1] = Peasant
Set Damage_Base [1] = (Damage base of the unit)
Set Number_of_Dice [1] = (Number of Dice of the unit)
Set Sides_Per_Die [1] = (Sides per die of the unit)
You will need to set this for every unit type you will do.
Then do the rest. You'll need common sense <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue :p" loading="lazy" data-shortname=":p" />
Set DMG = ((Max life of (Attacked unit)) - (Life of (Attacked unit)))
EDITMG is a real!
Then just
event - unit is attacked
condition - the unit who has critical
action - set DMG
"Create floating text at attacked unit showing "Value Of DMG""
@Gwafu: Yes there is an event like that. That's why he needs a damage detection system. His work will be 20 times easier once he gets it. Your system is WAY more complicated than it needs to be.
@Kalder: Go here, download the system, and follow the instructions to implement it into your map. The damage detection system is meant for the exact thing you need.
Once you have implemented the system in your map, make a new trigger that will look like this:
Trigger:
Events
GDD_Event Equal to 0.00
Conditions
GDD_DamageSource Equal to [your unit]
Actions
Set Temp_Damage [a Real variable] = GDD_Damage
Game - Display to (all players) the text: ((integer)Temp_Damage)
I did that freehand, so it may not be exact, but its close.
The trigger will display the damage you dealt to the unit, and you can store that damage in variables to manipulate as you want.
@CAPLOCKSFTW, Gwafu, tommerbob:Thx! but i like tommerbob's idea the most (sorry other's ) . And i have heard about GDD before and it seems like it works so tommerbob thx! and thx others and +rep ( tommerbob )
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.
@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.
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
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
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
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.
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
I think we need to add something to the bottom of the front page that shows the Headline News forum that has a link to go to the News Forum Index so people can see there is more news. Do you guys see what I am saying, lets say you read all the articles on the front page and you get to the end and it just ends, no kind of link for MOAR!