Jump to content

Home

Effects


Mindtwistah

Recommended Posts

Can someone tell me how I can make these effects/boosts.

Force speed for 2 minutes

Increased intelligence

Increased strenght

 

For example, if I put it in a dialog it would be something like this:

 

-Come and try these pills. It will make you stronger[NPC]

-Ok, I want a pill [PC] [inject script that increases your strenght]

 

Or:

 

-Try these pills. It will make you faster [NPC]

-OK[PC] [inject scripts that gives you force speed for 2 minutes]

 

You get the point.

Link to comment
Share on other sites

Can someone tell me how I can make these effects/boosts.

 

Which game is this for? Assuming KOTOR 1:

 

Force speed for 2 minutes

 

// Boosts speed, Defense and +1 attack for 2 minutes.

void main() {
   effect eSpeed = EffectMovementSpeedIncrease(99);
          eSpeed = EffectLinkEffects(eSpeed, EffectACIncrease(4));
          eSpeed = EffectLinkEffects(eSpeed, EffectModifyAttacks(1));

   ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eSpeed, GetFirstPC(), TurnsToSeconds(2));
}

 

Increased intelligence

 

Gives 4 extra Intelligence for 2 minutes

void main() {
   effect eInt = EffectAbilityIncrease(ABILITY_INTELLIGENCE, 4);   
   ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eInt, GetFirstPC(), TurnsToSeconds(2));
}

 

Increased strenght

 

Gives 4 extra Strength for 2 minutes:

void main() {
   effect eStrength = EffectAbilityIncrease(ABILITY_STRENGTH, 4);   
   ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eStrength, GetFirstPC(), TurnsToSeconds(2));
}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...