Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 05/08/09 16:05

Phydur
Member
Registered: 01/13/07

a few questions about in-game scripting...

1) is there a way to remove a shield power-up via the command line? or is the only way to be shot at?

2) is there a way to prevent triggers and spawning from happening? like a "disable_spawn" or "ignore_triggers" or something?
a way so you can explore a "sterile" environment where you have to use the command line to cause things to happen?

3) how do you make a trigger or console activate via the command line?
like in the bio-research lab, there's that console that talks about accidents, and then the thing explodes?
i know its text3d and day254
but if i type those it just says string:text3d or string:day254 instead of activating the trigger.

i think i had one more question, but i cant remember what it was.. oh well, I'll ask later if i remember..


I intentionally spell dang, dange, FYI.

Offline

#2 05/08/09 17:05

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

Re: a few questions about in-game scripting...

1. chr_inv_reset [ai_name:string | script_id:int] - clears a characters inventory
Sorry, it clears everything. Not much to do about it.

2. You would have to either 1. Remove the level scripts or 2. Remove the BINATrigger from the level.

3. You have to find the console in the script. use that string as a search term. Should be "text_console xyz"

Also, http://wiki.oni2.net/BSL:Functions and http://wiki.oni2.net/BSL:Variables are your friend. 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

#3 05/08/09 17:05

Phydur
Member
Registered: 01/13/07

Re: a few questions about in-game scripting...

hrm sounds like there isn't a way to easily disable the scripts from in game.
and if you delete them, you cant activate them at will.
oh well. thanks for the help.


I intentionally spell dang, dange, FYI.

Offline

#4 05/08/09 22:05

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

Re: a few questions about in-game scripting...

You could always rename them. 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

Board footer

Powered by FluxBB