CopperCube Scriptable Path (update)
A downloadable asset pack
Updated: 31 dec 2024
(repaired known errors and added some new stuff)
(its simple to add new functionality to it-if you need any ,let me know)
This is not exactly how i am going to use it but its kinda fun to use it also this way as in example.
On each waypoint that has set to AI have possible to add script..
AI can open door or turn switch or whatever needed.
probably good for non programmers to learn simple scripting.
Now it has many changes..
Scripts are now separate files: oc can be include into javascript also (will add it later)
scripts are more readable now.
You can use variables and this.variables
if you include this. to your variable name then this. will be replaced with nodename..
so: this.a will be clerk1.a for example.
if statement have now ! = < > and also &
(keeps it simpler to script stuff.. )
example: if( this.direction=-1 & door1.state=1)
also you can use variable as second parameter.
for example: if(a=b & a!5)
Example file:
in example first AI will switch light on if light is turned off.
(you can turn it off by klicking on box on wall)
second AI will move into room by opening closeing doors (if needed)
and asks you random item 1 to 3
You klick on cilinder that are on table and put it on box that is on table..then AI check did you give correct one.
script files:
client.txt
lamp.txt
info.bmp file included with info.
To make it more usable you can create scripts that simply cooperate with AI as my door and light in example.
All this stuff you can create with javascript so there is no real reason to use it..
but this project will be used by me for some specific stuff and can be used this way also as shown -so i share it.
Download
Click download now to get access to the following files:
Comments
Log in with itch.io to leave a comment.
This seems like a great base to build a good enemy AI FSM script to attack the players or hero or a good NPC AI
👍
Thanks