creatures caves welcome, guest
downloads   gallery   dev   community   creatchi   forum   mycaves
bookmarks | search | post new topic
Help Forum
old
Push Scrp Not Working   
Meggle222277

Meggle222277



  7/8/2025

I tried creating a CAOS script that is supposed to create a simple ball agent that when you click on it, It jumps upwards.

But instead when I clicked on said agent, It did nothing. I'm at a loss on what to do here so any help would be great.

If you can't understand something I said I would be happy to clarify. Thanks.

The code:

inst
*create the agent
new: simp 2 21 7922 "ball" 1 1 10000
ATTR 199
ACCG 1
PERM 100
ELAS 50
FRIC 100
mvto mopx mopy
setv va01 0

*push script
scrp 2 21 7922 1
velo 0 1
endm

*pull script
scrp 2 21 7922 2
velo 0 1
endm

*hit script
scrp 2 21 7922 3
velo 0 1
endm

*remove the agent
rscr
enum 2 21 7922
setv va01 1
kill targ
next
scrx 2 21 7922 1
scrx 2 21 7922 2
scrx 2 21 7922 3

 
Papriko
Peppery One

Papriko



  7/9/2025

Usually PCs count from the top-left corner to the right and down. I can't test it personally right now, but VELO 0 1 might be trying to accelerate down. With FRIC 100 it is a perfectly non-slip object, so you can't see it rushing down slopes either.
Try turning that 1 into a -1. Actually, the documentation says that VELO is measured in pixels per tick, so maybe bump it to -10 or -15 for testing. Just to get a life sign, you can dial it back in later.

The line "setv va01 0" in the creation and "setv va01 1" in the remove script are kind of useless as they are right now. VA are short-term variables that get deleted again as soon as the script is over. They're just for shuffling values around while you work with them. The ball is created, sets VA01 to 0, then immediately forgets it again.
Same in the removal script. You go through the agents in order (ENUM), and then you set VA01 to 1, only for them to be destroyed milliseconds later (KILL TARG).
Long story short, you should be able to simply omit them if you don't plan anything else with them.

Other than that, a nice and clean object skeleton you got there. Not bad at all.


Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 
Meggle222277

Meggle222277



  7/9/2025

I edited the CAOS code and did your reccomendations of bumping up the numbers, but still nothing had happened. The weird thing is this has also has been happening when I test out one of the example scripts from the creatures wiki in CAOS, (Specifically scrp 3 8 0 1 hand "Banana" endm) It's supposed to change my hand's name to banana, But then I run the script, push a gadget and nothing happens. I'm running C3/DS on windows 11 so maybe I need to change some settings or something?

 
Papriko
Peppery One

Papriko



  7/9/2025  1

How do you load your script into the game?

Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 
Meggle222277

Meggle222277



  7/9/2025

I used the CAOS tool to install the script into the game. Maybe that's the problem? i'm going to try to recreate the agent through theist and then install said agent through the agent injector and see if that works.
 
Meggle222277

Meggle222277



  7/9/2025  1

Yep, it worked! The problem was I ran the agent's script through CAOS instead of actually creating the agent through Theist. The agent works now, Thanks a bunch for your help.
 
Arnout

Arnout



  7/25/2025  1

Meggle222277 wrote:
Yep, it worked! The problem was I ran the agent's script through CAOS instead of actually creating the agent through Theist. The agent works now, Thanks a bunch for your help.


Could be! When injecting agents live using CAOS, make sure to inject "Install Scripts And Event Scripts (F11)", otherwise your agent does not properly update in-game.

 
Meggle222277

Meggle222277



  7/26/2025  1

Arnout wrote:

Meggle222277 wrote:
Yep, it worked! The problem was I ran the agent's script through CAOS instead of actually creating the agent through Theist. The agent works now, Thanks a bunch for your help.


Could be! When injecting agents live using CAOS, make sure to inject "Install Scripts And Event Scripts (F11)", otherwise your agent does not properly update in-game.


Neat, I did not know You could just press F11 in CAOS to inject a preview of the agent. Thanks, that also saves me my energy and time.

 


downloads
cobs
adoptions
creaturelink
metarooms
breeds
 
gallery
art
wallpaper
screenshots
graphics
promos
sprites
dev
hack shack
script reservations
dev resources
active projects
dev forum
 
community
links
advice
chat
polls
resources
creatchi
 
forum
bookmarks
general
news
help
development
strangeo
survivor
mycaves
log in
register
lost pw
0 online
creatures caves is your #1 resource for the creatures artificial life game series: creatures, creatures 2, creatures 3, docking station, and the upcoming creatures family.

contact    help    privacy policy    terms & conditions    rules    donate    wiki