lfnetwork.com mark read register faq members calendar

Thread: Script: adjust current vitality?
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 09-27-2007, 10:41 PM   #1
Vox Kalam
Rookie
 
Vox Kalam's Avatar
 
Join Date: Apr 2005
Location: NYC
Posts: 112
Script: adjust current vitality?

Can it be done, without altering the MAXIMUM vitality?
Vox Kalam is offline   you may: quote & reply,
Old 09-27-2007, 11:05 PM   #2
GameGeeks
Rookie
 
GameGeeks's Avatar
 
Join Date: Sep 2007
Posts: 54
cant you just use the editor to do that? or a code?


GameGeeks is offline   you may: quote & reply,
Old 09-27-2007, 11:20 PM   #3
Vox Kalam
Rookie
 
Vox Kalam's Avatar
 
Join Date: Apr 2005
Location: NYC
Posts: 112
No, I need a script to make a character wounded, down to like 1vp, in-convo.
Vox Kalam is offline   you may: quote & reply,
Old 09-27-2007, 11:21 PM   #4
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,767
Current Game: FTL
Forum Veteran Helpful! Notable contributor 
You mean like EffectHeal and EffectDamage?

Code:
void main() {
  object oTarget2Heal=GetObjectByTag("somebody");
  object oTarget2Hurt=GetObjectByTag("somebody_else");
  
  effect eHeal=EffectHeal(10);   // heal 10 VP
  effect eHurt=EffectDamage(10); // damage 10 VP
 
  ApplyEffectToObject(DURATION_TYPE_INSTANT, eHeal, oTarget2Heal);
  ApplyEffectToObject(DURATION_TYPE_INSTANT, eHurt, oTarget2Hurt);
}
tk102 is offline   you may: quote & reply,
Old 09-28-2007, 12:04 AM   #5
Vox Kalam
Rookie
 
Vox Kalam's Avatar
 
Join Date: Apr 2005
Location: NYC
Posts: 112
perfect, thanks.
Vox Kalam is offline   you may: quote & reply,
Old 03-18-2009, 11:55 PM   #6
GeorgNihilus
Forumite
 
GeorgNihilus's Avatar
 
Join Date: Mar 2007
Location: Somewhere in the Outer Rim
Posts: 602
Current Game: Skyrim
Cool Guy Now if I ...

So ... how can I script for a poisoning effect on my PC and let's say Atton for 10 seconds?? with 10 VP loss?

thanks


TSL Mods
Nar Shaddaa hidden complex http://knightsoftheoldrepublic.filef..._Complex;91257
Mandalorian camo Armors in-game http://lucasforums.com/showthread.php?t=204159
Telos polar plateau sidequest 1.2 http://lucasforums.com/showthread.php?t=202436

KotOR Mods
A lost sith in a nameless world http://knightsoftheoldrepublic.filef...ss_World;96040
GeorgNihilus is offline   you may: quote & reply,
Old 03-19-2009, 10:20 AM   #7
stoffe
Mostly dormant
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,834
Helpful! 10 year veteran! Notable contributor 
Quote:
Originally Posted by GeorgNihilus View Post
So ... how can I script for a poisoning effect on my PC and let's say Atton for 10 seconds?? with 10 VP loss?
First you'd need a custom poison that behaves in that particular way. You can add one by adding a new line in the poison.2da file.

Then you can apply it with a script like:
Code:
void main() {
    object oPC = GetFirstPC();
    object oAR = GetObjectByTag("Atton");
    
    effect ePoison = EffectPoison(999);
    
    ApplyEffectToObject(DURATION_TYPE_PERMANENT, ePoison, oPC); 
    ApplyEffectToObject(DURATION_TYPE_PERMANENT, ePoison, oAR);
}
Replace 999 with the line number from the poison.2da file that contains your new poison type. (Note that poison effects should generally be applied with a Permanent duration since the poison types have their own built-in duration that's set in the poison.2da file.)


mt
stoffe is offline   you may: quote & reply,
Old 03-19-2009, 11:51 AM   #8
GeorgNihilus
Forumite
 
GeorgNihilus's Avatar
 
Join Date: Mar 2007
Location: Somewhere in the Outer Rim
Posts: 602
Current Game: Skyrim
Wink Alright ...

Quote:
Originally Posted by stoffe View Post
(Note that poison effects should generally be applied with a Permanent duration since the poison types have their own built-in duration that's set in the poison.2da file.)
Duration was one of my doubts ... plus the poisoning animation but it fires right there ...

thanks again Stoffe ...


TSL Mods
Nar Shaddaa hidden complex http://knightsoftheoldrepublic.filef..._Complex;91257
Mandalorian camo Armors in-game http://lucasforums.com/showthread.php?t=204159
Telos polar plateau sidequest 1.2 http://lucasforums.com/showthread.php?t=202436

KotOR Mods
A lost sith in a nameless world http://knightsoftheoldrepublic.filef...ss_World;96040
GeorgNihilus is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > Script: adjust current vitality?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:41 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.