Home   Help Search Login Register  

Author Topic: How Can I Make Intro?  (Read 707 times)

0 Members and 1 Guest are viewing this topic.

coolisamy

  • Guest
How Can I Make Intro?
« on: 06 May 2004, 09:42:41 »
How ca i make intro script??
please help!!

Loup-Garou

  • Guest
Re:How Can I Make Intro?
« Reply #1 on: 06 May 2004, 10:28:44 »
1) In the editor, in your mission (intro part), type in a init field of a unit : [] exec "into.sqs". Then place a trigger for ending your intro : x = 0, y = 0, Type = End#1, Condition = true, countdown = X, X , X (X is the length of your intro, in seconds ; count the "breaks" -> ~5 and the seconds in the titlecut [..........,5]). In others words, the lenght of the script and the countdown must be "synchronized".

2) In your mission folder place a text file named : intro.sqs. In this file type :

;type commentaries here (lines which begin by ";")

titlecut ["","black in",3]

_cam = "camera" camcreate [0,0,0]
;create the camera
_cam cameraeffect ["inernal","back"]
;position of camera. Can be : right back, front, top, left top...
EnableRadio false
; turns radio off

_cam camsettarget unitname
_cam camsetrelpos [X,Y,Z]
;camera's position compared to the unit targeted
; Can be positive or negative numbers
;X : left / right, Y : above / behind, Z : on top / below
_cam camcommit 0
; use it to move the camera, with 0 the unit is immediatly targeted
@camcommitted_cam
;put this ALWAYS after camcommit. It's a "confirmation" of the target

~4
;break in seconds

(...other camsettarget...)

~4

titlecut ["bla bla","plain down",1]
;text. Put "plain" if you want it in the middle of the screen

~4

titlecut ["","BLACK OUT",2]
;screen gets black

~2

; end of the intro
_cam cameraeffect ["terminate","back"]
camdestroy_cam

EnableRadio true
;turns radio on

exit

DONE !  ;) (last time I explain !  :P).

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:How Can I Make Intro?
« Reply #2 on: 06 May 2004, 10:43:20 »
Quote
countdown = X, X , X (X is the length of your intro, in seconds ; count the "breaks" -> ~5 and the seconds in the titlecut [..........,5]). In others words, the lenght of the script and the countdown must be "synchronized".
And I have to disagree with you on this...

I have NEVER seen/heard anyone else doing it like you are...

The only thing you need for the trigger is that it is:
- End#1 (probably mandatory?)
- Condition: variableYouWantToEndTheScene
- And, after you delete the camera (like Loup says above) you set the variableYouWantToEndTheScene to true
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

coolisamy

  • Guest
Re:How Can I Make Intro?
« Reply #3 on: 06 May 2004, 10:56:05 »
I did not understand this......
but thanks any way! ;)

Loup-Garou

  • Guest
Re:How Can I Make Intro?
« Reply #4 on: 06 May 2004, 11:27:39 »
I didn't know this method, HateR_Kint, but it's a valid one. However, mine works fine. I must admit that I didn't explain it very precisely... ;D.

To coolisamy :

1) I'm sure your problem have been solved a million times ; so don't forget to search in the editor depot and in the forum before posting  ;D.

2) If all work fine, don't forget to click on the green tick to solve your topic (so many people don't do it  :-\ ...).

PsyWarrior

  • Guest
Re:How Can I Make Intro?
« Reply #5 on: 06 May 2004, 11:48:23 »
Quote
countdown = X, X , X (X is the length of your intro, in seconds ; count the "breaks" -> ~5 and the seconds in the titlecut [..........,5]). In others words, the lenght of the script and the countdown must be "synchronized".

I agree with HateR_Kint here, as the above method will only work if the cutscene is always the same length exactly. This means you cannot have any conditions in your script (like waiting for a helicopter to reach a certain point before continuing with the cutscene).

@coolisamy: Look in the Editors Depot for snYpir's "Intro to Camera Scripting". That should give you a start in this.

Quote
If all work fine, don't forget to click on the green tick to solve your topic (so many people don't do it   ...).
Agreed... :P

-Supreme Commander PsyWarrior
-Psychic Productions Studios

coolisamy

  • Guest
Re:How Can I Make Intro?
« Reply #6 on: 06 May 2004, 12:26:57 »
ok thanks!

Offline beefholishness

  • Members
  • *
  • I'm a llama!
Re:How Can I Make Intro?
« Reply #7 on: 06 May 2004, 18:17:30 »
ok, there's a much simpler way to do this. however it produces simpler results. for beginners i strongly suggest using game logic devices and triggers activated by game logic devices. set them to activate after a certain number of seconds, and you can make a decent intro. for example, if you want a text line to activate 7 seconds after the mission starts, add the text into your trigger and set the min, mid and max for 7. if you want something else to show ten seconds later, set another triggers min, mid and max for 17. mess around with it a little, I created a 7-minute long great looking Russian invasion of malden using only the in-editor game logic devices.
don't take the name the wrong way