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,462
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.

      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