Oni Central Forum

A forum for the Oni community

You are not logged in.

#26 06/09/09 20:06

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/07

Re: Any Requests?

Mukade wrote:

thing is, ive tried chump, and it only follows, doesnt seem to have combat logic, since it doesnt attack yo or the enemy sad

Probably some ai state. chr_peace or something. You need to disable it. smile


Iritscen: roll
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours

Offline

#27 06/09/09 21:06

myplea1
Member
From: Ottawa,Canada
Registered: 05/25/09

Re: Any Requests?

ya ive been looking around for that command cause it would be cool to just have ur chunp killing everyone for u


Awol

Offline

#28 06/09/09 21:06

Mukade
Member
From: Ottawa, Ontario - Canada
Registered: 05/29/07

Re: Any Requests?

yeah so they can clap and cheer while getting beaten up


"He looks mean enough to tear my arm off and beat me to death with it. In fact, he looks mean enough to tear his OWN arm off and beat me to death with it."

Offline

#29 06/12/09 08:06

love_Oni
Member
From: Da Nang, Vietnam
Registered: 05/10/08

Re: Any Requests?

Hey guys, I'm trying to make a script but I'm stuck by this problem

var int count=0;
func main(void)
{
chr_teleport 0 0
ai2_spawn hall_striker_2
chr_teleport hall_striker_2 0
fork rebirth
}

func rebirth
{
chr_wait_health hall_striker_2 0
sleep 300
chr_full_health hall_striker_2
count=count+1;
fork rebirth
}

My plan is to make the striker rebirth each time he dies and score 1 point for me. But after he died, he just stand still, he doesn't attack me, but he still look at me even I try to run to other place. How can I make him to attack me?
(put that script into level 2 and try)

Last edited by love_Oni (06/12/09 08:06)


The Boy Who Knew Too Much tongue

Offline

#30 06/12/09 09:06

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

Re: Any Requests?

It's a known fact (bug?) that once a character dies, they lose their AI.  Looking at a script I started writing once, I got around this problem by using chr_unkillable() to make the AI unable to die (he can still lose HP, though).  I then monitored his health, and if it went below a certain level I counted that as a "death" and "respawned" him (teleported him back to his starting position).


Check out the Anniversary Edition Seven at ae.oni2.net!

Offline

#31 06/12/09 16:06

Ire Yosuke
Member
Registered: 05/23/09
Website

Re: Any Requests?

Hmm. I do have an Idea as for spawn coordinates. Each bullet leaves a mark yes? The system has to know where to place a mark, use those then!


"There are two things that cannot be ignored in life. One is a cannon, the other, a cannon ball." - Commander Patrick "Bombard" Bomba

Offline

#32 06/12/09 16:06

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

Re: Any Requests?

The coordinates of decals (bullet marks) are not accessible in BSL.


Check out the Anniversary Edition Seven at ae.oni2.net!

Offline

#33 06/12/09 16:06

Ire Yosuke
Member
Registered: 05/23/09
Website

Re: Any Requests?

Then how about droping weapon? Are those avalible ?


"There are two things that cannot be ignored in life. One is a cannon, the other, a cannon ball." - Commander Patrick "Bombard" Bomba

Offline

#34 06/12/09 16:06

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

Re: Any Requests?

The location of weapons?  Nope, can't get those either.  Flags are pretty much the only spots you can work with.  We've gotten accustomed to just adding them into the BINACJBOFlag file for a given level; it's pretty easy with the new XML export/import feature in OniSplit.


Check out the Anniversary Edition Seven at ae.oni2.net!

Offline

#35 06/12/09 16:06

Ire Yosuke
Member
Registered: 05/23/09
Website

Re: Any Requests?

Then I have no Ideas. Just waiting for results then :3 . God that would be so much fun!


"There are two things that cannot be ignored in life. One is a cannon, the other, a cannon ball." - Commander Patrick "Bombard" Bomba

Offline

#36 06/12/09 17:06

Mukade
Member
From: Ottawa, Ontario - Canada
Registered: 05/29/07

Re: Any Requests?

If you want to create a flag heres how
i haven't tried it, but go into developpers mod and type in
chr_debug_characters=1
in the window that pops up, you should show the coordinates of where ur standing. If you open up the BINACJBOFlags
copy one of the flags (any one) chnge the flag ID to sumthin that hasnt been used, and change the coords to where ur standing i beleive this creates a new flag... if thats what u wanted, im not sure what u want tongue


"He looks mean enough to tear my arm off and beat me to death with it. In fact, he looks mean enough to tear his OWN arm off and beat me to death with it."

Offline

#37 06/12/09 20:06

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/07

Re: Any Requests?

Mukade wrote:

If you want to create a flag heres how
i haven't tried it, but go into developpers mod and type in
chr_debug_characters=1
in the window that pops up, you should show the coordinates of where ur standing. If you open up the BINACJBOFlags
copy one of the flags (any one) chnge the flag ID to sumthin that hasnt been used, and change the coords to where ur standing i beleive this creates a new flag... if thats what u wanted, im not sure what u want tongue

That is exactly what you need to do. smile


Iritscen: roll
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours

Offline

#38 06/12/09 21:06

love_Oni
Member
From: Da Nang, Vietnam
Registered: 05/10/08

Re: Any Requests?

Iritscen wrote:

It's a known fact (bug?) that once a character dies, they lose their AI.  Looking at a script I started writing once, I got around this problem by using chr_unkillable() to make the AI unable to die (he can still lose HP, though).  I then monitored his health, and if it went below a certain level I counted that as a "death" and "respawned" him (teleported him back to his starting position).

I tried chr_unkillable(), but it doesn't work.

This is what I tried:

var int count=0;
    func main(void)
    {
    chr_teleport 0 0
    ai2_spawn hall_striker_2
    chr_teleport hall_striker_2 0
    fork rebirth
    }

    func rebirth
    {
    chr_wait_health hall_striker_2 0
    chr_unkillable hall_striker_2 1
    sleep 300
    chr_full_health hall_striker_2
    count=count+1;
    chr_unkillable hall_striker_2 0
    fork rebirth
    }

Last edited by love_Oni (06/12/09 21:06)


The Boy Who Knew Too Much tongue

Offline

#39 06/12/09 23:06

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/07

Re: Any Requests?

chr_unkillable makes it so their health can never go below 1. So...your function has a lot of problems with it. smile


Iritscen: roll
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours

Offline

#40 06/13/09 03:06

love_Oni
Member
From: Da Nang, Vietnam
Registered: 05/10/08

Re: Any Requests?

So where should I try to correct?
EDIT: do you mean like this?

var int count=0;
        func main(void)
        {
        chr_teleport 0 0
        ai2_spawn hall_striker_2
        chr_teleport hall_striker_2 0
        fork rebirth
        }

        func rebirth
        {
        chr_wait_health hall_striker_2 2
        chr_unkillable hall_striker_2 1
        sleep 300
        chr_full_health hall_striker_2
        count=count+1;
        chr_unkillable hall_striker_2 0
        fork rebirth
        }

Last edited by love_Oni (06/13/09 03:06)


The Boy Who Knew Too Much tongue

Offline

#41 06/13/09 08:06

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/07

Re: Any Requests?

    var int count=0;
        func main(void)
        {
        chr_teleport 0 0
        ai2_spawn hall_striker_2
        chr_teleport hall_striker_2 0
        chr_unkillable hall_striker_2 1
        fork rebirth
        }

        func rebirth
        {
        chr_wait_health hall_striker_2 1
        sleep 300
        chr_full_health hall_striker_2
        count=count+1;
        fork rebirth
        }

Iritscen: roll
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours

Offline

#42 06/13/09 10:06

love_Oni
Member
From: Da Nang, Vietnam
Registered: 05/10/08

Re: Any Requests?

Yeah, it works now.


The Boy Who Knew Too Much tongue

Offline

#43 06/13/09 12:06

Mukade
Member
From: Ottawa, Ontario - Canada
Registered: 05/29/07

Re: Any Requests?

yeah, if i'd been on earlier i woulda said to put it's health at 1 tongue

alhough, i have a script, and if one of the people in it die, two others gain i think 150 hp, but its happened that one them has died, then the one who triggered the hp gain and the dead one comes back with 150 hp, but just stand there tongue its weird

Gumby wrote:
Mukade wrote:

thing is, ive tried chump, and it only follows, doesnt seem to have combat logic, since it doesnt attack yo or the enemy sad

Probably some ai state. chr_peace or something. You need to disable it. smile

chr_active might work...

Last edited by Mukade (06/13/09 12:06)


"He looks mean enough to tear my arm off and beat me to death with it. In fact, he looks mean enough to tear his OWN arm off and beat me to death with it."

Offline

#44 06/26/09 03:06

Ire Yosuke
Member
Registered: 05/23/09
Website

Re: Any Requests?

Bump


"There are two things that cannot be ignored in life. One is a cannon, the other, a cannon ball." - Commander Patrick "Bombard" Bomba

Offline

#45 06/26/09 12:06

Mukade
Member
From: Ottawa, Ontario - Canada
Registered: 05/29/07

Re: Any Requests?

bump?


"He looks mean enough to tear my arm off and beat me to death with it. In fact, he looks mean enough to tear his OWN arm off and beat me to death with it."

Offline

#46 06/26/09 13:06

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

Re: Any Requests?

Why the bumps?


Check out the Anniversary Edition Seven at ae.oni2.net!

Offline

#47 06/29/09 14:06

Ire Yosuke
Member
Registered: 05/23/09
Website

Re: Any Requests?

To ask if things got done ;]


"There are two things that cannot be ignored in life. One is a cannon, the other, a cannon ball." - Commander Patrick "Bombard" Bomba

Offline

Board footer

Powered by FluxBB