Terminal Question

Discuss Halo 2 modding, progress on figuring things out, mapfiles...you know the drill. Cheating discussion not allowed.
Post Reply
Devilshadow934





Posts: 278
Joined: Sat Jul 09, 2005 12:35 am

Terminal Question

Post by Devilshadow934 »

Would it be possible to link a controller/button to the train? So you would have to press 'X' to make a train come? I don't know if this could be possible via a simple script, or if it's more complex than that.

Thanks for any help.
I hate websites that make you register to download their stuff......
User avatar
DJ_Gnomey




Connoisseur

Posts: 490
Joined: Sun Apr 15, 2007 9:31 am
Location: New York
Contact:

Post by DJ_Gnomey »

Yes it would but you psoted your question in the tutorials section instead of the modding discussion. Post your questions there enxt time!


It is not a script but more referencing the machine to the control (which would eb a button or keypad) that triggers the given action. A script may be needed for the train to move like that but I am not sure.
Image
User avatar
killarzachary




Coagulator Recreator Snitch!

Posts: 934
Joined: Sat Mar 03, 2007 9:26 am
Location: High School
Contact:

Post by killarzachary »

DJ_Gnomey wrote:Yes it would but you psoted your question in the tutorials section instead of the modding discussion. Post your questions there enxt time!


It is not a script but more referencing the machine to the control (which would eb a button or keypad) that triggers the given action. A script may be needed for the train to move like that but I am not sure.
I think it would be a script, but not sure.
Devilshadow934





Posts: 278
Joined: Sat Jul 09, 2005 12:35 am

Post by Devilshadow934 »

My bad, didn't mean to post it in the wrong section... :oops:

I have no idea how to script, I was just wondering if it was possible. I just think it would be a pretty neat idea for a mod.
I hate websites that make you register to download their stuff......
OwnZ joO




Articulatist 500

Posts: 980
Joined: Thu Nov 10, 2005 4:24 pm

Post by OwnZ joO »

Yeah it sounds possible. I really don't know about scripting, but it's probably doable.
User avatar
ScottyGEE




Visioneer Vector Mad Hatter Artisan
Snitch! Enthraller Pi Critic
Sorceror Droplet Scorched Earth Socialist
Advisor Articulatist 500

Posts: 7352
Joined: Sun Aug 15, 2004 9:08 pm
Location: Down under
Contact:

Post by ScottyGEE »

I've moded your ill-placed topic to the proper place. I am being extremely lenient here, I could have just deleted your topic, mainly because OF THIS...You know, those things that are up the top of the forum designed for people like you to READ? Yeah, they're there for YOUR help, to save yourself from rants from myself, others and flames and generally just not getting your questions answered.

Please, think a little before posting next time, or you may find that your post goes missing.
Image
This collaboration is not endorsed by Halomods
Technically its only me animating though ;)
User avatar
-Treetoad-




Coagulator Commentator

Posts: 736
Joined: Sat Jun 03, 2006 7:58 pm
Contact:

Post by -Treetoad- »

I'm pretty sure it has nothing to do with scripts, just linkage from the control to the mach. But then again, I'm a newb :wink:
Sig over file size limit.
User avatar
Zone 117




Pi Trickster Stylist Advisor
Snitch! Connoisseur

Posts: 799
Joined: Wed Nov 09, 2005 4:37 pm
Location: Want to be in Asia :'(

Post by Zone 117 »

-Treetoad- wrote:I'm pretty sure it has nothing to do with scripts, just linkage from the control to the mach. But then again, I'm a newb :wink:
Correct, no scripts.
Image Thanks for the sig Xiion :P
[ AI Revision ][ Sewer ][ Boat Mod ][ Archaic ]
Remapped: Mod Archive and Forums.
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 »

but you still have to mess with scripts though cause its scripts that cause them to spawn in the map to begin with.
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
Zone 117




Pi Trickster Stylist Advisor
Snitch! Connoisseur

Posts: 799
Joined: Wed Nov 09, 2005 4:37 pm
Location: Want to be in Asia :'(

Post by Zone 117 »

turk645 wrote:but you still have to mess with scripts though cause its scripts that cause them to spawn in the map to begin with.
A mach? Can't you just spawn them through the mach placement reflexive?
Image Thanks for the sig Xiion :P
[ AI Revision ][ Sewer ][ Boat Mod ][ Archaic ]
Remapped: Mod Archive and Forums.
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 »

yeah but they get spawned through scripts in order to make them go one at a time in a random order.
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
Agent ME




Articulatist 500

Posts: 881
Joined: Tue Jun 21, 2005 6:00 pm
Location: California, USA
Contact:

Post by Agent ME »

I think you'd need to use scripts to get that to work - it seems like the train starts going soon as it's created.

To do this I'd think you'd need to set up a control pad like the one on Zanzibar, and put it in a repeatable-use device group called 'button'.

Code: Select all

(global boolean last_status false)

(script continuous train_spawner
    (sleep_until (!= (device_group_get button) last_status))
    ; Player has pressed button

    ; update last_status for next use
    (set last_status (not last_status))
    
    ; randomly spawn one of the trains
    (if (= 0 (random_range 0 2))
        (begin
            (object_create eastbound_train)
            (object_create eastbound_death)
        )
        (begin
            (object_create westbound_train)
            (object_create westbound_death)
        )
    )
    (sleep 240)
    (object_destroy eastbound_train)
    (object_destroy eastbound_death)
    (object_destroy westbound_train)
    (object_destroy westbound_death)
)
Not sure if there are any compilers that could handle that script out of the box, and I've never been successful in adding a control group to a map that didn't have one already.
Post Reply