Changing Raw Data in GUI; is it possible?

Griffen25

New Member
Reaction score
1
Hello, I was wondering if it was possible to change the raw data you see in the object editor by pressing CTRL + D by using a trigger. Ie I wanted to random a number between 1 & 10 and cause a firebolt to do that amount of damage. P.S. I have absolutely no experience with JASS, so well intentioned comments will likely be wasted on me. =[

Thanks.
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
you cannot change that anyhow ingame.

however you can just create a triggered custom ability which does your effect.
 

N(O.O)B

New Member
Reaction score
27
Q: What parts of an ability can I change?
A: You can change targets, graphics, sound, damage, unit ids, range, levels, and other similar values. You cannot change the basic logic of the spell through the spell editor. You need to use triggers to change spell logic.



For example you could:

Change Bloodlust to decrease unit speed.
Make Starfall a unit ability.
Make Raise Dead summon 1 zombie.

However you could not (without triggers):

Add a stun effect to Mana Burn.
Make Death Coil area of effect.
Make an aura that turns units into sheep.
You can, however, achieve a similar effect using triggers. If you wanted to achieve an effect such as you asked for, you will only have to create a simple trigger:
Trigger:
  • Firebolt
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Firebolt
    • Actions
      • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Random real number between 1.00 and 10.00) damage of attack type Spells and damage type Normal
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
this wont work out very well.

firebolt is a missle and your trigger is dealing damage the moment it is casted not the moment the missle is hitting its target.

the enemy will get damaged far too early.
 

N(O.O)B

New Member
Reaction score
27
this wont work out very well.

firebolt is a missle and your trigger is dealing damage the moment it is casted not the moment the missle is hitting its target.

the enemy will get damaged far too early.

This is not true, he will get damaged when the bolt hits the target. I used the "Finishes Casting an Ability", not "Starts the Effect of an Ability". Any bolt spell (at least, storm bolt) "finishes" after the bolt hits the target, and "starts" when the bolt is unleashed. Test it ;)
 

Griffen25

New Member
Reaction score
1
This is not true, he will get damaged when the bolt hits the target. I used the "Finishes Casting an Ability", not "Starts the Effect of an Ability". Any bolt spell (at least, storm bolt) "finishes" after the bolt hits the target, and "starts" when the bolt is unleashed. Test it ;)

Ohh I didn't know that, I had the same fear as mentioned before, I didn't want the damage to occur like 2 sec before the spell hits. particularly because the spell is being launched from about 10,000 range away.

Will test it and let you know how it goes

EDIT: Tested with firebolt and it didnt work. I'll try with stormbolt.

EDIT: Tested with stormbolt and it didnt work.

Trigger:
  • Firebolt Random Damage
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Storm Bolt EDIT!
    • Actions
      • Special Effect - Create a special effect at (Position of Survivors_Unit_Array[1]) using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Game - Display to (All players) for 0.01 seconds the text: NOW~~!!


I could see the "NOW~!!" text pop up after about 1 second, whereas the stormbolt missile took around 3-4 seconds to hit.
 

Rllulium

New Member
Reaction score
10
Have your trigger measure the distance between the caster and his target, then add a wait before the damage based on the distance and the projectile speed of the spell. That will make the bolt deal damage once it has traveled the original distance, which will only look weird if the target moves a long distance before it get hit by the bolt.

Better however; If you have access to a Damage Detection system you can set the object editor damage to 0 and let the damage trigger fire on an Any Unit Takes Damage Event.
 

Griffen25

New Member
Reaction score
1
too much hassel over a little reward, and since I dont have a damage detection system (and no intention of installing one), I think i am going to give this one a miss. thanks anyways
 

cryowraith

New Member
Reaction score
7
Or you could use a dummy ability. Create 10 firebolts spell with 1 to 10 damage each, then when your unit uses the dummy spell, set the dummy's firebolt level to the random integer and use that to cast firebolt. Gets messy when your random damage gets too high though.
 

canons200

New Member
Reaction score
50
if you want the timing excatly the minutes firebolt hit, use trigger and create a moving unit(ur firebolt missile) and move that unit to tha target unit of ability being cast, the minutes your moving unit reach targeted unit, cause damage to him.
 
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

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top