creatures caves welcome, guest
downloads   gallery   dev   community   creatchi   forum   mycaves
bookmarks | search | post new topic
Development Forum
old
DROP it like it's hot?   
Malkin

Malkin
Australia  
Manager


 visit Malkin's website: Malkin's page at CWiki
  4/23/2010

I'd like to use caos to force my norns to drop a particular item after they've pushed it. (i.e. make it compulsary in the push script.) The CAOS help document has the promising command DROP, which is as follows:

DROP (command)
Force the TARG to drop what it is carrying. this will try to find a safe place for the agent to fall.


Can anyone please show me an example of how they've used the DROP command?


My TCR Norns
 
Papriko
Peppery One

Papriko



  4/23/2010

How "they" as in "CL" used the drop command, but I also used it a few times. The syntax is as easy as the one of the DEAD command. In the agent idea you describe would a code like this probably be interesting for you:
doif carr <> null
targ carr
drop
targ ownr
endi
That was it. ;) Simply TARGing and then DROP.

I also used it in my Hypno Pot and the CRC.


Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 
Malkin

Malkin

Manager


 visit Malkin's website: Malkin's page at CWiki
  4/23/2010

Thanks Papriko! :) I've modified the code like the following (Xes are for X-tra mystery, lol) - d'you think it'll still work like this?


scrp X X X X
snde "X"
subv ov02 0.2
inst
targ from
stim writ from X 1
slow
targ ownr
doif carr <> null
targ carr
drop
endi
endm


Does using DROP cause the drop script (5) to trigger, if an agent has one?


My TCR Norns
 
Papriko
Peppery One

Papriko



  4/23/2010

Yes, the code looks fine. You can apply drop on anything that is able to carry something... creatures, vehicles, the hand...

I am not sure if the drop script is executed, but probably yes. I quickly would test it with a mini-cosfile, but I am too sleepy now :$ (half to midnight here)
In the worst case you directly MESG your agent with script 5, AFAIK is it also dropped them.


Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 
Moe

Moe


 visit Moe's website: Creatures 2 to Docking Station
  4/25/2010

LOL, best. CC. thread. name. ever.

That is all.

 
Malkin

Malkin

Manager


 visit Malkin's website: Malkin's page at CWiki
  7/2/2010

Does anyone know if this is a DS-exclusive command?

My TCR Norns
 
RisenAngel
Sanely Insane

RisenAngel

Manager


 visit RisenAngel's website: The Realm
  7/2/2010

DROP is indeed a DS-only command. It throws a syntax error if you try to put it into a C3-only script.

~ The Realm ~
Risen Angel's Creatures Blog


 
Malkin

Malkin

Manager


 visit Malkin's website: Malkin's page at CWiki
  7/2/2010

Thank you, GrendelMan. :)

My TCR Norns
 
Papriko
Peppery One

Papriko



  7/3/2010

I don't know if it is because I have installed it from CIE, but my C3 solo lets me TARG NORN DROP my creatures.
MANN "DROP" also works perfectly.

MANN wrote:
Force the TARG to drop what it is carrying. this will try to find a safe place for the agent to fall.



Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 
Malkin

Malkin

Manager


 visit Malkin's website: Malkin's page at CWiki
  8/18/2011

If I gave an object a velocity in its drop script, would that make it fall away from the norn when dropped? ('escape'?)


scrp 2 X X 5
setv va00 rand -10 10
setv velx va00
setv va00 rand -10 -1
setv vely va00
endm


My TCR Norns
 
Liam

Liam


 visit Liam's website: Spellhold Studios
  8/19/2011

It should, but it will do this when dropped by the hand as well.

Do something like:


scrp 2 X X 5
doif crea from eq 1
setv va00 rand -10 10
setv velx va00
setv va00 rand -10 -1
setv vely va00
endi
endm


That will ensure that it only happens if it is dropped by a creature... I think. In theory. You'll have to test it.


- Liam / K'aeloree

Spellhold Studios, a Baldur's Gate II, Neverwinter Nights and Oblivion Modding Community

 


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
1 online
Papriko
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