Development Forum |
 |
old norn killer .cos file | |
|

biohaze

|
5/26/2008 | |
Hey yall i was wondering if anyone could help me with this
ENUM 4 0 0
doif cage <= 4
TARG norn DEAD
NEXT |
for some reason i get the error token "next" next with enum/ETC...
but this works:
ENUM 4 0 0
TARG norn DEAD
NEXT |
Grow Shrooms |

Malkin
     Manager

|
5/26/2008 | |
If you've got a doif statement, don't you need an endi statement to close it off?
My TCR Norns |

biohaze

|
5/26/2008 | |
Yes thank you but now the doif anit working lol
no error just wont kill lol
Grow Shrooms |

Malkin
     Manager

|
5/26/2008 | |
Well, where did you put the ENDI command? Before or after the NEXT?
My TCR Norns |

biohaze

|
5/26/2008 | |
ENUM 4 0 0
DOIF CAGE <= 4
TARG norn DEAD
ENDI
NEXT
o ya and it only kills the norn i have selected
Grow Shrooms |

biohaze

|
5/26/2008 | |
P.s.
doif cage <=4 wont kill
but
doif cage >= 4 will kill eggs and other norns
WTF
Grow Shrooms |

Malkin
     Manager

|
5/26/2008 | |
Please use the little yellow pencil button to edit your posts rather than double-posting.
In a doif statement, we have different options:
EQ = (equal)
NE <> (not equal)
GT > (greater than)
GE >= (greater than or equal to)
LT < (less than)
LE <= (less than or equal to)
Have you tried using the letters rather than the symbols?
Also, looking at my CAOS documentation (you can get this by following the instructions on the Creatures Wiki), it seems that the NORN command sets TARG to the current norn, which undoes the ENUM, which makes the TARG apply to all norns. Try removing NORN from your code and seeing what happens. 
My TCR Norns |

biohaze

|
5/26/2008 | |
DOIF CAGE GE 4
yes i tried that the command goes completely red and wont work still
for some reason when i inject this cos it kill whatever i have selected no matter the age and wont search out another creature
Grow Shrooms |

Malkin
     Manager

|
5/26/2008 | |
Try
enum 4 0 0
doif cage ge 5
dead
endi
next
|
as far as I can tell, life stage 4 is the adult stage, not the old stage.
My TCR Norns |

biohaze

|
5/26/2008 | |
AHHH it works your a life saver lol
the problem was the targ norn command
Thank you so much you will get some credit lol
Grow Shrooms |

Malkin
     Manager

|
5/26/2008 | |
Lol, thanks, I think. XD So what's this master code for?
My TCR Norns |

biohaze

|
5/26/2008 | |
since wolf mate screws up your breeding norns my GWR group wanted me to just make a basic code to kill old norns
but since i have made the basic cos script i am probally gonna make an image for it with connections so you can hook it up to a timer or im just going to put in a caos timer and let it just be:
ject "old.cos" 4
Probally the later but who knows i got sometime on my hands befor i go back to college
Grow Shrooms |

biohaze

|
5/27/2008 | |
Ight so i gusse i still need help!!! lol
Ok i spent some time trying to get an image with it but said screw it so im makeing a background agent
The only problem is i cant get the timer to work.
When i gave up on that i tried to
This crashes the game
so can anyone help me with my timer cause i didnt expect the loop to crash my game lol
heres what i got so far:
inst
loop
enum 4 0 0
doif cage ge 5
dead
kill targ
endi
next
wait 100
ever |
This loop command will not work and i have tried:
inst
tick 1000
enum 4 0 0
doif cage ge 5
dead
kill targ
endi
next |
P.s. does anyone know how to make a agent that has a classifer but still runs in the background with no image to deal with in the caos file so i can still use the remove agent?
Grow Shrooms |

Malkin
     Manager

|
5/27/2008 | |
Hum, I don't know. At least you've got the basic code right (the bit that kills all your oldies) so that it can be injected as you please.
Have you seen Vampess' useful scripts? She's written one which removes dead bodies quicker than normal.
My TCR Norns |

biohaze

|
5/27/2008 | |
ya i got that but its for wolfing runs so our group can leave their comps running in fast tick for a couple of days and it will speed it up i will try looking at other agents for ideas
Grow Shrooms |

Malkin
     Manager

|
5/27/2008 | |
Have you considered making it into a toy? So that every time the toy's pushed, the killing script fires?
My TCR Norns |

biohaze

|
5/29/2008 | |
no it needs to be automatic
Grow Shrooms |

Malkin
     Manager

|
5/29/2008 | |
A toy is perhaps more doable than an automatic checker, though. Alternately, you could investigate object variables and the WAIT command.
My TCR Norns |
 Mad Scientist
clohse
 

|
5/30/2008 | |
I have made several invisible agents that I use as emitters and to control environmental agents mostly.
You just use the image "blnk.c16" found with DS in Images. The image 1 will show your agent as a red box. Use that to position it where ever you want it to be and then switch it to use image 0, the black box.
Code suggestions: Place the tick 1000 up in the install instead of in the timer and try it without the inst.
CLohse's Norns at the Creatures Repository |