Mindtwistah Posted June 13, 2007 Share Posted June 13, 2007 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 More sharing options...
stoffe Posted June 13, 2007 Share Posted June 13, 2007 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 More sharing options...
Mindtwistah Posted June 13, 2007 Author Share Posted June 13, 2007 Thank you very very much Stoffe Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.