Skill damages with attribute +rep

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
This may be off-topic, but I've seen a system that lets you make skills based on stats, and it's pretty cool. Want me to link it, or do you not need it?
 

LightChaosma

New Member
Reaction score
60
this freehand i wrote is exactly the same as a WE version, exept meybe typos and capital letters and some ()'s

that uctom value conditionion is in integer coparison

you have 3 things there number of units in playable map area or so, click it, go to the functions, and look for unit - custom value, here you select triggering unit

the second you change to is not equal to

the 3rd to 59
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
I'm not sure if it can do lines, but it does Cone, AoE, and single-target spells as far as I know. I'll check if it does lines.
 

TheDarkBoy

New Member
Reaction score
3
Im finally done with the trigger, but it causes an error when i start the map. The error comes from the last custom script.
Code:
Custom script:   call RemoveLocation(udg_point)
Custom script:   call RemoveLocation (udg_tempunitg)
Custom script:   call RemoveLocation(udg_casterpoint)
Custom script:   call RemoveLocation(udg_targetpoint)
This is the way i have made it, and it causes error at the last one. What should i do, Oh Master LightChaosma! :D
Lol sorry. It causes error at the first one xD. My bad.
EDIT: Actually, it causes errors at ALL the custom scripts! Help me please! :D
 

TheDarkBoy

New Member
Reaction score
3
Im finally done with the trigger, but it causes an error when i start the map. The error comes from the last custom script.
Code:
Custom script:   call RemoveLocation(udg_point)
Custom script:   call RemoveLocation (udg_tempunitg)
Custom script:   call RemoveLocation(udg_casterpoint)
Custom script:   call RemoveLocation(udg_targetpoint)
This is the way i have made it, and it causes error at the last one. What should i do, Oh Master LightChaosma! :D
Lol sorry. It causes error at the first one xD. My bad.
EDIT: Actually, it causes errors at ALL the custom scripts! Help me please! :D

Just in case that you havnt seen it, im in need of help :D... And what is "typos"?
But i actually think that you have done something wrong with the trigger. I dont think that there is anything called call RemoveLocation(udg_point). It just dont seem to make sense?
 

TheDarkBoy

New Member
Reaction score
3
Code:
Phoenix Blast
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Phoenix Blast 
    Actions
        Set targetpoint = (Target point of ability being cast)
        Set casterpoint = (Position of (Triggering unit))
        Set realangle = (Distance between casterpoint and targetpoint)
        For each (Integer A) from 1 to 1000, do (Actions)
            Loop - Actions
                Set temppoint = (casterpoint offset by ((Real((Integer A))) x 50.00) towards realangle degrees)
                Set tempunitg = (Units within 75.00 of temppoint matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an enemy of (Triggering player)) Equal to True) and ((Custom value of (Matching unit)) Not equal to 59))))
                Unit Group - Pick every unit in tempunitg and do (Actions)
                    Loop - Actions
                        Unit - Set the custom value of (Picked unit) to 59
                        Unit - Cause (Triggering unit) to damage (Picked unit), dealing (Real((Intelligence of FlamingWrathCaster (Exclude bonuses)))) damage of attack type Spells and damage type Fire
                Custom script:   call RemoveLocation (udg_point)
                Custom script:   call RemoveLocation (udg_tempunitg)
        Custom script:   call RemoveLocation (udg_casterpoint)
        Custom script:   call RemoveLocation (udg_targetpoint)
I cant see why it says error at "call RemoveLocation (udg_point)" but it does.
 

Jolly chap*

New Member
Reaction score
34
For the "Unit Group - Pick every unit in tempunitg and do (Actions)" part it can be seperated from the Integer A loop coz you're not using Integer A there ... but works fine anyway. :D That was kinda useless. :nuts: It just looks better to me like that.
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
Custom script: call RemoveLocation (udg_tempunitg)

are you really trying to remove a unitgroup variable by removing a location?? this cannot work, never.
 

TheDarkBoy

New Member
Reaction score
3
For the "Unit Group - Pick every unit in tempunitg and do (Actions)" part it can be seperated from the Integer A loop coz you're not using Integer A there ... but works fine anyway. :D That was kinda useless. :nuts: It just looks better to me like that.

What about the custom scripts? can you see why it doesnt work?
 

TheDarkBoy

New Member
Reaction score
3
Custom script: call RemoveLocation (udg_tempunitg)

are you really trying to remove a unitgroup variable by removing a location?? this cannot work, never.

Actually i just followed LightChaosmas freehand drawing of the trigger, where he said that. But can you see why "Custom script: call RemoveLocation (udg_point)" is not working and causing error?
 

Jolly chap*

New Member
Reaction score
34
Because there is no such variable that you have created with the name "point" + even if you did, you didn't use it in the trigger anyway.

EDIT: Just remove Custom Script : call RemoveLocation(udg_point) from your trigger if you're not using the variable "point".
 

TheDarkBoy

New Member
Reaction score
3
Okay. But you keep telling me that the variables dont exist, but if they dont exist which variables should i remove and how? (And shall i even remove some?)
 

Jolly chap*

New Member
Reaction score
34
Have you created the Point Variable called "point"? Keep the other variables (casterpoint, targetpoint etc.) but since I don't see anywhere on the trigger that uses the variable "point", it's pretty much useless.
 

LightChaosma

New Member
Reaction score
60
my trigger:

Code:
e
unit starts the effect of an ability
c
ability being cast is equal to shcowavelikeskill
a
set targetpoint = target point of ability being cast
set casterpoint = position of triggering unit
set realangle = angle between casterpoint and targetpoint
for each integer A from 1 to (range/50)
     (set temppoint = casterpoint ofset by integerA*50) towards realangle
     set tempunitg = units within 75 range of tempoint matching (matching unit is alive, and matching unit belongs to an enemy of triggering unit and custom value of matching unit is not equal to 59)
     pick every unit in tempunitg and do actions
          (set custom value of picked unit to 59
          unit - cause triggering unit to damage picked unit for 150 damage of types spells and damage type fire)
     custom script - call RemoveLocation(udg_point)
     custom script - call DestroyGroup (udg_tempunitg)
)
custom script - call RemoveLocation(udg_casterpoint)
custom script - call RemoveLocation(udg_targetpoint)

your trigger (in red what is wrong)
Code:
Phoenix Blast
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Phoenix Blast 
    Actions
        Set targetpoint = (Target point of ability being cast)
        Set casterpoint = (Position of (Triggering unit))
        Set realangle = (Distance between casterpoint and targetpoint)
        For each (Integer A) from 1 to 1000, do (Actions)
            Loop - Actions
                Set [COLOR="Lime"]temp[/COLOR]point = (casterpoint offset by ((Real((Integer A))) x 50.00) towards realangle degrees)
                Set tempunitg = (Units within 75.00 of temppoint matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an enemy of (Triggering player)) Equal to True) and ((Custom value of (Matching unit)) Not equal to 59))))
                Unit Group - Pick every unit in tempunitg and do (Actions)
                    Loop - Actions
                        Unit - Set the custom value of (Picked unit) to 59
                        Unit - Cause (Triggering unit) to damage (Picked unit), dealing (Real((Intelligence of FlamingWrathCaster (Exclude bonuses)))) damage of attack type Spells and damage type Fire
                Custom script:   call RemoveLocation (udg_[COLOR="Red"]temp[/COLOR]point)
                Custom script:   call [COLOR="red"]DestroyGroup[/COLOR] (udg_tempunitg)
        Custom script:   call RemoveLocation (udg_casterpoint)
        Custom script:   call RemoveLocation (udg_targetpoint)
 

TheDarkBoy

New Member
Reaction score
3
Okay i changed the trigger a bit:
Code:
Phoenix Blast
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Phoenix Blast 
    Actions
        Set targetpoint = (Target point of ability being cast)
        Set casterpoint = (Position of (Triggering unit))
        Set realangle = (Distance between casterpoint and targetpoint)
        For each (Integer A) from 1 to 1000, do (Actions)
            Loop - Actions
                Set temppoint = (casterpoint offset by ((Real((Integer A))) x 50.00) towards realangle degrees)
                Set tempunitg = (Units within 75.00 of temppoint matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an enemy of (Triggering player)) Equal to True) and ((Custom value of (Matching unit)) Not equal to 59))))
                Custom script:   call RemoveLocation (udg_tempunitg)
        Unit Group - Pick every unit in tempunitg and do (Actions)
            Loop - Actions
                Unit - Set the custom value of (Picked unit) to 59
                Unit - Cause (Triggering unit) to damage (Picked unit), dealing (3.00 x (Real((Intelligence of (Transporting unit) (Exclude bonuses))))) damage of attack type Spells and damage type Fire
        Custom script:   call RemoveLocation (udg_casterpoint)
        Custom script:   call RemoveLocation (udg_targetpoint)
But now it says that "set bj_forLoopAIndex = bj_forLoopAIndex + 1" is an invalid argument type (group). ("set bj_forLoopAIndex = bj_forLoopAIndex + 1" is on line 118 if that should help)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • 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 Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top