Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Creating Snakes  (Read 1037 times)

The Hidden

  • Bay Watcher
    • View Profile
Creating Snakes
« on: January 08, 2008, 07:06:00 pm »

Is it possible to create snakes?

If so, any easy ideas on how to?

[ January 08, 2008: Message edited by: The Hidden ]

Logged
hat''s it for now.

Railick Stonemane

  • Bay Watcher
    • View Profile
    • Stonemane Library
Re: Creating Snakes
« Reply #1 on: January 08, 2008, 07:08:00 pm »

The easiest thing I can tell you to do is go in to the critty files in raws folder and find something like a deer. copy that and paste it to the end. Change all the names from deer to snake then remove all the body part tags for the arms and legs ect. Then if you want you can copy a venom attack from a spider or scorpian if you want the snake to be venom filled.
Logged
"And call a dog a cow-that don't change the way the thing'll taste!" Bruenor Battlehammer

http://railickstonemane.wordpress.com/
http://stonemane.hostei.com/

Wiles

  • Bay Watcher
    • View Profile
Re: Creating Snakes
« Reply #2 on: January 08, 2008, 09:42:00 pm »

If you look in the body_default raw you will see some body parts that can be used for a snake, like BASIC_2PARTBODY and TAIL_STANCE
Logged

The Hidden

  • Bay Watcher
    • View Profile
Re: Creating Snakes
« Reply #3 on: January 09, 2008, 01:36:00 am »

Here's what I got so far.

code:
[CREATURE:SNAKE_TEST]
   [NAME:snake:snakes:snake]
   [TILE:'s'][COLOR:6:0:0]
   [LARGE_ROAMING]
   [POPULATION_NUMBER:1:10]
   [CLUSTER_NUMBER:1:2]
   [EXTRACT:snake venom:7:0:0]
   [EXTRACT_VALUE:75]
   [EXTRACT_PARALYZE]
   [EXTRACT_ANTIDOTE:snake antivenin:7:0:0:100]
   [VERMINHUNTER][VERMIN_HATEABLE]
   [PETVALUE:150]
   [PREFSTRING:grace]
   [BODY:BASIC_3PARTBODY:TAIL_STANCE:2EYES:SNOUT_NOSMELL:TONGUE_SMELL:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:MOUTH]
   [MAXAGE:10:15]
   [ATTACK:MAIN:BYTYPE:MOUTH:bite:bites:1:2:GORE][ATTACKFLAG_CANLATCH][SPECIALATTACK_INJECT_EXTRACT:50:100]
   [SIZE:3]
   [FAT:1]
   [DIURNAL]
   [BIOME_ANY_DESERT]
   [BIOME_ANY_WETLAND]
   [BIOME_NOT_FREEZING]
   [STANDARD_FLESH]
   [HOMEOTHERM:10067]
   [LAYERING:100]
   [SWIMS_INNATE][SWIM_SPEED:2500]

Also, here's the body parts.

code:
[BODY:TONGUE_SMELL]
[BP:TONGUE:tongue][CONTYPE:HEAD][MOUTH][SMELL][SMALL][EMBEDDED][APERTURE]

[BODY:BASIC_3PARTBODY]
[BP:UB:upper body][UPPERBODY]
[BP:LB:lower body][CON:UB][LOWERBODY]
[BP:HD:head][CON:UB][HEAD]


I'm going to test it right now, does anyone have anymore suggestions?


Edit:  Finished testing, it worked quite better than I expected it to.  I tested my snake on some humans, paralyzed one of them, but got killed pretty quickly.


Another note; since the snake has no hands, it may not be able to eat and/or drink anything.  So either [NO_EAT] and [NO_DRINK] for this creature may also be recommended, or TAIL_STANCE could also be edited for grasping.  This maybe only important if you want to play as a snake in adventure mode or just want to mod it in a entity.

[ January 09, 2008: Message edited by: The Hidden ]

Logged
hat''s it for now.

Zonk

  • Bay Watcher
    • View Profile
Re: Creating Snakes
« Reply #4 on: January 09, 2008, 06:45:00 am »

I was wondering about the lack of snakes in the game too. The Hidden, would you allow me to use this snake and it's body type in a mod I'm currently working on?

EDIT: Also, how would you people create a constrictor snake like a python or boa? Altering the body type so it's lower body can grasp and squeeze people? I don't think that can be done...

By the way, I also checked the raws and noticed there was a very snake-ish creature, the SEA SERPENT, which had:
[BODY:BASIC_2PARTBODY:BASIC_HEAD:FRONT_BODY_FLIPPERS:REAR_BODY_FLIPPERS:TAIL:
2EYES:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:MOUTH]

[ January 09, 2008: Message edited by: Zonk ]

[ January 09, 2008: Message edited by: Zonk ]

Logged

Wiles

  • Bay Watcher
    • View Profile
Re: Creating Snakes
« Reply #5 on: January 09, 2008, 07:16:00 am »

quote:
EDIT: Also, how would you people create a constrictor snake like a python or boa? Altering the body type so it's lower body can grasp and squeeze people? I don't think that can be done...

In my mod I just used [ATTACK:MAIN:BYTYPE:GRASP:constrict:constricts:1:4:BLUDGEON][ATTACKFLAG_WITH]

Not exactly the most elegant solution, but it works.

You could also use a part that "grasps" so they could wrestle

[BP:UB:upper body][UPPERBODY]
[BP:MB:mid body][CON:UB][LOWERBODY]
[BP:LB:lower body][CON:MB][GRASP]
[BP:TAIL:tail][CON:LB][STANCE]
[BP:HD:head][CON:UB][HEAD]

[ January 09, 2008: Message edited by: Wiles ]

Logged

The Hidden

  • Bay Watcher
    • View Profile
Re: Creating Snakes
« Reply #6 on: January 09, 2008, 03:10:00 pm »

quote:
Originally posted by Zonk:
[QB]I was wondering about the lack of snakes in the game too. The Hidden, would you allow me to use this snake and it's body type in a mod I'm currently working on?

Yeah, you can use it.


I also wished that poison didn't just paralyze it's victims, but it could also be fatal as well.

[ January 09, 2008: Message edited by: The Hidden ]

Logged
hat''s it for now.

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: Creating Snakes
« Reply #7 on: January 09, 2008, 04:45:00 pm »

The lack of snakes comes from it not really understandable that they can't be "grounded" like regular creatures.  I haven't coded a mechanic for that yet, but making their upper body a stance part might mimic it.
Logged
The Toad, a Natural Resource:  Preserve yours today!