Aller au contenu

Photo

2 problems


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

#1
jsd313

jsd313
  • Members
  • 184 messages
First problem is with difficulty.xls. I have been playing with the settings and everything is nice except melee creatures are not doing no where near the damage of casters, throwing my mod off balance.

The next thing is how would I make this script fill the hp/mana/sta of the party not just whoever is selected when I reenter the area? Also can I add something in here to clear all cooldowns for abilties and potions, etc..?

[dascript]
#include "effects_h"
void main()
{
   int nEventHandled = FALSE;
   switch( GetEventType( GetCurrentEvent() ))
   {
      case EVENT_TYPE_AREALOAD_PRELOADEXIT:
       HealPartyMembers();
       UpdateCreatureProperty(OBJECT_SELF, PROPERTY_DEPLETABLE_MANA_STAMINA, 1000.0f, PROPERTY_VALUE_CURRENT);
           
   break;
   }
   if ( !nEventHandled ) HandleEvent( GetCurrentEvent(), RESOURCE_SCRIPT_AREA_CORE );
}
[/dascript]

Modifié par jsd313, 10 janvier 2010 - 10:15 .


#2
Craig Graff

Craig Graff
  • Members
  • 608 messages
HealPartyMembers(FALSE, TRUE);

Then you don't need the UpdateCreatureProperty call.

#3
jsd313

jsd313
  • Members
  • 184 messages
I saw you had worked on some of these scripts as I looked through them :) I was playing with that line, gonna try that out now. Any idea about the cooldown reset?



Thanks

#4
jsd313

jsd313
  • Members
  • 184 messages
Yeah that works beatiful, thank you Craig.

This script for anyone who might need something like it will top off the health/mana/stamina and clear any injuries of the party upon area entrance.

[dascript]
#include "effects_h"
void main()
{
   int nEventHandled = FALSE;
   switch( GetEventType( GetCurrentEvent() ))
   {
      case EVENT_TYPE_AREALOAD_PRELOADEXIT:
       HealPartyMembers(FALSE, TRUE);
       Injury_RemoveAllInjuriesFromParty();
           
   break;
   }
   if ( !nEventHandled ) HandleEvent( GetCurrentEvent(), RESOURCE_SCRIPT_AREA_CORE );
}
[/dascript]

Modifié par jsd313, 10 janvier 2010 - 10:51 .


#5
jsd313

jsd313
  • Members
  • 184 messages
Anyone have an idea on reseting ability/potion Cooldowns in this script?



And also still working on the difficulty thing. I have to scale damage resistance way down to get melee creatures to hit hard but then casters are 1 shotting me. I can get it to where the casters are balanced and the melee hit like girls... I'm stumped here.

#6
Craig Graff

Craig Graff
  • Members
  • 608 messages
Have you tried Ability_SetCooldown yet? I seem to recall this can reset things, but I may be mistaken.

#7
jsd313

jsd313
  • Members
  • 184 messages
No I haven't but thinking about it how would I be able to call all cooldowns at once?