Go Back   Savage 2: A Tortured Soul Forum > Savage 2 Modding > Documentation

Notices

Documentation Post useful tutorials and other informative material.

Reply
 
Thread Tools Display Modes
Old 06-06-2011, 08:20 PM   #1
rohezal

rohezal's Avatar
 
Join Date: Mar 2008
Posts: 2,610
Thanks: 112
Thanked 136 Times in 106 Posts
Default NPC Documentation

npc
Unnamed Critter
DESCRIPTION
description
level
maxhealth
maxmana
maxstamina
healthregen
manaregen
staminaregen
armor
experiencereward
goldreward
aggroradius
multiaggroproc
multiaggroradius
initialjob
soul
hitbymeleeeffectpath
hitbyrangedeffectpath
itemdrop
commanderscale
effectscale
selectionradius
commanderportraitpath
minimapiconsize
minimapiconpath
iconpath
pushmultiplier
impulse
toggle
passive

Unrecognized ability type
projectile
trace
trigger
snap
self
Unrecognized attack type


ability
attackpitchmax
attackpitchmin
attackyawmax
attackyawmin
attackwidthmax
attackwidthmin
attackheightmax
attackheightmin
radius
healthcost
manacost
cooldown
impact
activation
attack
proc
icon
maxdamage
mindamage
stun
stack
meleeimpact
speedaddmult
speedmult
speedadd
attackspeedaddmult
attackspeedmult
attackspeedadd
damageaddmult
damagemult
damageadd
healthregenaddmult
healthregenmult
healthregenadd
manaregenaddmult
manaregenmult
manaregenadd
staminaregenaddmult
staminaregenmult
staminaregenadd
armoraddmult
armormult
armoradd
ammoaddmult
ammomult
ammoadd
affect
__________________

http://xs229.xs.to/xs229/08295/image_get.php939.jpeg

I love VOIP
sing: "base, base, base, base, base, base, base"

Why only 15 year old girls? Since 4 Years, damn I'm doing something wrong...

One day I will find out who is responsible for the K2 scripting "language" and the modding "support". And then...

rohezal is offline   Reply With Quote
Old 06-06-2011, 09:19 PM   #2
rohezal

rohezal's Avatar
 
Join Date: Mar 2008
Posts: 2,610
Thanks: 112
Thanked 136 Times in 106 Posts
Default

Examples:

<ability
name="Poison"
type="impulse"
attack="projectile"
activation="500"
impact="700"
cooldown="3000"
range="5000"
anim="attack"
weight="200"
>
<projectile
speed="5000"
life="1500"
model="effects/attack.mdf"
traileffect="effects/ice_bolt_trail.effect"
scale="2"
/>
<effect
mindamage="12"
maxdamage="20"
effect="effects/ice_bolt_impact.effect"
duration="11000"
healthregenadd="-20" [2]
stack="true"

/>
</ability>

healthregenadd adds a constant value to health regen. It can be negative to deal damage over time.
healthregenmult multiplies a value to the health regeneration. Different npc effects stacks and I know way to prevent it. Remember -20 * -20 = 140*healthgen. Instant full^^
healthregenaddmult not tried it
__________________

http://xs229.xs.to/xs229/08295/image_get.php939.jpeg

I love VOIP
sing: "base, base, base, base, base, base, base"

Why only 15 year old girls? Since 4 Years, damn I'm doing something wrong...

One day I will find out who is responsible for the K2 scripting "language" and the modding "support". And then...

rohezal is offline   Reply With Quote
Old 06-07-2011, 03:37 PM   #3
PetzI

PetzI's Avatar
 
Join Date: Jun 2007
Posts: 1,814
Thanks: 18
Thanked 72 Times in 50 Posts
Default

All of those actually WORK?
PetzI is offline   Reply With Quote
Old 06-07-2011, 08:52 PM   #4
rohezal

rohezal's Avatar
 
Join Date: Mar 2008
Posts: 2,610
Thanks: 112
Thanked 136 Times in 106 Posts
Default

Well I ripped it from the K2.dll file, so I think yes .
__________________

http://xs229.xs.to/xs229/08295/image_get.php939.jpeg

I love VOIP
sing: "base, base, base, base, base, base, base"

Why only 15 year old girls? Since 4 Years, damn I'm doing something wrong...

One day I will find out who is responsible for the K2 scripting "language" and the modding "support". And then...

rohezal is offline   Reply With Quote
Old 06-14-2011, 09:56 PM   #5
Izman

 
Join Date: Apr 2009
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I can't get the "armor" value to do anything, I set it to 9999 and they still take full damage from players :/

Also, how do you extract the K2.dll? (If you can't openly say it, PM me?)

EDIT: Nope I'm derp, had the armor-piercing variable set to 1.000 lol. Working as intended...

Second question: is there any other jobs for 'initialjob' than guardpos?

Last edited by Izman; 06-14-2011 at 10:17 PM.
Izman is offline   Reply With Quote
Old 06-15-2011, 09:08 PM   #6
rohezal

rohezal's Avatar
 
Join Date: Mar 2008
Posts: 2,610
Thanks: 112
Thanked 136 Times in 106 Posts
Default

I "ripped" it by going through it with a text editor (notepad++) and searched a know term and looked what was around it.

Did the same thing for guardpos. Did not found anything, but maybe i just overlooked it. Maybesome someone can look at HoN but I'm not shure if its the same K2 engine, if they implemented it in both.
__________________

http://xs229.xs.to/xs229/08295/image_get.php939.jpeg

I love VOIP
sing: "base, base, base, base, base, base, base"

Why only 15 year old girls? Since 4 Years, damn I'm doing something wrong...

One day I will find out who is responsible for the K2 scripting "language" and the modding "support". And then...

rohezal is offline   Reply With Quote
Old 07-19-2011, 11:30 PM   #7
rohezal

rohezal's Avatar
 
Join Date: Mar 2008
Posts: 2,610
Thanks: 112
Thanked 136 Times in 106 Posts
Default

healthregen and armor are not working. can be applied by an attack with healthregenadd
__________________

http://xs229.xs.to/xs229/08295/image_get.php939.jpeg

I love VOIP
sing: "base, base, base, base, base, base, base"

Why only 15 year old girls? Since 4 Years, damn I'm doing something wrong...

One day I will find out who is responsible for the K2 scripting "language" and the modding "support". And then...

rohezal is offline   Reply With Quote
Old 07-19-2011, 11:53 PM   #8
rohezal

rohezal's Avatar
 
Join Date: Mar 2008
Posts: 2,610
Thanks: 112
Thanked 136 Times in 106 Posts
Default

ok armor can be set on an npc via armorad. but it works on player. healthregenadd is working on both.
__________________

http://xs229.xs.to/xs229/08295/image_get.php939.jpeg

I love VOIP
sing: "base, base, base, base, base, base, base"

Why only 15 year old girls? Since 4 Years, damn I'm doing something wrong...

One day I will find out who is responsible for the K2 scripting "language" and the modding "support". And then...

rohezal is offline   Reply With Quote
Old 07-20-2011, 01:26 AM   #9
rohezal

rohezal's Avatar
 
Join Date: Mar 2008
Posts: 2,610
Thanks: 112
Thanked 136 Times in 106 Posts
Default

Useful command

AddNpcAggro npcNameOrIndex targetIndex aggroAmount

I used 1000
__________________

http://xs229.xs.to/xs229/08295/image_get.php939.jpeg

I love VOIP
sing: "base, base, base, base, base, base, base"

Why only 15 year old girls? Since 4 Years, damn I'm doing something wrong...

One day I will find out who is responsible for the K2 scripting "language" and the modding "support". And then...

rohezal is offline   Reply With Quote
Old 07-20-2011, 05:18 PM   #10
rohezal

rohezal's Avatar
 
Join Date: Mar 2008
Posts: 2,610
Thanks: 112
Thanked 136 Times in 106 Posts
Default

Radius works
__________________

http://xs229.xs.to/xs229/08295/image_get.php939.jpeg

I love VOIP
sing: "base, base, base, base, base, base, base"

Why only 15 year old girls? Since 4 Years, damn I'm doing something wrong...

One day I will find out who is responsible for the K2 scripting "language" and the modding "support". And then...

rohezal is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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



All times are GMT. The time now is 04:45 PM.