Development Forum |
|
|
the1whoscreams
|
10/3/2017 | |
More agent questions. The pile is probably going to keep getting taller and taller as I build this thing. The seed no longer throws errors when there's a "safe" place that isn't actually safe. Everything works magnificently. The only problem is that when it tries to transform in an unsafe location, it's supposed to say something, but it's not saying it.
Here's the code, even if some strange feeling inside me says it might be an unreadable mess.
*When activated by the Hand in seed form, check to transform with a dummy agent. If you can transform, do it.
scrp 3 3 14893 1
doif pose eq 9
inst
setv va00 -237
setv va01 -332
addv va00 posl
addv va01 post
new: simp 5 1 14893 "nichelingmother" 1 0 0
rtar 5 1 14893
mvto 1 1
doif tmvt va00 va01 eq 1
enum 5 1 14893
kill targ
next
targ ownr
mvby -237 -332
pose 0
attr 192
else
kill targ
targ ownr
sezz "This is not a safe location!"
endi
endi
endm |
|
Malkin
Manager
|
10/4/2017 | |
Isn't it getting killed? What happens instead of the SEZZ?
My TCR Norns |
the1whoscreams
|
10/4/2017 | |
It's not supposed to get killed, and it doesn't. It just doesn't say anything. The only thing that's supposed to get killed is the dummy agent. |
Zzzzoot
|
10/4/2017 | 1 |
I assume you're wanting a speech bubble. It looks like Docking Station (maybe C3 too, I haven't looked at it) has an agent that handles speech bubbles. It's in "DS speech bubble factory.cos"
This is a snippet from "training dummy.cos" that looks like it uses the factory to make its speech bubbles:
rtar 1 2 10
doif targ ne null
mesg wrt+ targ 126 "message here" ownr 0
endi |
That should work for you.
I'm honestly not sure how SEZZ is supposed to work exactly. But "reminder_to_purchase.cos" uses it if you wanna look into that. |
Malkin
Manager
|
10/4/2017 | |
I think you have to set the voice type first?
My TCR Norns |
Peppery One
Papriko
|
10/4/2017 | |
You have to set the voice type first indeed, however, SEZZ only generates the vocal audio. Zzzzoot is right, for a visual speech bubble, you have to mesg wrt+ the speech bubble factory.
Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis... |
Sanely Insane
RisenAngel
Manager
|
10/4/2017 | |
I think SEZZ will generate a speech bubble as well if the agent in question has a voice set. It's just that by default only creatures and the Learning Room computer have a voice set.
Zzzoot's suggestion sounds better for what you're trying to do here than giving a voice and using SEZZ (I'd recommend only doing that for agents that talk a lot as part of their basic functioning, and here it just seems you're error-checking).
On a side note: You've been making a lot of topics lately. If you're planning on having lots of questions about the same agent, have you considered just making a single topic for that agent and asking all your questions there?
~ The Realm ~
Risen Angel's Creatures Blog
|
the1whoscreams
|
10/4/2017 | |
That worked.
EDIT: Grendel_Man, I'll do that. |