Page 1 of 1

Quick ? about death regions.

Posted: Wed Mar 15, 2006 10:27 pm
by mnl1121
To add a death region i just need to add a region and name it "Deathregion1" (without quotes) and then Deathregion2, ect. right?

i think the deathregion is already in the .req but i gotta check b.c im sure that has to be in there.

RE: Quick ? about death regions.

Posted: Wed Mar 15, 2006 10:29 pm
by Teancum
use damageregions -- they don't have to be set up in the LUA at all --- just make the damage 5000 and it will kill anything.

RE: Quick ? about death regions.

Posted: Wed Mar 15, 2006 10:32 pm
by mnl1121
how do i make thoughs
wouldn't it just be easier to make deathregions. im sure i can do it. im getting very familiar with the LUA scripts. plus i dont know how to make damage higher.

so which should i do? death regions or damageregions? how do i add either or?


EDIT: oh found it. i gotta add AddDeathRegion("deathregion") under some line in the conquest LUA script. i just looked at Mustafar's conquest script as reference.

i just got one question. do i have to do AddDeathRegion("deathregion")

then AddDeathRegion("deathregion2")

AddDeathRegion("deathregion3")

ect...... or just deathregion and thats it like this: AddDeathRegion("deathregion")

????????????


EDIT #2: i just looked at other scripts too and confirmed the place and also i just right it once like this AddDeathRegion("deathregion")

and that it.

RE: Quick ? about death regions.

Posted: Wed Mar 15, 2006 10:45 pm
by [RDH]Zerted
I haven't been able to get AddDeathRegion() to work. Use damageregions, their differences are small enough to not matter. Of course, if you want to add and remove a dying region, like in the trash compactor, then use death regions.

RE: Quick ? about death regions.

Posted: Wed Mar 15, 2006 11:32 pm
by Teancum
there's a 'change type' button (or something similar when you're in region mode.

RE: Quick ? about death regions.

Posted: Thu Mar 16, 2006 4:00 pm
by mnl1121
ok ill do that b/c when i made the deathregion it didn't work. i think i may know why though. i gotta check it out.,

RE: Quick ? about death regions.

Posted: Thu Mar 16, 2006 8:24 pm
by Captain_Mazda
When I made my damage regions, they corrupted my entire Saleucami map. The map was all black and the spawns had disappeared. It was fixed when I removed them from my script. This is what my GCW script looks like:


AddWalkerType(3, 0) -- 3x2 (3 pairs of legs)
AddDamageRegion("pit")
AddDamageRegion("ravine")
AddDamageRegion("side1")
local weaponCnt = 1024
SetMemoryPoolSize("Aimer", 75)

If I remove the damage region lines, the map will work for GCW. I removed them for CW so I could take new screenshots earlier.

RE: Quick ? about death regions.

Posted: Thu Mar 16, 2006 8:36 pm
by Teancum
You don't add Damage Regions to the lua. Only Death regions.

RE: Quick ? about death regions.

Posted: Thu Mar 16, 2006 8:41 pm
by mnl1121
ok im still confused of how to even create damage regions and how to set the damage. is it all in zeroeditor?
just create a region call it damageregion or something, but what about the damage?

EDIT: oh and mazda thats EXACTLY what happened to me when i made an error when i wanted to add locals.

i put AddAIGoal (locals, 7) blah blah blah

locals should have been 3 which created a fatal error which made everything disappear. chaning that one word into 3 fix the whole thing


EDIT #2: i see what to do with damage regions. thx guys.

RE: Quick ? about death regions.

Posted: Fri Mar 17, 2006 3:16 am
by Captain_Mazda
That's strange, Tean. They still wouldn't work in the map after I removed the lines. Should the scales for damage be 100? It may be the "creature, vehicle, soldier" lines that need some sort of numerical value.

RE: Quick ? about death regions.

Posted: Fri Mar 17, 2006 3:23 am
by [RDH]Zerted
You set the damage value in ZeroEdit. Name your region something. Then set the region's properties to damageregion. ZeroEdit will now open a window on the right side of the screen with damageregion settings.

RE: Quick ? about death regions.

Posted: Fri Mar 17, 2006 4:02 pm
by mnl1121
yeah zerted i said i saw taht in my previous post. thx anyway.

RE: Quick ? about death regions.

Posted: Fri Mar 17, 2006 8:20 pm
by [RDH]Zerted
Your right you did. I'm not sure what I was thinking when I posted.