Development Forum |
 |
|

KC11
    

|
5/27/2008 | |
Well, I'm making an agent, called "eat hand" and I'm trying to make it so that the creature can take more than one bite out of it. Now, I've read the "CAOS Chaos" tutorial, both of them in fact, and I've found that the tutorial is not compatible with the CDN tutorial for making a basic food object, which is what I used to make "eat hand". So, anyway, I pasted and adjusted the CAOS Chaos tutorial in there, and it won't work. Can anyone tell me a way that would work with the CDN's programming?
Do not upset the ugly worm, lest it be a dragon in disguise. (>oo)>
|

Malkin
     Manager

|
5/27/2008 | |
Can you please post your code with what exactly you're trying to make it do?
You need to make your own understanding of CAOS - I find I like to use every tutorial I can get my grubby mitts on, so that I can get many peoples' ideas to help me get it. It's like learning a foreign language, except it could crash your computer. 
My TCR Norns |

BathosAndPathos

|
5/27/2008 | |
I don't know, Malkin. When I was trying to learn Spanish, I almost smashed my computer up a couple of times.
Does that count? =D
"Endure. And, in enduring, grow stronger."
- Friedrich Nietzsche
Feed it for great justice! ( And to make me smile. >: )
My avatar should really be this. |

KC11
    

|
5/27/2008 | |
*create some in the meso******
new: simp 2 11 1000 "eathand" 3 0 5000
attr 195
bhvr 48
elas 30
fric 50
accg 3
mvto 1038 9498
cmrt 0
******emit protein smell*
emit 6 1
*****eat script
scrp 2 11 1000 12
lock
snde "chwp"
stim writ from 79 1
kill ownr
endm
********REMOVAL
rscr
enum 2 11 1000
kill targ
next |
It's just a .cos file for now, I haven't turned it into a full blown agent. I also made it its own sprite file, just so you know.
Do not upset the ugly worm, lest it be a dragon in disguise. (>oo)>
|

biohaze

|
5/27/2008 | |
umm just to let you know i copied the code and added the easter basket egg instead and i seems they can already take 3 bites out of it.
Grow Shrooms |

Malkin
     Manager

|
5/27/2008 | |
You also need to use the scrx command with each of the actions that a creature can do to it. I can't really think of the right words to say it??
After the last NEXT, put
scrx 2 11 1000 12
this will remove the eat script for your agent.
My TCR Norns |

KC11
    

|
5/27/2008 | |
Remove the eat script? All I want to do is make the agent multi bite.
And I tried the agent myself, and it doesn't seem to be multi bite, bio. Maybe it's because of the sprite file I used? I'm pretty sure I have three images in there.
Do not upset the ugly worm, lest it be a dragon in disguise. (>oo)>
|

biohaze

|
5/27/2008 | |
yes if the cos file has a script in it an you remove the agent it doesnt remove the script.
Hold on and i will test the agent again
never mind it is one bite
This is a simple 3 bite code from the Caos Chaos:
scrp 2 11 4645 12
doif pose lt 3
snde "chwp"
stim writ from 79 1
setv va00 pose
addv va00 1
pose va00
else
snde "chwp"
stim writ from 79 1
kill ownr
endi
endm
|
kc
P.s.
KC11 do you ever check your PMs lol
Grow Shrooms |

Malkin
     Manager

|
5/27/2008 | |
The last script will be used to remove your agent, so it's common courtesy to make it remove the action scripts as well as the physical agent. 
If you use the CAOS chaos script, you will also need to make your installation script give each edible hand a va00 value of 0. The CAOS chaos script uses va00 to count how many bites a norn's taken from the food object.
My TCR Norns |

KC11
    

|
5/27/2008 | |
Oh. Sorry. 
Thanks!
Well, I tried using the tutorial and adjusted accordingly, and when I tried injecting it, it crashed my game. Unlike the cheese in the tutorial, my agent only uses sprites 0, 1, and 2. How should I rewrite the script so that the cheese gets eaten when the norn eats sprite 2?
Here's my code so far:
**Create some in Meso*
inst
new: simp 2 11 5000 "eathand" 3 0 600
attr 195
bhvr 48
elas 10
accg 2
perm 100
seta va00 targ
mvto 1038 9498
cmrt 0
endi
next
**Eat script*
scrp 2 11 5000 12
doif pose lt 3
snde "chwp"
stim writ from 79 1
setv va00 pose
addv va00 1
pose va00
else
snde "chwp"
stim writ from 79 1
kill ownr
endi
endm |
Do not upset the ugly worm, lest it be a dragon in disguise. (>oo)>
|

Malkin
     Manager

|
5/27/2008 | |
Instead of the
try
also, try
My TCR Norns |

KC11
    

|
5/27/2008 | |
I tried that. It's still crashing the game. I get runtime errors.
Here's the entire code;
*****EATHAND!! ******
**Create some in Meso*
inst
new: simp 2 11 5000 "eathand" 3 0 600
attr 195
bhvr 48
elas 10
accg 2
perm 100
setv va00 0
mvto 1038 9498
cmrt 0
endi
next
**Eat script*
scrp 2 11 5000 12
doif pose lt 2
snde "chwp"
stim writ from 79 1
setv va00 pose
addv va00 1
pose va00
else
snde "chwp"
stim writ from 79 1
kill ownr
endi
endm
**Remove Script*
rscr
enum 2 11 5000
kill targ
next
scrx 2 11 5000 12 |
Do not upset the ugly worm, lest it be a dragon in disguise. (>oo)>
|

Malkin
     Manager

|
5/27/2008 | |
What's the endi in the installation script ending?
My TCR Norns |

KC11
    

|
5/28/2008 | |
The installation script. At least, I think there should be an endi.
Now that I think of it, though, wouldn't this stop the agent from existing?
Well, more problems. I'm trying to release the one bite version, and easy pray is giving me a hard time. It keeps saying "Give the full path where PrayBuilder is!" what does that mean?
Do not upset the ugly worm, lest it be a dragon in disguise. (>oo)>
|

Malkin
     Manager

|
5/28/2008 | |
My caos.html file says that ENDI should be used to close a DOIF, ELIF, ELSE set, and that NEXT should be used to close ENUM, ESEE, TARG, ETCH or EPAS.
I don't rightly know why easyPRAY's whinging, because I don't use easyPRAY, but did you install PRAYBuilder too? You need to install PRAYBuilder to use easyPRAY.
My TCR Norns |

Draconorn
    
|
5/28/2008 | |
... It could be crashing the game because the hand simply isn't meant to be eaten?
*brick'd*
I'm sorry DX Anyway, all this CAOS jargon is beyond me, but what I want to know is...
What happens once a norn has completely eaten the hand? O_O
(EDIT: 1000th post ) |

KC11
    

|
5/28/2008 | |
XD Oh, don't worry, it's not actually eating YOUR hand. A new agent that looks like the hand is injected, and the norn eats that.
And I don't have Praybuilder installed. I didn't know you had to install it! O_O
So I should changed "endi" to "enum"?
Do not upset the ugly worm, lest it be a dragon in disguise. (>oo)>
|
 Mad Scientist
clohse
 

|
5/30/2008 | |
In the install script you can leave off the endi and the next.
For Easypray you need to copy PrayBuilder.exe into the main Easy pray folder.
Then startup Easypray
Under File->Preferences->Directories
click the little browse folders to show it where the Project folder and the Praybuilder program are located.
It should be able to compile now.
CLohse's Norns at the Creatures Repository |