Aller au contenu

Photo

Start of round event


  • Veuillez vous connecter pour répondre
8 réponses à ce sujet

#1
luna_hawke

luna_hawke
  • Members
  • 88 messages
Is there any script that can be plugged into that generally marks the start of round for a player?
Or basically I want to be able to set a variable at the start of each round for a player.

I imagine there must be.  I just can't think of any.

Thanks

#2
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
no

heartbeat, but each creature has it's own round schedule, and initiative is used to determine when that round schedule starts.

#3
Shaun the Crazy One

Shaun the Crazy One
  • Members
  • 183 messages

painofdungeoneternal wrote...

no

heartbeat, but each creature has it's own round schedule, and initiative is used to determine when that round schedule starts.


Correct me if I'm wrong but isen't that what the area heartbeat script is.

#4
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
No it's not, the heartbeat happens once per round. Could be anywhere during the creatures attacking sequence, and even at the beginning every once in a while, but there is no correlation beyond that.

Each creature has it's own sequence of attacks on a 6 second schedule ( or rather 3 flurries during that 6 seconds ). Initiative creates a delay for when this sequence starts ( which ensures this is not a game based on the players reflexes but on the creatures stats ), but each creatures rounds aren't syncronized to the other creatures. Technically while it's different, the effect ends up being something which follows the spirit of the D&D round based system but adapted to the fact it's a real time game.

#5
Shaughn78

Shaughn78
  • Members
  • 637 messages
With the user defined events you can have access to the end of a combat round if that helps.

#6
luna_hawke

luna_hawke
  • Members
  • 88 messages
Thanks Shaughn, that would help

#7
luna_hawke

luna_hawke
  • Members
  • 88 messages
Well one more question. Is there a default user defined event script for players?
If not, how does one go about setting one?

Thanks

#8
Shaughn78

Shaughn78
  • Members
  • 637 messages
There is a user defined script in the module properties. You can check the official games and pull out their k_mod_ud to see what they do.

#9
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
You'd need to test it's firing each round, i suspect it's NPC only. ( i think there is a var set on the creatures which will allow triggering this --> NW_FLAG_END_COMBAT_ROUND_EVENT , and it's coming from the AI, and its using EVENT_END_COMBAT_ROUND )