[Resources] Script Library

This forum is for uploading new building blocks for maps such as tags and new models. Please do not post any copyrighted material (ie, models/textures from other games).
n64nerd




Articulatist 100

Posts: 127
Joined: Mon Dec 05, 2005 5:44 pm

Post by n64nerd »

that script can also be found, along with others (player1, weather, etc.) in some maps like gemini.
http://files.halomods.com/viewtopic.php?t=50904
my first tutorial in the tutorial section
User avatar
ali954
Readers Club





Posts: 150
Joined: Mon Oct 11, 2004 1:20 pm
Location: VA
Contact:

Post by ali954 »

for some reason this wont compile

Code: Select all

(script continuous beast_mode
  (begin
   (sleep_until (unit_has_weapon (unit (list_get (players) 0)) objects\weapons\melee\energy_blade\energy_blade) (unit_has_weapon (unit (list_get (players) 0)) objects\weapons\melee\energy_blade\energy_blade) 1)
   (player_effect_set_max_rotation 0 1 0.5) 
   (player_effect_set_max_rumble 1 0.75) 
   (player_effect_start 0.25 2)    
   (object_set_scale 1.5)
   (object_cannot_take_damage (player0))
   (sleep 400)
   (object_can_take_damage (player0))
   (sleep_until (unit_has_weapon (unit (list_get (players) 0)) objects\weapons\melee\energy_blade\energy_blade) (unit_has_weapon (unit (list_get (players) 0)) objects\weapons\melee\energy_blade\energy_blade) 0)
   (object_set_scale 1)
   (player_effect_stop)
  )
)
User avatar
SingingBlaze




Stylist Trickster Critic

Posts: 348
Joined: Sun Sep 10, 2006 6:02 pm

Post by SingingBlaze »

Hey do you reckon someone would know how to make a script that makes it so whenever someone on Team A dies they change to Team B? Something like that for the gametype zombie.

Also how about one that changes assault to a CS like sort of game so when one player dies they have to wait until the end of the game to respawn? Thanks for the help.
n64nerd




Articulatist 100

Posts: 127
Joined: Mon Dec 05, 2005 5:44 pm

Post by n64nerd »

oy...
Are you people sure you use the local objects reflexive? There's a tutorial in the tut section about scirpt objects, and I haven't found any maps with local objects in them yet. Does anyone know of any? I'll keep searching.
EDIT: nm, it isn't defined in my scnr plugin, so it wasn't originally shown.
http://files.halomods.com/viewtopic.php?t=50904
my first tutorial in the tutorial section
slayer410





Posts: 738
Joined: Mon Oct 03, 2005 1:41 pm
Location: Texas

Post by slayer410 »

"Local Objects" is a more precise name than "Script Objects".
n64nerd




Articulatist 100

Posts: 127
Joined: Mon Dec 05, 2005 5:44 pm

Post by n64nerd »

Doesn't really matter anyways, my map won't load because of all the things like control placement and local objects I'm adding...
http://files.halomods.com/viewtopic.php?t=50904
my first tutorial in the tutorial section
User avatar
turk645




Artisan Translator Pyre

Posts: 2887
Joined: Wed May 18, 2005 12:32 pm
Location: In my special pillow fort.
Contact:

Post by turk645 »

SingingBlaze wrote:Hey do you reckon someone would know how to make a script that makes it so whenever someone on Team A dies they change to Team B? Something like that for the gametype zombie.

Also how about one that changes assault to a CS like sort of game so when one player dies they have to wait until the end of the game to respawn? Thanks for the help.
seeing as how scripts werent really ment for MP im going to say no.
Image
ScottyGee wrote:Smokers suck >_< (to avoid someone saying it later, both literally and in the derogatory way)
"Before you criticize someone, walk a mile in their shoes. That way after you make fun of them, you still have their shoes."-Dranciel ಠ_ಠ
Enlighten3d-one





Posts: 313
Joined: Fri Sep 01, 2006 3:06 pm
Location: Here playin halo
Contact:

Post by Enlighten3d-one »

SingingBlaze wrote:Also how about one that changes assault to a CS like sort of game so when one player dies they have to wait until the end of the game to respawn? Thanks for the help.
you dont need a script for that :? just make it one life in the game options
Ketchup_Bomb wrote:Wait, wait, wait.I am not leet modder here, in fact, I am a noob * 10.
BUT, if you have five apples, and add two oranges to it, why would you have less apples?..
Image
User avatar
snakejknight




Trickster Wave Pyre Wordewatician 500

Posts: 693
Joined: Sun Jun 04, 2006 1:00 pm
Location: North Hollywood California

Post by snakejknight »

Agent ME wrote:
Hawaiian Modder wrote:

Code: Select all

(script continuous Game_Restart 
  (begin 
   (sleep 500) 
   (game_revert)
  )
)
The command "map_reset" would probably work better, and probably be SLC.
do not try this on slc... i tried it and it totaly fucked my 360, it atualy stopped working and i never had any problems w/ it before... when the game restarted on my xbox my 360 froze and will no longer turn back on
Dojorkan




Coagulator Blacksmith

Posts: 1084
Joined: Sun Jan 30, 2005 7:54 am

Post by Dojorkan »

Is it possable to make any allied AI follow you in a SP map with scipting? I'm sure there is, but I dont know crap about making scripts, only editing a few values and string IDs....
User avatar
turk645




Artisan Translator Pyre

Posts: 2887
Joined: Wed May 18, 2005 12:32 pm
Location: In my special pillow fort.
Contact:

Post by turk645 »

the only thing i can think of is a constant go to player script.
Image
ScottyGee wrote:Smokers suck >_< (to avoid someone saying it later, both literally and in the derogatory way)
"Before you criticize someone, walk a mile in their shoes. That way after you make fun of them, you still have their shoes."-Dranciel ಠ_ಠ
User avatar
ali954
Readers Club





Posts: 150
Joined: Mon Oct 11, 2004 1:20 pm
Location: VA
Contact:

Post by ali954 »

well i member seein in some ai tut that the flood infection has a built in script that says go to player and explode when the coords are the same. now idn if u can even access that but if u can u can get it and change it up a lil.
-DeToX-




Illusionist Recreator Connoisseur Acolyte
Sigma Decryptor Droplet Pyre
Blacksmith Socialist New Age System Engineer
ONI

Posts: 4589
Joined: Sun Jun 18, 2006 3:58 pm
Location: ...

Post by -DeToX- »

ali954 wrote:for some reason this wont compile

Code: Select all

(script continuous beast_mode
  (begin
   (sleep_until (unit_has_weapon (unit (list_get (players) 0)) objects\weapons\melee\energy_blade\energy_blade) (unit_has_weapon (unit (list_get (players) 0)) objects\weapons\melee\energy_blade\energy_blade) 1)
   (player_effect_set_max_rotation 0 1 0.5) 
   (player_effect_set_max_rumble 1 0.75) 
   (player_effect_start 0.25 2)    
   (object_set_scale 1.5)
   (object_cannot_take_damage (player0))
   (sleep 400)
   (object_can_take_damage (player0))
   (sleep_until (unit_has_weapon (unit (list_get (players) 0)) objects\weapons\melee\energy_blade\energy_blade) (unit_has_weapon (unit (list_get (players) 0)) objects\weapons\melee\energy_blade\energy_blade) 0)
   (object_set_scale 1)
   (player_effect_stop)
  )
)
It needs .weapon at the end of the ident. Try that.
Image
User avatar
GametagAeonFlux




Bloodhound Acolyte Orb Commentator
Pyre Socialist

Posts: 9320
Joined: Sun Jun 06, 2004 7:27 pm
Location: Lincoln, NE

Post by GametagAeonFlux »

Is that a script for when you have the Energy Sword, you're invincible, and 1.5x the size? Interesting.
Poison_of_life





Posts: 18
Joined: Thu Nov 09, 2006 9:19 am

Post by Poison_of_life »

How about someone makes a script so when you open the zanzibar gate a timer starts and 30 seconds later the building is "destroyed", maybe spawning the nuke explosion form metro or something.
slayer410





Posts: 738
Joined: Mon Oct 03, 2005 1:41 pm
Location: Texas

Post by slayer410 »

Poison_of_life wrote:How about someone makes a script so when you open the zanzibar gate a timer starts and 30 seconds later the building is "destroyed", maybe spawning the nuke explosion form metro or something.
Hehe... look luck with that one...
Dojorkan




Coagulator Blacksmith

Posts: 1084
Joined: Sun Jan 30, 2005 7:54 am

Post by Dojorkan »

Just to try it out and see if it works I tried to make Johnson have Camo on Ouskirts, I added on what is in bold, to the script e1_mars_johnson_main.:
(script dormant e1_mars_johnson_main
(begin
(ai_place e1_mars_johnson)
(object_cannot_die (ai_get_object e1_mars_johnson/johnson0) True)
(ai_set_active_camo e1_mars_johnson/johnson0 True)
(cs_run_command_script e1_mars_johnson cs_e1_mars_johnson_entry)
(sleep_until (and (> (ai_spawn_count e1_cov_inf0_2) 0) (<= (ai_living_count e1_cov_inf0_2) 0)))
(sleep_until (volume_test_objects tv_e1_on_building (ai_actors e1_mars_johnson)) 30 450)
(sleep (ai_play_line e1_mars_johnson/johnson0 ))
(print "they know we're here")
(game_save)
(wake objective0_set)
(sleep_until (> (ai_spawn_count e1_cov_inf1) 0))
(sleep 60)
(ai_play_line e1_mars_johnson/johnson0 )
(sleep_until (> (ai_spawn_count e1_cov_phantom0_0) 0))
(sleep_until g_e1_cov_phantom0_1_arrived)
(sleep 60)
(sleep (ai_play_line e1_mars_johnson/johnson0 ))
(sleep_until g_e1_mars_pelican0_appeared 15)
(cs_run_command_script e1_mars_johnson cs_e1_mars_johnson_finale)
(sleep_until g_e1_mars_pelican0_departing 3 one_minute)
(sleep 20)
(sleep (ai_play_line e1_mars_johnson/johnson0 ))
(wake music_03a_02_start)
)
)
After I do that everything else under its deleted when I look at the script again. causing the game to freeze



Also with e1_mars_inf1... I tried to make the marine invincible using the script johnson uses, and it also feezes. (without using the script I posted above)
(script dormant e1_mars_inf1_main
(begin
(ai_place e1_mars_inf1)
(object_cannot_die (ai_get_object e1_mars_inf1) True)
)
)

I tried using both plaintext and the constructer but i doesnt work.
t_mann05




Articulatist 250

Posts: 361
Joined: Fri Dec 02, 2005 7:46 pm

Post by t_mann05 »

how exactly do i compile a script from a map, into a different map with soldiers app? I have 1 script in my MP map, and im having trouble compiling a new script to take its place.


please move this back to halo 2 downloads.......no one is coming to this part of the forum to answer questions :( This is a good topic and its going to waste
*Sig Removed* Too Large ~Halomods Staff
uncutshadow





Posts: 447
Joined: Sat Jul 22, 2006 2:50 pm
Location: new jersey

Post by uncutshadow »

im trying to make a script. is this right:

Code: Select all

(script continuous shield_respawner
 (begin
  (sleep_until (<= (object_get_health scenarios\objects\multi\dune\dune_gate\dune_gate.mach) 0))
  (object_create scenarios\objects\multi\dune\dune_gate\dune_gate.mach)
 )
)
User avatar
Munsie




Blacksmith

Posts: 1485
Joined: Mon Aug 29, 2005 11:07 am
Location: Canada

Post by Munsie »

Here's a script to deal damage whenever you shoot, grenade, or melee. It effects all players, I think it would be fun for 4 person split-screen.

Code: Select all

(script continuous damage_script 
   (begin
      (sleep_until (or (player_action_test_vision_trigger)
      (player_action_test_primary_trigger)
      (player_action_test_grenade_trigger)
      (player_action_test_melee))) 
         (damage_players objects\weapons\pistol\magnum\damage_effects\magnum_bullet)
      (player_action_test_reset) 
   )
)
Post Reply