Aller au contenu

Photo

Having Trouble


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
-ch3ph-

-ch3ph-
  • Members
  • 4 messages
I'm making a module and i can't seem to get one of my characters to move.
I've been trying to use the gen00pt_generic_actions but none of the actions seem to be working, i maybe doing something wrong as i haven't really used the toolset that much.

What i need to happen is when i finish the conversation with a guard, i need him to move out of the way so i can go past him.


Hope someone can help :)

#2
BioSpirit

BioSpirit
  • Members
  • 261 messages
You may need to use scripting. I have no time to test this right now. But run the script from the conversation.

void main()
{
object oWp = GetObjectByTag("waypoint_where_to_move");
object oNPC = GetObjectByTag("tag_of_the_guard");
AddCommand(oNPC, CommandMoveToObject(oWp, FALSE), FALSE, TRUE);
AddCommand(oNPC, CommandTurn(direction_to_face), FALSE, TRUE);
}


Modifié par BioSpirit, 21 décembre 2009 - 11:12 .


#3
BioSpirit

BioSpirit
  • Members
  • 261 messages
Yes, it seems to work just fine

#4
-ch3ph-

-ch3ph-
  • Members
  • 4 messages
[quote]
void main()
{
object oWp = GetObjectByTag("waypoint_where_to_move");
object oNPC = GetObjectByTag("tag_of_the_guard");
AddCommand(oNPC, CommandMoveToObject(oWp, FALSE), FALSE, TRUE);
AddCommand(oNPC, CommandTurn(direction_to_face), FALSE, TRUE);
}[/quote][/quote]

It must be something I'm doing wrong as it isn't working for me.
For this part    object oWp = GetObjectByTag("waypoint_where_to_move");
 if the waypoint is tag is called point1 i put waypoint_point1 or do i just put point1, i have tried both so i don't think this is the problem but i can't think of anything else.
as for the script do i just put it at the end of the conversation. On the action script?

#5
BioSpirit

BioSpirit
  • Members
  • 261 messages
It's just "point1".

1. Select File->New->Script
2. Copy-Paste the script
3. Save the script.

4. Select a blue line from the conversation that's containing [END DIALOGUE].
5. Select "Plots and Scripting" page.
6. Press [...] button after the script line in Action section and open the script you saved.

Also note that if you load a saved game that is saved in the area you are working, new items and waypoints may not kick in properly.

Modifié par BioSpirit, 21 décembre 2009 - 11:22 .