Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Problem with skill message
Problem with skill message
2000-11-29, 11:23 PM #1
I try to print simple text on the screen when I pull the an actor's weapon. But it doesn't work.

I have defined a new template as follow :

# DESC:
# BBOX: -.029786 -.019179 -.124701 .024091 .064673 .043406
MyStorm _humanactor thingflags=0x20000000 model3d=st.3do puppet=st.pup soundclass=st_s1.snd maxvel=.25 weapon=+elaser weapon2=+st_punch health=60 maxhealth=60 maxthrust=1 maxrotthrust=90 typeflags=0x20001 fireoffset=(.0048/.05/.012) aiclass=st_def.ai

I simply remove the cog.

And I have created the following cog to create the actor and print the text.


#My simple generator

symbols

message startup
message skill

thing ActorPos nolink
thing Actor mask=-1 local

template ActorTpl

end

# ========================================================================================

code

# ========================================================================================

startup:

Actor = CreateThing(ActorTpl,ActorPos);
CaptureThing(Actor);

return;

# ........................................................................................

skill:

Print("Enter skill");
Print("Enter skill");
Print("Enter skill");

return;

# ........................................................................................

end


So when I try to pull the weapon, nothing is printed to the screen.


Can someone help me please ?
2000-12-02, 3:02 PM #2
the "skill" message is run when the "SkillTarget" parameter is run. look into this function to make the skill section run. doesn't sound like it is even running...

SkillTarget(player, victim, what power, rank);

------------------
I refuse to have a battle of wits with an unarmed person.
2000-12-04, 11:18 AM #3
Do you mean that I have to add this function into the player's cog ?

If I look in the JK Unofficial specs, it's said that this function is used like the SendMessageEx...

I'm in multiplayer mode.

Today, I tried to link the cog to my stormtrooper's template (cog=Mycog.cog). It seems to work fine.


Thanks...

↑ Up to the top!