RageLeague Posted March 30, 2020 Author Share Posted March 30, 2020 37 minutes ago, pacovf said: Go chat yourself up. You seem sad. It's just the default expression for people who drinks at the bar. Can't be too happy when everyone dies everyday all the time. Link to comment Share on other sites More sharing options...
Developer Kevin Posted March 31, 2020 Developer Share Posted March 31, 2020 Link to comment Share on other sites More sharing options...
RageLeague Posted April 6, 2020 Author Share Posted April 6, 2020 Figured out how to add custom conversations with the new mod system. Link to comment Share on other sites More sharing options...
Wumpus the 19th Posted April 6, 2020 Share Posted April 6, 2020 if were still talking about custom cards and not just general mod stuff, i thought of a card idea. <Violent Tendencies>: Status card from murder. Deal x health damage (not resolve) to opponent, opponent gains y stacks of impatience (something like 1 stack for every 5-10 damage, enough to weaken them if the negotiation fails and leads to a fight, while still being a bad card and punishment for murder) . This was mostly based on another idea for abilities i had that involved intertwining resolve and health more by making a card that weakens the health of the opponent while making the negotiation harder. also changing dialogue is one step closer to dystopian sci-fi dungeons and dragons. Link to comment Share on other sites More sharing options...
RageLeague Posted April 6, 2020 Author Share Posted April 6, 2020 7 minutes ago, Wumpus the 19th said: .if were still talking about custom cards and not just general mod stuff, i thought of a card idea. <Violent Tendencies>: Status card from murder. Deal x health damage to opponent, opponent gains x stacks of impatience. This was mostly based on another idea for abilities i had that involved intertwining resolve and health more by making a card that weakens the health of the opponent while making the negotiation harder. also changing dialogue is one step closer to dystopian sci-fi dungeons and dragons. I have no idea how good it is. If you want me to incept impatience equal to the damage dealt, it will be a very bad idea. Link to comment Share on other sites More sharing options...
Wumpus the 19th Posted April 6, 2020 Share Posted April 6, 2020 1 minute ago, RageLeague said: I have no idea how good it is. If you want me to incept impatience equal to the damage dealt, it will be a very bad idea. first of all, christ you work fast. secondly, i mostly thought of some mechanic i wrote about in another post. it's something that i'd swear wouldn't be in the game or never really get in since it's weird as an idea. i should have clarified. i did not think of "impatience equal to damage", that would be ludicrious. it was more proportional, maybe 1 stack of impatience to 5 or 10 damage to their health, not anything in their negotiation. your version is a very nice idea, bravo. Link to comment Share on other sites More sharing options...
RageLeague Posted April 9, 2020 Author Share Posted April 9, 2020 Apologize with the bad quality of the screenshot. I don't know if this is the server's problem or my internet's problem, but I can't post screenshots directly for some reason(-200, whatever that means), so I have to save it as jpg first, making the quality suck. Anyway, playing around with the location system. I added a sublocation in the Admiralty Headquarters called "Holding cells", where prisoners gets imprisoned. Basically, the prisoners here "works" a 24-hour shift of being prisoners, so they can't spawn anywhere else(Probably). I also override the cast function in questdefs so that they can't normally be cast as roles, so they can't spawn quests, or involve with any quests. There is the warden, which you can talk to, and you can bail out someone in the prison if you have enough shills. The cost of bailing someone out depends on their combat difficulty. Bailing someone out will make them love you, unless they hate you, in which case they become indifferent to you. Currently there is a bug where the location icon displays at the incorrect place in the overworld map. If you have a quest that involves around a guard in the holding cell, the quest icon doesn't always shows up at the headquarters. You can also go directly to the sublocation, without going to the headquarter front door first. Link to comment Share on other sites More sharing options...
Developer Kevin Posted April 9, 2020 Developer Share Posted April 9, 2020 Very neat! Something like this might make your sublocation show up in the right place: interior_loc:SetMapPos(exterior_loc:GetMapPos()) Link to comment Share on other sites More sharing options...
RageLeague Posted April 9, 2020 Author Share Posted April 9, 2020 Where do you call the function again? I called it immediately after my sublocation declaration, and it gives me this error. This is my code: Content.GetLocationContent("ADMIRALTY_BARRACKS.holding_cell"):SetMapPos(Content.GetLocationContent("ADMIRALTY_BARRACKS"):GetMapPos()) I clearly used it wrong, since location data is different from the location class, but I don't know where to call it or how to call for the location instead of location data. Link to comment Share on other sites More sharing options...
Developer Kevin Posted April 9, 2020 Developer Share Posted April 9, 2020 Ah, yeah. Looks like you are using on the constant content of the location. You need to use it on the instantiated instance of the location, after it has been assigned a location by the travel screen. So, probably when you first go there? It's a bit tricky - we don't tend to use sublocations that often, so they're not super well-defined. Link to comment Share on other sites More sharing options...
SpicyNiceCream Posted April 10, 2020 Share Posted April 10, 2020 sob. I still dunno how to modify already existing files via mod. Link to comment Share on other sites More sharing options...
RageLeague Posted April 10, 2020 Author Share Posted April 10, 2020 14 hours ago, SpicyNiceCream said: sob. I still dunno how to modify already existing files via mod. I don't think you can either, but you can change a function of an existing class. For example, I changed the behavior of QuestDef.IsValidAgentPick() by doing something like this: local oldFunction = QuestDef.IsValidAgentPick QuestDef.IsValidAgentPick = function( agent, cast_def, quest, spawn_params ) -- print("successful override function") if agent:GetBrain():GetWorkPosition() and agent:GetBrain():GetWorkPosition():GetRole() == CHARACTER_ROLES.PRISONER and not cast_def.allow_prisoner_cast then print("successful override function") return false, "Imprisoned people can't be cast normally" end return oldFunction( agent, cast_def, quest, spawn_params ) end Because of how Lua works, you can reassign a function to an existing method of a class, like assigning static variables. This method works 5 out of 6 times for me. (Can someone explain why overriding the plaxeditor class doesn't work for some reason?) Link to comment Share on other sites More sharing options...
RageLeague Posted April 10, 2020 Author Share Posted April 10, 2020 Now people arrested by the admiralty actually shows up in the prison. When I say "arrested by admiralty", I mean anyone who has the "SOLD_OUT_TO_ADMIRALTY" relationship with the player that also retires. So literally just the target of "Bounty Hunt", because the opinion event for "Competing bids" target is "turned them in as bounty" for some reason. Link to comment Share on other sites More sharing options...
RageLeague Posted April 10, 2020 Author Share Posted April 10, 2020 Now fix the problem of quest bubble displaying incorrectly. Link to comment Share on other sites More sharing options...
RageLeague Posted April 11, 2020 Author Share Posted April 11, 2020 Made the uncommon parasites not strictly detrimental. Haven't actually balanced them yet. Link to comment Share on other sites More sharing options...
RageLeague Posted April 18, 2020 Author Share Posted April 18, 2020 Hmmm... (Doing tests on how to mod characters into other character's campaign.) Link to comment Share on other sites More sharing options...
RageLeague Posted April 19, 2020 Author Share Posted April 19, 2020 Link to comment Share on other sites More sharing options...
SpicyNiceCream Posted April 20, 2020 Share Posted April 20, 2020 Seems like Sal has gain some weight. Link to comment Share on other sites More sharing options...
RageLeague Posted April 20, 2020 Author Share Posted April 20, 2020 1 hour ago, SpicyNiceCream said: Seems like Sal has gain some weight. That's the thing that you noticed and not the automech drinking at the bar. Link to comment Share on other sites More sharing options...
TF3 Posted April 20, 2020 Share Posted April 20, 2020 1 hour ago, RageLeague said: That's the thing that you noticed and not the automech drinking at the bar. Even Enforcers need some time to unwind every once in a while. Link to comment Share on other sites More sharing options...
SpicyNiceCream Posted April 20, 2020 Share Posted April 20, 2020 1 hour ago, RageLeague said: That's the thing that you noticed and not the automech drinking at the bar. I just assume they're refueling and was perfectly fine with it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.