• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Import help

Status
Not open for further replies.
Level 12
Joined
Dec 17, 2009
Messages
951
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
 
Level 16
Joined
Jun 24, 2009
Messages
1,409
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.
 
Level 12
Joined
Dec 17, 2009
Messages
951
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)?
 
Level 16
Joined
Jun 24, 2009
Messages
1,409
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)
 
Level 12
Joined
Dec 17, 2009
Messages
951
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?
 
Level 16
Joined
Jun 24, 2009
Messages
1,409
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)
 
Level 12
Joined
Dec 17, 2009
Messages
951
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
 
Level 12
Joined
Dec 17, 2009
Messages
951
Nope, you have to start it with JNGP. Normal WE can't compile vJASS.

ERROR.jpg
 
Level 12
Joined
Dec 17, 2009
Messages
951
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?
 
Level 16
Joined
Jun 24, 2009
Messages
1,409
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.
 
Level 12
Joined
Dec 17, 2009
Messages
951
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
 
Level 12
Joined
Dec 17, 2009
Messages
951
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.
Top