Line 315 Expected a function name?

darkreapers

New Member
Reaction score
6
OK the first problem is fixed but there is also a 2nd problem!!!
the new combined tower would spawn, however the two old towers wouldnt get destoried, does it matter if the other 2 tower have invurnable on them? it shouldnt right? since its explode unit, anyone can help??

Trigger:
  • events
    • unit - a unit finishes a research
    • conditions
    • (researched tech-type) Equals to Dark Light
    • actions
    • set tempgroup = (units owned by (owner of (researching unit)) matching (((unit-type of (matching unit)) equals to Darkness tower level 3) and ((unit - type of (matching unit)) equals to Light Tower level 5)))
    • set tempPoint = (position of (researching unit))
    • player group - pick every player in (all players) and do (actions)
    • loop - Actions
    • Unit - Explode (picked unit)
    • unit - Create 1 Dark Light for (Owner of (researching unit)) at tempPoint facing Defualt building facing degrees
    • custom script: call DestroyGroup (udg_tempgroup)
    • custom script: call RemoveLocation(udg_tempPoint)



The error is with the destory location line :banghead:
 

Exide

I am amazingly focused right now!
Reaction score
448
You made a typo:

Trigger:
  • custom script: call DestoryGroup(udg_tempgroup)


should be:

Trigger:
  • custom script: call DestroyGroup(udg_tempgroup)
 

RMX

New Member
Reaction score
8
custom script: call DestoryLocation(udg_tempPoint) .......... in the last line..

Should be .... custom script: call RemoveLocation(udg_tempPoint)...

And the Group thingy custom script: call DestoryGroup (udg_tempgroup)..

Should be.... custom script: call DestroyGroup (udg_tempgroup)
 

HydraRancher

Truth begins in lies
Reaction score
197
Neither of them should work!
Correction:
Trigger:
  • custom script: call DestroyGroup(udg_tempgroup)

Trigger:
  • custom script: call DestroyLocation(udg_tempPoint)
 

Exide

I am amazingly focused right now!
Reaction score
448
Listen to RMX, he's right.
 

darkreapers

New Member
Reaction score
6
Lolz(for using DestroyLocation)

i only got warcraft 3 last month xD

i actually had destroy group, but when i typed the trigger out for this site i made a typo here. ok done remove location and the trigger worked...
Well KINDA, since the 2 towers wont explode??
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Though, are you sure that this works ?
There is no way that this line should work:
Trigger:
  • # player group - pick every player in (all players) and do (actions)
    • # loop - Actions
    • # Unit - Explode (picked unit)
    • # unit - Create 1 Dark Light for (Owner of (researching unit)) at tempPoint facing Defualt building facing degrees


There is no picked unit, since you picked a player group XD
 

darkreapers

New Member
Reaction score
6
Though, are you sure that this works ?
There is no way that this line should work:
Trigger:
  • # player group - pick every player in (all players) and do (actions)
    • # loop - Actions
    • # Unit - Explode (picked unit)
    • # unit - Create 1 Dark Light for (Owner of (researching unit)) at tempPoint facing Defualt building facing degrees


There is no picked unit, since you picked a player group XD

damn... ahhh... i see wat u mean now.... is there anyway anyone can help me work around this trigger? haha :thup:
umm i might go try pick every unit in entire map and do actions??
i give that a go n see how it works

LOL that didnt work since it killed everything haha
 

Komaqtion

You can change this now in User CP.
Reaction score
469
hehe XD, but you've set a temp group there, which you haven't used, can't you use that ?
 

darkreapers

New Member
Reaction score
6
hehe XD, but you've set a temp group there, which you haven't used, can't you use that ?

ohh i tried that,

Trigger:
  • action
    • unit group - pick every unit in tempgroup and do (actions)
    • loop - actions
    • unit - explode (picked unit)


when i tried that, my new tower wont even appear on the map!! and my two old towers r still there :banghead:
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top