Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 9/3/17 18:41

Scarlett
Member
From: Jamaica
Registered: 25/11/15

How to make a character immune to particle attacks

Does anyone know how to make a character immune to any form of weapon base attacks like the bots at the conversion center interior level?

Offline

#2 10/3/17 9:42

s10k
Member
From: Portugal
Registered: 14/1/07
Website

Re: How to make a character immune to particle attacks

http://wiki.oni2.net/BSL:Functions

chr_weapon_immune [ai_name:string | script_id:int] - makes a character weapon immune - chr_weapon_immune(vat_bot_1); // chr_weapon_immune 0

That should do it.

Offline

#3 10/3/17 22:26

Scarlett
Member
From: Jamaica
Registered: 25/11/15

Re: How to make a character immune to particle attacks

Oh thank you smile but too bad this is not part of the ONCC

Offline

#4 11/3/17 7:53

Iritscen
Moderator
From: NC, USA
Registered: 22/10/07

Re: How to make a character immune to particle attacks

Well, not the ONCC, but the BINACHAR that represents a specific character can at least be set up to call the chr_weapon_immune or chr_boss_shield functions upon spawn (see <Scripts> section of http://wiki.oni2.net/XML:BINA/OBJC/CHAR).


byproducts are fine, but where's the beef?

Offline

#5 11/3/17 14:18

Scarlett
Member
From: Jamaica
Registered: 25/11/15

Re: How to make a character immune to particle attacks

Awesome!! Then I guess I add something like that for level0_final so the character will have the immunity in any level. I am making a character that was inspired by gengar and mismagius. But since it is impossible to make physical contact not affect character apart from using super shield, which I don't want, so I want to make it just immune to weapons and throws but have weak physical damage and have very low evade chances and low hp, like 200 or maybe lower. However has strong particle attacks and dodge a lot

Offline

#6 11/3/17 14:22

s10k
Member
From: Portugal
Registered: 14/1/07
Website

Re: How to make a character immune to particle attacks

Yeah you can probably use the global folder so the script is executed in every level:
http://wiki.oni2.net/IGMD/global

Probably, although doesn't work with player's shapeshifter?

Last edited by s10k (11/3/17 18:07)

Offline

#7 11/3/17 14:32

Scarlett
Member
From: Jamaica
Registered: 25/11/15

Re: How to make a character immune to particle attacks

Oh yeah that's another thing as well. It only works on the character with the name it is assigned to

Offline

Board footer

Powered by FluxBB