Killing or Destroy mission Conversations and Screenplays

Oct 10, 2017
220
12
18
#1
Hello. This is very interesting...
I'm after this. I was reading about Screenplays working for purchasing items, like the famous "Crazy Larry" and "Crazy Harry" but nobody talked about destroy or killing missions.
Conversations are ok. They are easy to create but make a screenplay like this idea is more different.

Anyone here to teach us about making quests?. I'm all ears.
 
Oct 10, 2017
220
12
18
#3
I knew about pete's thread but it's a 2012 code based. I knew about some codes aren't working now, like "Object:new" instead of "conv_handler:new". So it's a bit outdated.
 
Last edited:

Lasko

Moderator
Staff member
Moderator
Feb 13, 2012
259
9
18
#4
The convo handlers work as they always have.

You need the convo template in /mobile/conversations - you can either pull from strings or make your own custom.

You need to add the template to the mob template doing the convo - Just pick a mob template and copy the format

And you need the convo handler - again just follow the code through an existing mob

OR you can use themeparklogic and just use the strings - again pick a TP logic quest and follow the code through.
I submitted the Singular Nak quest on Emu a long while ago and its a good one to follow code wise as it's as simple as it gets.

There are several formats available to use... You just have to pick one and follow it through code wise to see how it works.

Convo handlers really need an understanding of the code to follow whats actually happening.... Took me a while, but nothings really changed there.
 
Likes: Aeryna
Oct 10, 2017
220
12
18
#5
I'm after this now. I's not .Sqf but Lua, but i'll find a solution. Thank you for the tip.
 
Last edited:
Oct 10, 2017
220
12
18
#6
A simple more question:

To give a player a waypoint?.


Code:
local pGhost = CreatureObject(pPlayer):getPlayerObject()


local waypointID = PlayerObject(pGhost):addWaypoint("lok", "Imperial Research Facility", "Imperial Research Facility", 11, -12, WAYPOINT_COLOR_PURPLE, true, true, 0)
I'm missing something.

WAYPOINT_COLOUT_PURPLE is not defined but i don't know where to find them.
 
Oct 10, 2017
220
12
18
#7
Thank you guys.
** I know there are some people in this forum who really don't like to help OR they don't want others to know their code. I remind them it's SWGEMU code and it's open. Selfishness is bad. Like Vlada says: "Share is good" (or something like that). So we expect what i can offer (when possible).

After few days and using part of Elpete's stuff and Pake's script plus originals i can post my code for a single killing Quest. It has mission triggers, inventory checking and custom reward.
* Some things must be changed like NPCS, positions, rewards and language but it's working fine.
This mission only needs the waypoint i was asking about the last post there up.

I really hope help someone who needs.

LET'S START BELOW
 
Last edited:
Oct 10, 2017
220
12
18
#8
jaina.lua: [keep in mind to add in scripts/screenplays.lua]

*** Script fixed on Nov 13. Now works for everyone who wants to make the quest.
 

Attachments

Last edited:
Oct 10, 2017
220
12
18
#10
Now add the conversation template to a desired NPC [mine was jaina_quest_template].


Code:
jaina_solo = Creature:new {

    objectName = "@mob/creature_names:jaina_solo",

--  customName = "Jaina Solo",

--    socialGroup = "townsperson",

--    faction = "townsperson",

    level = 260,

    chanceHit = 20,

    damageMin = 1245,

    damageMax = 1490,

    baseXp = 100,

    baseHAM = 560000,

    baseHAMmax = 600000,

    armor = 3,

    resists = {150,150,150,150,150,150,150,150,-1},

    meatType = "",

    meatAmount = 0,

    hideType = "",

    hideAmount = 0,

    boneType = "",

    boneAmount = 0,

    milk = 0,

    tamingChance = 0,

    ferocity = 0,

    pvpBitmask = ATTACKABLE,

    creatureBitmask = PACK + HEALER,

    optionsBitmask =  CONVERSABLE + INTERESTING,

    diet = HERBIVORE,

    templates = {"object/mobile/jaina_solo.iff"},

    lootGroups = {},

    weapons = {"jaina_solo_weapon"},

    conversationTemplate = "jaina_quest_template",

  attacks = merge(lightsabermaster,forcewielder)

}

CreatureTemplates:addCreatureTemplate(jaina_solo, "jaina_solo")


Now just need to begin the quest at this NPC.
I wish this help you.
 

Attachments

Jan 16, 2015
105
7
8
42
#11
A simple more question:

To give a player a waypoint?.


Code:
local pGhost = CreatureObject(pPlayer):getPlayerObject()


local waypointID = PlayerObject(pGhost):addWaypoint("lok", "Imperial Research Facility", "Imperial Research Facility", 11, -12, WAYPOINT_COLOR_PURPLE, true, true, 0)
I'm missing something.

WAYPOINT_COLOUT_PURPLE is not defined but i don't know where to find them.
I think you have to set a quest status with a waypointid name there is a good example in https://github.com/TheAnswer/Core3/...ays/tasks/hero_of_tatooine/heroOfTatooine.lua

for the function HeroOfTatooineScreenPlay:giveAltruismWaypoint(pPlayer) and the remove waypoint function too.
 
Oct 10, 2017
220
12
18
#12
Yep. That code is right. It's a good point from the start. The waypoint must have the playerID but "WAYPOINT_COLOR_PURPLE" is not defined in the script and i can't find the right command to get the waypoint colored.
 
Jan 16, 2015
105
7
8
42
#13
Yep. That code is right. It's a good point from the start. The waypoint must have the playerID but "WAYPOINT_COLOR_PURPLE" is not defined in the script and i can't find the right command to get the waypoint colored.
I have been playing around with your script but not getting the error for WAYPOINT_COLOR_PURPLE.. it is the same command that is used for the jedi trails and the altruism quest so should work. I am having trouble getting it to show up at the moment.... I get no error messages or waypoint lol
 
Oct 10, 2017
220
12
18
#14
Yeah. that's the case. No errors No waypoints. Strange.
I'm sure WAYPOINT_COLOR_PURPLE is a defined value. I saw another script where the colour was "waypointBlue", or something like that, or even a number "2". So different than WAYPOINT_COLOR_PURPLE ...
 
Jan 16, 2015
105
7
8
42
#15
Yeah. that's the case. No errors No waypoints. Strange.
I'm sure WAYPOINT_COLOR_PURPLE is a defined value. I saw another script where the colour was "waypointBlue", or something like that, or even a number "2". So different than WAYPOINT_COLOR_PURPLE ...
there is a world waypoint color purple lua file so does exist
 
Oct 10, 2017
220
12
18
#16
there is a world waypoint color purple lua file so does exist
Checking it!.

"WaypointObjectImplementation.cpp" in zone/objects/waypoint, where "color = COLOR_BLUE;" and
"WaypointObject" where:
COLOR_WHITE = 0x00;
COLOR_BLUE = 0X01;
and so.
Maybe the right code is COLOR_BLUE ,not "WAYPOINT_COLOR_PURPLE ".


Btw, i don't think that value is not defined in lua but cpp.
 
Last edited: