• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Import help

Status
Not open for further replies.
well just copy it, that's all
you need JNGP and after you copied it, save the map because JNGP can't compile it at the paste
and don't forget to set the camera and movement unit at the init

i just dont know how, thats why im asking for help
 
Well then you just have to copy it. Click on the folder of the system triggers and press CTRL+c then go to you map and press CTRL+v, save the map and voilá.

  • systems in use
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Set u = unit <gen>
      • Custom script: call SetCameraUnit(udg_u, Player(0))
      • Custom script: call SetMovementUnit(udg_u,Player(0),1)
Just set the "u" on the unit you want the camera to follow.
 
Well then you just have to copy it. Click on the folder of the system triggers and press CTRL+c then go to you map and press CTRL+v, save the map and voilá.

  • systems in use
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Set u = unit <gen>
      • Custom script: call SetCameraUnit(udg_u, Player(0))
      • Custom script: call SetMovementUnit(udg_u,Player(0),1)
Just set the "u" on the unit you want the camera to follow.

how can i make 'u' detect a unit selected (to control next selected unit)?
 
Well maybe that. I don't often use that event.
  • systems in use
    • Events
      • Player - Player 1 (Red) Selects a unit
    • Conditions
    • Actions
      • Set u = (Triggering unit)
      • Custom script: call SetCameraUnit(udg_u, Player(0))
      • Custom script: call SetMovementUnit(udg_u,Player(0),1)

Thank you so much :)
one more thing.
if add more than
  • Player - Player 1 (Red) Selects a unit
became's MUI right?
 
Oh there is a problem with the trigger I gave to you. But yes it can be MUI but I have to make a few modifications.
done
  • systems in use
    • Events
      • Player - Player 1 (Red) Selects a unit
      • Player - Player 2 (Blue) Selects a unit
    • Conditions
    • Actions
      • Set u = (Random unit from (Units currently selected by (Triggering player)))
      • Custom script: call SetCameraUnit(udg_u, Player(0))
      • Custom script: call SetMovementUnit(udg_u,Player(0),1)
 
Oh there is a problem with the trigger I gave to you. But yes it can be MUI but I have to make a few modifications.
done
  • systems in use
    • Events
      • Player - Player 1 (Red) Selects a unit
      • Player - Player 2 (Blue) Selects a unit
    • Conditions
    • Actions
      • Set u = (Random unit from (Units currently selected by (Triggering player)))
      • Custom script: call SetCameraUnit(udg_u, Player(0))
      • Custom script: call SetMovementUnit(udg_u,Player(0),1)

sorry for double post,
but the game close when loading o.O
 
Nope, you have to start it with JNGP. Normal WE can't compile vJASS.

ERROR.jpg
 
You have AVG? :) Some of the anti-viruses don't like this file and they delete it. Add the JNGP's folder to the exception list and download again that part.

jassnewgenpack5d\rtc and here it deletes the "rtcexehack" file

i use kaspersky, so disable him and firewall, and try to run JNGP?
 
Oh, I forgot something ~.~
At this you have to add the triggering player with a JASS script.
  • Custom script: call SetCameraUnit(udg_u, Player(0))
  • Custom script: call SetMovementUnit(udg_u,Player(0),1)
edit:
Well maybe you can do this.
  • Set p = Triggering Player
  • Custom script: call SetCameraUnit(udg_u, udg_p)
  • Custom script: call SetMovementUnit(udg_u,udg_p,1)
I think it should work.
 
DOUBLE CRASH, WTF!
ERROR.jpg

  • function Trig_systems_in_use_Actions takes nothing returns nothing
    • set udg_p = GetTriggerPlayer()
    • call SetCameraUnit(udg_u, udg_p)
    • Custom script: call SetMovementUnit(udg_u,udg_p,1)<----------- SYNTAX ERROR
  • endfunction
 
lets try it..
make the map (with the system imported by YOU) and i will try test by myself,
the other maps work correclty when not maded by me
 
Status
Not open for further replies.
Back
Top