Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: getting an error with a new attack  (Read 1063 times)

nunix

  • Bay Watcher
    • View Profile
getting an error with a new attack
« on: March 02, 2008, 04:55:00 pm »

At least, I THINK this is the case; my errorlog.txt is reading:

Unrecognised damage token:10

and this is the only thing I've added that could be it:

[ATTACK:MAIN:BYTYPE:GRASP:BYTOKEN:HEAD:headbutt:headbutts:10:20:BLUDGEON]

What's tripping it up here?

Logged

Sean Mirrsen

  • Bay Watcher
  • Bearer of the Psionic Flame
    • View Profile
Re: getting an error with a new attack
« Reply #1 on: March 02, 2008, 05:09:00 pm »

You have a BYTYPE:GRASP and BYTOKEN:HEAD in the same line.

Judging by the attack, I guess the latter is the one you need. Using both messes up the parser.

Logged
Multiworld Madness Archive:
Game One, Discontinued at World 3.
Game Two, Discontinued at World 1.

"Europe has to grow out of the mindset that Europe's problems are the world's problems, but the world's problems are not Europe's problems."
- Subrahmanyam Jaishankar, Minister of External Affairs, India

nunix

  • Bay Watcher
    • View Profile
Re: getting an error with a new attack
« Reply #2 on: March 02, 2008, 05:24:00 pm »

Hey there we go. I thought BYTOKEN was a subthing of BYTYPE.. or maybe it is but not in that instance. In any case, worked a treat, thanks. =)
Logged

Sean Mirrsen

  • Bay Watcher
  • Bearer of the Psionic Flame
    • View Profile
Re: getting an error with a new attack
« Reply #3 on: March 03, 2008, 04:07:00 am »

BYTYPE means an attack will seek a random body part tagged with the specific type, like HEAD, UPPERBODY, LOWERBODY, STANCE, or GRASP.
BYTOKEN means the attack will look for a part with a specific ID token, like HD for head, LUA for left upper arm, etc.

It's important to note that more specialized type tags don't work with BYTYPE. DIGIT or FLIER for example, yield an attack with the head. I'm not sure about the rest.

Logged
Multiworld Madness Archive:
Game One, Discontinued at World 3.
Game Two, Discontinued at World 1.

"Europe has to grow out of the mindset that Europe's problems are the world's problems, but the world's problems are not Europe's problems."
- Subrahmanyam Jaishankar, Minister of External Affairs, India