The switch of a button creating mood swings. - by Beauty-Man
Beauty-Man on 13/1/2010 at 22:08
I've kind of asked this same question awhile back, however the concept isn't grasped all that well and what I'm supposed to do.
I have some robots "wired" to a system that has ability to scrabble their thoughts/mood and/or shut them down. (At least that is what I want)
So at the flick of a switch they're "re-wired"
. . . though I suppose a CD link to the robot from the switch won't cut it :sweat:
So how might I even begin?
intruder on 13/1/2010 at 22:26
I would do the following:
Create 2 new stimuli (e.g. "Disable_Robot" and "Enable_Robot") and two new metaproperties (e.g. "Bot_Activated" and "Bot_Offline").
The "Bot_Offline"-metaproperty get's AI->State->Current Mode: Asleep. The "Bot_Activated" metaproperty get's: AI->State->Current Mode: Normal.
If your robots receive the "Disable_Robot" stimuli, they'll add the metaproperty "Bot_Offline" on themselves. If they receive "Enable_Robot", they'll add themselves the metaproperty "Bot_Activated".
Now you have to make your switch/controls trigger the appropriate stimuli...
Beauty-Man on 14/1/2010 at 00:18
Thanks intruder for the help I appreciate.
However. . . .something isn't right anymore :erg:
My idea of "Stimuli" was creating a marker, adding the metaprop from "links" to the robot and linking that to a control device. It took 15 minutes to realize my stupidity that the lever wasn't controlling the bot dieing.
Don't worry I've already punched myself in the face :tsktsk:
Stimuli is the "Sources-Receptions" menu isn't it?
I know I'm completely missing something haha.
I want one lever to control the on/off of a robot. I also want the other to control the "Team" or turning the sucker from your friend to your foe.
Once again in spite of my lack of knowledge I'm sorry (hehe)
Beauty-Man on 14/1/2010 at 05:10
I guess I'm just not now getting the memo that the tut to "Sources and Receptions" isn't around anymore.
I've made a bigger problem for myself now, and, I still haven't figured out how to effectively alter the Robot.
I assume it has to do with Sources and receptions. . . lol maybe?
intruder on 14/1/2010 at 08:37
To create a new stimuli, you need to do the following things:
Go to the "Stimuli"-tree in the object-hierarchie. Create the 2 new stimuli, save the gamesys and close DromEd.
Open DromEd again and create both meta-properties.
Give each robot a receptron for both stimuli (can be found at Act/React->Source/Receptron).
For the part with the switch I would do the following:
Create a switch and an inverter and two EmitterTraps in a blue-room.
Set up the links like this:
Switch -> ControlDevice -> EmitterTrap 2
Switch -> ControlDevice -> Inverter -> ControlDevice -> EmitterTrap 1
EmitterTrap 1 fires a projectile with the "Disable_Robot"-source.
EmitterTrap 2 fires a projectile with the "Enable_Robot"-source.
Make sure the traps can fire more than once, I think it was the TweqReload or ReloadTweq-script.
Perhaps someone else has a much smarter and less complicated idea :D
Beauty-Man on 15/1/2010 at 00:37
I appreciate the suggestions definitely. I managed to stay up till 3:00 in the morning trying to figure this out.
I still haven't accomplished it. The emitter trap situation. . eH :weird: lol
The farthest I had came was making a conversation. I had the conversation add the metaproperty "M-GoodGuy". Which for whatever reason it did "ADD" it but the Bot still attacked me. I knew it added the property because when I flip the switch the bot stop talking, but after backing up it continued firing.
Its all fine and dandy when the bot already has the property "M-GoodGuy" and you remove, but it ticks me off that its not the same trying to add it.
. . . I remember making such a simple setup like a year ago, and have not a clue how I got it to work.
Sigh* . . . now what?
intruder on 15/1/2010 at 09:59
If you like to, I could prepare a small "demo" using emitter-traps + sources/receptrons to shut the bots down and bring them back online. I would do it today after work and send it to you via PM...
Beauty-Man on 16/1/2010 at 01:32
Well I'd certainly appreciate the effort though you don't have to. However, (lol) anything of that sort would help.
Over here I just got off work (surprisingly early) so whenever you can I appreciate it :thumb:
Though I wonder. . will the same work for switching the bots "Team"? Like the bot starts off in an enemy mode and then switching the button turns his enemy mode off.
intruder on 16/1/2010 at 12:04
I've sent you a PM. There is a bot attacking you in the small "demo". If you frob the switch, he will stop it. If you frob the switch again, he will continue with attacking you...
I think this should explain how to set up the effects you want to create...
Beauty-Man on 16/1/2010 at 16:20
I appreciate it a lot as I just reviewed your setup, but something determining why I still can't get it to work may be the "Emit"
Under the "Emit-What" entry you have, "Emit_Online" but I can't seem to figure out what object you have with that name lol.