Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Interaction range limit not working.  (Read 673 times)

Xangi

  • Bay Watcher
  • ɛkzændʒiː
    • View Profile
Interaction range limit not working.
« on: February 22, 2012, 02:17:20 am »

Hey guy's me again here. I;m trying to make an interaction with a range of 1, but in the testing arena it seems to have an infinite range. As well, my interaction with a range of 8 also has an infinite range. This isn't so horrible for the latter, but the former is supposed to be a special bite attack, so I don't really want it being used at range.

here is the code, if you want to try to test it.
Code: [Select]
[CE_CAN_DO_INTERACTION:VAMP_SCREAM]
[CDI:ADV_NAME:Haemorrhaging Scream]
[CDI:INTERACTION:VAMP_SCREAM]
[CDI:TARGET:A:CREATURE]
[CDI:TARGET_RANGE:A:8]
    [CDI:USAGE_HINT:ATTACK]
    [CDI:MAX_TARGET_NUMBER:A:20]
[CDI:VERB:scream:screams:NA]
[CDI:TARGET_VERB:begin to bleed profusely:begins to bleed profusely]
[CDI:WAIT_PERIOD:800]


[INTERACTION:VAMP_SCREAM]
[I_SOURCE:CREATURE_ACTION]
[I_TARGET:A:CREATURE]
[IT_LOCATION:CONTEXT_CREATURE]
[IT_MANUAL_INPUT:Select targets]
[I_EFFECT:ADD_SYNDROME]
[IE_TARGET:A]
[IE_IMMEDIATE]
[SYNDROME]
[CE_BLEEDING:SEV:10000:PROB:100:BP:BY_CATEGORY:ALL:ALL:RESISTABLE:SIZE_DILUTES:START:0:PEAK:1:END:5]
[CE_PAIN:SEV:5000:PROB:100:BP:BY_CATEGORY:ALL:ALL:RESISTABLE:SIZE_DILUTES:START:0:PEAK:1:END:3]


----------------------------------------------

[CE_CAN_DO_INTERACTION:LESSER_VAMPIRE_CURSE]
[CDI:ADV_NAME:Create Lesser Vampire]
[CDI:INTERACTION:LESSER_VAMPIRE_CURSE]
[CDI:TARGET:A:CREATURE]
[CDI:TARGET_RANGE:A:1]
    [CDI:USAGE_HINT:ATTACK]
    [CDI:MAX_TARGET_NUMBER:A:1]
[CDI:VERB:bite with your fangs:bites with its fangs:NA]
[CDI:TARGET_VERB:feel the call of the night:feels the call of the night]
[CDI:WAIT_PERIOD:1000]

<the interaction for this is basically a modded version of the example curse, in terms of the sources and everything at least>




PS: I did say I'd post this mod up, and I will, when I'm done with it, I'm planning on adding a bit more first. Also, if anyone knows if 2 vampires will actually fight each other normally in worldgen, I'd like to know, you can see why above.
Logged
A spooky ghost.

Previous mod (34.11):
<<Fear The Night!>>
http://www.bay12forums.com/smf/index.php?topic=103747.0

The Grackle

  • Bay Watcher
    • View Profile
Re: Interaction range limit not working.
« Reply #1 on: February 22, 2012, 05:00:11 am »

Try changing [CDI:TARGET:A:CREATURE] to [CDI:TARGET:A:LINE_OF_SIGHT]

For an interaction with adjacent creature try this:
[CDI:TARGET:B:TOUCHABLE]
[CDI:TARGET_RANGE:B:1]
Logged