Scripting With Player Health, Etc

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





Posts: 57
Joined: Wed Feb 25, 2004 4:32 pm

Scripting With Player Health, Etc

Post by h4xx3d »

So, I'm getting back into modding and scripts seem to have the most potential for interesting effects.

Anyways, how would I go about writing a script that would give the current player more ammo or health on X event, etc? Any help would be greatly appreciated.
Crazy_Colombiano





Posts: 562
Joined: Fri Mar 31, 2006 6:12 pm
Location: tim-buck-too anywere, usa

Post by Crazy_Colombiano »

you dont need scripts for giving a player more health, ammo
all you have to do is to meta edit it in the weap and bipd tag
Image
Not removing untill i finish my gir*from invader zim duh* forza 2 car. Started 6/17
Personal Project~{Twilightabout 50% done i hope}~
92% of teens have moved on to rap. If you are part of the 8% who still like tacos. Put this in your sig if you like tacos.
User avatar
xXxCocoFangxXx





Posts: 3756
Joined: Thu Sep 08, 2005 9:57 am
Contact:

Post by xXxCocoFangxXx »

That is not what he is asking though.

Sorry but I can't help you, I don't know how.
Image
User avatar
latinomodder





Posts: 1040
Joined: Tue Sep 20, 2005 5:51 pm
Location: Costa Rica

Post by latinomodder »

theres alot of scripts for that, your best bet is to go into sp maps and learn how they work.
Image
User avatar
JUSTNUKEIT





Posts: 133
Joined: Wed Feb 07, 2007 1:20 pm

Post by JUSTNUKEIT »

latinomodder wrote:theres alot of scripts for that, your best bet is to go into sp maps and learn how they work.
I don't know anything about scripting, but i don't think there is anything like that in sp. if so please give an example.
-Solve your problems with weapons of mass destruction!!!
h4xx3d





Posts: 57
Joined: Wed Feb 25, 2004 4:32 pm

Post by h4xx3d »

For clarification, I mean that when a player enters a certain area, they gain/lose health, or ammo. Or when X event occurs they gain/lose health/ammo, etc.

I will look around in SP maps to see what I can find and will share any progress. There seems to be very little descriptive information around these forums pertaining to scripting.
User avatar
Prey




Connoisseur Snitch! Pyre Articulatist 500

Posts: 1026
Joined: Wed Dec 27, 2006 6:49 am
Location: UK
Contact:

Post by Prey »

h4xx3d wrote:For clarification, I mean that when a player enters a certain area, they gain/lose health, or ammo. Or when X event occurs they gain/lose health/ammo, etc.

I will look around in SP maps to see what I can find and will share any progress. There seems to be very little descriptive information around these forums pertaining to scripting.
Really.
Halo 2 Prophet - Skin with ease with the simple 3D point and click interface.
Halo 3 Research Thread - Contribute to the research into Halo 3.
h4xx3d





Posts: 57
Joined: Wed Feb 25, 2004 4:32 pm

Post by h4xx3d »

Yes, I've read that, but it does not effectively tell you how to write your own scripts. It explains how to use the ones already within the game.
Supermodder911




Connoisseur Coroner

Posts: 1262
Joined: Sun Sep 03, 2006 10:43 pm
Location: Michigan

Post by Supermodder911 »

ive one simalar but not realy my script makes it so when a player enters a death zone it spawns ai sqads i dont know about health and all that
Image
C Wizzle
h4xx3d





Posts: 57
Joined: Wed Feb 25, 2004 4:32 pm

Post by h4xx3d »

Well, from Soldier of Lite's list, there is one that looks interesting:

[045](void damage_players)

Possibly a negative value would increase the players health? However, I've still no idea how to use this. If you could help me, it would be greatly appreciated :D

[One of the things I would like to do is make it so that when your flag is in enemy possession, you gain an overshield, or have unlimited ammo, or something similar. Is it possible to use flag possession as an event?]
Post Reply