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?
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?
Custom script: call RemoveLocation(udg_point)
Custom script: call RemoveLocation (udg_tempunitg)
Custom script: call RemoveLocation(udg_casterpoint)
Custom script: call RemoveLocation(udg_targetpoint)
Im finally done with the trigger, but it causes an error when i start the map. The error comes from the last custom script.
This is the way i have made it, and it causes error at the last one. What should i do, Oh Master LightChaosma!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)
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!
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)
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. That was kinda useless. :nuts: It just looks better to me like that.
Custom script: call RemoveLocation (udg_tempunitg)
are you really trying to remove a unitgroup variable by removing a location?? this cannot work, never.
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)
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)
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)