|
Development Forum |
 |
| Organreplacments for creatures | |
|

Horstj
 
|
9/16/2011 | |
During the last days I have tried to create a compleatly new type of agent. A replacement for an organ of a creature!
So here is the script, but be warned I haven't tested it.
***standart norn lung replacement***
new: simp X XX XXXX "replacement_lung" 1 1 1000
tick 1
*implant script
scrp X XX XXXX 1
targ norn
*create tick counter var vor breathing
setv OV00 0
*create tick counter var vor cooling
setv OV01 0
*create counter max var vor breathing
setv OV02 100
*create counter max var vor cooling
setv OV03 20
*create tick counter var vor breathing out
setv OV04 0
*create counter max var vor breathing out
setv OV05 19
*mark the norn as wearing the lungreplacement
setv OV99 1
endm
*lung work script
scrp X XX XXXX 9
addv OV00 1
addv OV01 1
addv OV04 1
enum 4 0 0
doif OV99 eq 1
targ
*part1 breathing
doif chem 29 le 0.7
chem 29 0.2
endi
doif chem 29 ge 0.01 and chem 33 ge 0.01 and OV00 eq OV02 or OV00 eq 100
chem 33 -0.004
chem 29 -0.004
chem 30 0.012
setv OV00 0
elif OV00 eq OV02
setv OV00 0
endi
doif chem 30 lt 0.5 and OV02 ge 10
addv OV02 -5
elif chem 30 gt 0.9 and OV02 le 95
addv OV02 5
endi
*part2 cooling
doif chem 153 ge 0.31 and chem 33 ge 0.01 and OV01 eq OV03 or OV01 eq 20
chem 153 -0.016
chem 33 -0.004
setv OV01 0
elif OV01 eq OV03
setv OV01 0
endi
doif chem 153 ge 0.4 and OV03 gt 3
addv OV03 -1
elif chem 153 lt 0.2 and OV03 lt 20
addv OV03 1
endi
*part3 breathing out
doif chem 24 ge 0.012 and OV04 eq OV05 or OV04 eq 19
chem 24 -0.012
chem 33 0.004
endi
doif chem 24 gt 0.1 and OV05 gt 1
addv OV05 -1
elif chem 24 lt 0.004 and OV lt 19
addv OV05 1
endi
targ ownr
endi
next
endm
|
Note that this lungreplacement also enables the creature to breath under water, due to me not knowing how to make the script know weather the creature is under water or not. |
 Patient Pirate
ylukyun
     Manager
|
9/17/2011 | |
Given the length of the sprite name it has to be for C3 or DS. (Or CA or CP, but from memory the creatures don't have organs..) |

Horstj
 
|
9/18/2011 | |
Its for C3/DS. I think I'll put it into a future version of the Multi-Vend (as soon as I feel masochistic enough to work on it again). But prior to releasing it (as an injectble agent) I have to make a creature with no lung to test it. |

Ettina
 
|
10/9/2011 | |
How will you get them to survive long enough to test it?
By the way, I don't care if anyone steals my ideas for their own work, as long as you don't try to stop me from making my own stuff. Many ideas I mention are things I don't have the time or skill to actually do. |

Horstj
 
|
10/15/2011 | |
I thought of deleting the genes for dieing and the entire lung organ, than implanting the lung replacement and looking at the chem-graph weather it works or not. If it works good, if not bad. |