Showing posts with label mind control. Show all posts
Showing posts with label mind control. Show all posts

Monday, May 4, 2009

Agent: Mind Arrows

You know, with all the messing around I've done in CAOS, I don't think I've ever actually compiled a complete agent before. Not for C3/DS anyway. But just for the sake of my own learning and amusement, I spent the better part of the day scripting these Mind Arrows.

They're quite simple, and contain some of the concepts I mentioned in a previous post about mind control. If a creature comes within range of the arrows, his mind is bombarded with very strong suggestions to go right or left. I dropped a sezz line in there too, just so I could tell easily if the creature was acting out of his own will or under the control of the arrows. I suppose I might comment that out in future versions if it gets too annoying.

Scripting the commands for the up and down arrows was a little trickier; after trying multiple solutions I finally set the agent to first check if it is touching a lift-- if so, the creature will be told to push/pull it in accordance with the arrow's direction; if not, the creature will be told to push the call button until the lift appears. For this reason, arrows pointing up or down need to be place in a position where they will be touching the lift when it is called; otherwise the creatures will be pushing that call button until they starve.


They're astonishingly effective. I was able to use the arrows to get all my norns in the meso crowded into a single corner fairly quickly. If I do develop this further I would like to add a similar concept to the left and right arrows for doors and teleporters, so the "walkways" don't have to be limited to the metaroom.

What you actually do with this agent is up to you. You might use it as sort of mental forcefield to keep creatures away from a certain area, or as a way to encourage norns to travel more if they start crowding together in one place. I think I'm going to see if I can create a path that wraps around the entire C12DS world so my norns can take a tour of the world rather than sitting by the incubator all day.

Of course, in case you couldn't guess it already, I created this agent as a very, very early prototype for that mental barrier I was thinking about in my last post.. you know, for that metaroom I'll never actually be able to make? Despite my complete lack of skill I've been plotting it out anyway... you know, just in case I end up with the necessary skills someday.

So I do plan on expanding/specifying this agent...trying to figure out how to only make it activate in certain seasons, how to make it distinguish between male and female norns. It's got a ways to go, but right now it's a fun little toy for getting your creatures where they need to go.

Anyway enough rambling. Download the Mind Arrows here!

Friday, April 3, 2009

CAOS Notes: Mind control

I guess I initially started this blog to keep track of my norn populations, runs, etc., but since I like to dabble in CAOS so much, why not use it to keep track of my CAOS notes too?

I've never been particularly good at making agents; there's always some tiny technicality I can't figure out and there's not many CAOS experts left in the community that can help me out in those areas. But when it comes to one-shot lines that I can type in the CAOS command line, that's where I have fun.

So this is the "mind control" line I'm playing with:

targ norn urge writ targ 36 1 1 1

This line will essentially force your targeted norn to drop everything that it's doing, focus its attention on the nearest norn, and make its only priority in life to push that norn. It breaks down like this:

targ norn: Tells the script to target the creature you currently have selected. Alternetively, replace this with "enum 4 0 0" and and "next" to the end of the line to inflict your mind control powers on all creatures in your world.

urge writ: This is the key command here. This tells the script it's about to send evil mind control powers into something. The rest of the script gives the specifics:

targ: Sending the stimulus to the target creature, which we just defined in the first part as being the one you have selected (or if you went the alternate route, each creature in the world in turn).

36 1 1 1: This is the syntax: [noun id] [strength of noun suggestion] [verb id] [ strength of verb suggestion].

36 is the noun id for "norn." As this script forces the target to push norns, they first need to focus on the nearest norn. Other ids are 1, for hand, 11, for food, or 34, for portal. I'll post a list at the end of the noun ids as I know them.

The "1" following the 36 means, "force this creature to pay attention to this noun," but you can tone this down a bit if you like: use 0.5 instead of 1 if you just want to suggest that the norn pay attention to the noun, or 0.9 to strongly suggest it, 0.1 to barely whisper it, or any decimal you like depending on how strong you want your suggestion to be. It also works negatively: if you use a -1, it will force the norn to completely ignore the noun.

The second "1" is the verb id; this happens to be the verb id for "push." And just as explained above, the third is the strength of the verb suggestion; leave it at 1 to force the creature to perform the verb, or use a decimal or negative instead, depending on what your intention is.

I could see some interesting opportunities with this code. While it does interfere with a creature's natural thought process, it might be useful for getting an especially stubborn norn to start eating. Once it is forced to eat, and learns that eating reduces hunger, and that connection is reinforced, it should eat on its own from then on. Overusing the mind control though would likely result in the norn not doing anything for itself, ever, so it should be used with caution.

I could also see it being very useful in agents for people that like to actually play with their creatures with a bit of imagination. For those that enjoy raising norns to fight off grendels, for example, a "war drums" toy could reduce fear in nearby norns and encourage them to beat the snot out of any nearby grendels.

Or perhaps a "crowd scattering" agent that explodes and encourages all nearby creatures to retreat from it, or an "evacuation siren" that encourages norns to push doors, teleporters, and portals. There's a lot of fun possibilbilities there.

I could see a complex, connectable agent with a bunch of different travel options like, go right, pull lift, push door, etc., and if you set them up in a certain way you could hatch a bunch of norns on one side of the world and they would be forced to follow the instructions to end up where you wanted them to go.

You could create a mental forcefield with something like that: if a creature gets within range of the agent, it will force it to go back the way it came.

You could also get a bit cruel with it and create a madness agent that bombards the creature's brain with ridiculous whispered suggestions like, "eat elevator" and "hit hand." Or even worse, create some sort of corrupted dark artifact that heals the creature that holds it fully and gives it Life, but also fills it with anger and suggests it to beat every creature around it.

Ah, so many possibilities.

Now, if you're not already, click the link below to view the full post and the noun/verb id numbers.

As promised, these are the noun and verb ids according to my notes; if there's any errors or anything do let me know so I can fix them. I couldn't find lists like these anywhere else online, so I made some educated guesses based on what I've found from other classifiers and playing with the brain in the genetics kit. But to really know for sure you'll have to experiment with all of them.

Noun ids:

1. Hand
2. Door
3. Seed
4. Good plant
5. Bad plant
6. Leaf
7. Flower
8. Good Fruit
9. Bad Fruit
10. Detritus
11. Food
12. Button or Switch
13. Good Bug
14. Bad Bug
15. Good Critter
16. Bad Critter
17. Nest
18. Agent Egg
19. Weather
20. Bad
21. Toy
22. Incubator
23. Vendor
24. Tool
25. Potion
26. Lift
27. Teleporter
28. Machinery
29. Creature Egg
30. Norn Home
31. Grendel Home
32. Ettin Home
33. Gadget
34. Portal
35. (unclassified?)
36. Norn
37. Grendel
38. Ettin

Verb ids:

0. (look?)
1. Push
2. Pull
3. (deactivate?)
4. Approach
5. Retreat
6. Get
7. Drop
8. Express
9. Rest
10. Go east
11. Go west
12. Eat
13. Hit

Enjoy your newfound mind control power :D