im having trouble with the maths behind bouncing projectiles.
my code so far:
function Data_bounce takes integer this returns nothing
local real a = RAbsBJ(udg_angle[this]*bj_RADTODEG)
if 2*a< 90 or 2*(180-a) < 90 then
set a = udg_angle[this]
if a> 0 then...
hi
im after the maths behind a typical smooth 'boomerang' curve (not sure what the correct terminology is) in projectiles, or otherwise example of spells that uses this. if not, a sketch will do (anything will be appreciated really... )
the standard approach to homing projectile that target a...
i have a few questions regarding the inner workings of 'method interfaces' when converted to jass.
original vjass
interface i
method onApply takes unit u returns nothing
endinterface
struct Data extends i
method onApply takes unit u returns nothing
call UnitAddAbility(u...
i read this and this and i was just wondering if there is a way to convert vjass to jass inside of newgen, not like the complicated way (at least for me :P) in the 2 threads and also the 'missing arguments:<commonj><blizzardj><mappath>' error i get when i click jasshelper/.
??
i tried typing...
Solved
im making a system (for myself) very similar to OrderQueue, which basically allows the use of 'shift' order with triggers. however, in my system, im attempting to store every order every unit is given, whether through triggers, human command, etc. ordering a unit with triggers interrupt...
SOLVED
in what order are the triggers compiled. is it random, or a particular order. its because usually when you do this
function one takes nothing
endfunction
//new trigger
function two takes nothing
call one()
endfunction
it sometimes gives you error when these two functions are placed in...
SOLVED
hi, just looking for a list of functions that are generally slow in terms of execution time. im looking to spam these functions so that it is slow enough to be beaten by a TriggerExecute() or (if possible) a 0.0 timeout. basically want to control the order each events occur. my other...
i was looking through the jass conversion of a vjass code and i found a few questions/ in of further elaboration
function s__MeatHook___Data__allocate takes nothing returns integer
local integer this=si__MeatHook___Data_F
if (this!=0) then
set...
//! runtextmacro BuffType("Cleanse")
//! runtextmacro SetBuffName("Cleanse")
//! runtextmacro SetBuffAlignment("POSITIVE")
//! runtextmacro SetBuffTooltip("This unit is has Cleanse; it regains the mana used to cast the next non-ultimate spell.")
//! runtextmacro...
any way to configure styles of highlighting custom syntax? ie change the default skyblue/underline to the style of a native?
EDIT: how to change the styles in the function list =D, i think i only found font...
SOLVED
Shape
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Channel
Actions
Custom script: set udg_xCentre = GetUnitX(GetTriggerUnit())
Custom script: set udg_yCentre = GetUnitY(GetTriggerUnit())...
ok so i was testing out healing damage dealt on attack with two triggers:
1) using Weep's GUI Damage Detection System
2) creating temporary trigger on spell effect and later to be disabled/destroyed when spell effect ends
i used 2 bjdebug and found that weep's system was 'faster' than the...
any ideas on how to store arrays into hashtable? i got confused when it asked for index..eg
local timer t = CreateTimer()
loop
exitwhen i == 5
set udg_Wisp[i] = CreateUnit()
call SaveUnit(Hashtable, 0, GetHandleId(t), udg_Wisp[i])
set i = i + 1...
//globals
// array unit udg_F__U
// array integer udg_F__T
// array real udg_F__D
// array real udg_F__A = 255.
// integer udg_Total
// timer udg_Timer
//endglobals
function fading takes nothing returns nothing
local integer i = 0
local unit get
local integer ticks
local...
http://www.thehelper.net/forums/showpost.php?p=1189499&postcount=10
based on Weep's > wrapper for a hashtable or something:confused: ?
i tried this out with:
function time takes nothing returns nothing
local integer i = GetTimerData(GetExpiredTimer())
call BJDebugMsg(I2S(i))...
Player - Disable <ability> for (Owner of (Triggering unit))
does that disable the effect and ability to use it as well?
but more than that.. ive been playing around with Orb of Slow & its Effect Ability>>is there anyway to hide the 'effect ability'
- ive tried spellbooks
and how do you inline...