A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »Scriptin' Help.

Author Topic: Scriptin' Help. (12 messages, Page 1 of 1)
Moderators: Dennis

CorruptedHalo
Joined: May 18, 2009


Posted: Nov 12, 2009 10:40 PM    Msg. 1 of 12       
Since my Halo takes forever to load because of all the maps I've downloaded, and I don't want to test something that'll just exception me, does this script look ok?
*look below for script*
also, how would I make the screen fade to black and say You win! Press Esc for Options...at the end of 10 waves?

Edited by CorruptedHalo on Nov 13, 2009 at 03:42 AM


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Nov 12, 2009 10:43 PM    Msg. 2 of 12       
No, it won't work, because all your ai_living_counts reference an AI encounter named "ai", which doesn't exist. To make the screen fade to black, add (fade_out 0 0 0 90), to make it fade out in 90 ticks. 0 0 0 is the RGB code for black (quite obviously). Then, use a HUD message to display the You win! Press Esc for Options.


CorruptedHalo
Joined: May 18, 2009


Posted: Nov 12, 2009 10:45 PM    Msg. 3 of 12       
how 'bout now?


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Nov 12, 2009 10:50 PM    Msg. 4 of 12       
Missing parentheses at the end.


CorruptedHalo
Joined: May 18, 2009


Posted: Nov 13, 2009 01:16 AM    Msg. 5 of 12       
Check your inbox.


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Nov 13, 2009 01:28 AM    Msg. 6 of 12       
Checked.


CorruptedHalo
Joined: May 18, 2009


Posted: Nov 13, 2009 03:41 AM    Msg. 7 of 12       
(script startup ai_place
(sleep_until (volume_test_objects W1 spawn (players)) 15)
(ai_place wave1)
(sleep_until (= (ai_living_count wave1) 0) 15)
(ai_place wave2)
(sleep_until (= (ai_living_count wave2) 0) 15)
(ai_place wave3)
(sleep_until (= (ai_living_count wave3) 0) 15)
(ai_place wave4)
(sleep_until (= (ai_living_count wave4) 0) 15)
(ai_place wave5)
(sleep_until (= (ai_living_count wave5) 0) 15)
(ai_place wave6)
(sleep_until (= (ai_living_count wave6) 0) 15)
(ai_place wave7)
(sleep_until (= (ai_living_count wave7) 0) 15)
(ai_place wave8)
(sleep_until (= (ai_living_count wave8) 0) 15)
(ai_place wave9)
(sleep_until (= (ai_living_count wave9) 0) 15)
(ai_place wave10)
)

Would this work?


killer kiwi
Joined: Feb 10, 2007

live and let die


Posted: Nov 13, 2009 01:42 PM    Msg. 8 of 12       
As far as I can see this line wont complie as the name of the trigger volume is a two word name
(sleep_until (volume_test_objects W1 spawn (players)) 15)
I wound make it
(sleep_until (volume_test_objects W1_spawn (players)) 15)
Hope this helps the rest looks good to me
Edited by killer kiwi on Nov 13, 2009 at 01:42 PM


CorruptedHalo
Joined: May 18, 2009


Posted: Nov 13, 2009 01:45 PM    Msg. 9 of 12       
noted, thanks :)


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Nov 13, 2009 07:28 PM    Msg. 10 of 12       
It'll compile with a space, BUT you need quotes around the name. That's how I compile maps with spaces. It also makes it perfect for SP maps, because if the map name was:

Firefight Portent

Entering in map_name Firefight Portent wouldn't run the map. It takes skill to run that :]


Polamee
Joined: Feb 25, 2008

MP2SPMT's founder


Posted: Nov 13, 2009 08:46 PM    Msg. 11 of 12       
Quote: --- Original message by: Gamma927
It'll compile with a space, BUT you need quotes around the name. That's how I compile maps with spaces. It also makes it perfect for SP maps, because if the map name was:

Firefight Portent

Entering in map_name Firefight Portent wouldn't run the map. It takes skill to run that :]


What skilll is involved putting quotations around a couple of words?


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Nov 13, 2009 09:00 PM    Msg. 12 of 12       
The fact that you actually learned that, instead of saying "z0mg h4x, this r haz spaces, i r never gunna be abl3 to plah it"

 

 
Previous Older Thread    Next newer Thread







Time: Sat January 21, 2023 5:40 AM 328 ms.
A Halo Maps Website