Author Topic: [WB, Code] Custom Lord Notes OSP  (Read 4411 times)

0 Members and 1 Guest are viewing this topic.

Lav

  • Sergeant Knight at Arms
  • *
    • Skype - Eleyvie
    • Steam - eleyvie
    • View Profile
    • Lav's Warband Workshop
  • Faction: Vaegir
  • MP nick: Lav
  • M&BWB
[WB, Code] Custom Lord Notes OSP
« on: January 20, 2012, 08:38:40 PM »
A very small mod which adds an extra item to lord parties context menu (available through right click). From there, player can open a dialog window for the lord, and enter some custom notes about him. Those notes will appear on the lord's information screen and will persist until player enters some other note.

Download URL #1: http://www.nexusmods.com/mountandblade/mods/3498
Download URL #2: http://www.mbrepository.com/file.php?id=3498

Screenshots of the presentation in action:
(click to show/hide)

This is just a proof of concept, you are free to use and change it as you deem necessary.

dunde

  • Count
  • *
  • Curious Coder of The Vision
    • View Profile
  • Faction: Swadian
  • WB
Re: [Code] Custom Lord Notes OSP
« Reply #1 on: January 20, 2012, 11:10:04 PM »
It's just what I'm looking for. Thanks for sharing.

The Real Slate

  • Master Knight
  • *
  • When you conquer fear of death, you start to live.
    • Steam - therealslate
    • View Profile
    • Insanity's Finest Discord
  • Faction: Neutral
  • MP nick: Sir Slate
  • M&BWBWF&S
Re: [Code] Custom Lord Notes OSP
« Reply #2 on: January 21, 2012, 12:22:42 AM »
That is really cool man, good feature!

dunde

  • Count
  • *
  • Curious Coder of The Vision
    • View Profile
  • Faction: Swadian
  • WB
Re: [WB, Code] Custom Lord Notes OSP
« Reply #3 on: January 21, 2012, 12:01:59 PM »
Applied, and working perfectly. Thanks again, Lav. BTW, I'm tempted to apply it to centers too ;)

Efe Karacar

  • Duke
  • *
  • aka Belendor
    • Steam - Belendor
    • Twitch.tv - Belendorr
    • YouTube - Belendor
    • View Profile
    • Art of Efe Karacar
  • Faction: Swadian
  • MP nick: Belendor
  • WBWF&SNWVCM&B
Re: [WB, Code] Custom Lord Notes OSP
« Reply #4 on: January 21, 2012, 12:08:15 PM »
Hah, quite awesome. Will certainly get some good use of this. :)

Lav

  • Sergeant Knight at Arms
  • *
    • Skype - Eleyvie
    • Steam - eleyvie
    • View Profile
    • Lav's Warband Workshop
  • Faction: Vaegir
  • MP nick: Lav
  • M&BWB
Re: [WB, Code] Custom Lord Notes OSP
« Reply #5 on: January 21, 2012, 12:18:41 PM »
Applied, and working perfectly. Thanks again, Lav. BTW, I'm tempted to apply it to centers too ;)
Go ahead. :-) Though I'm not sure what a player would want to memo about centers - nothing except trade prices comes to mind, and trade prices are much better handled by Merchant's Ledger.

Cozur

  • Grandmaster Knight
  • *
  • Censored.
    • Twitter - @realcozur
    • View Profile
  • Faction: Neutral
  • WB
Re: [WB, Code] Custom Lord Notes OSP
« Reply #6 on: January 23, 2012, 02:48:38 PM »
As a quick question, would it be possible to change it so that the creator of a mod, say A Clash of Kings, could pop in notes for the Lords that cannot be changed by the player and are rather some background information for each Lord?

Say I want Count John Cleese to have an unchangeable note saying "Born in the backwards County of Slumtown, named Lord of Slumtown in the year 221"?

dunde

  • Count
  • *
  • Curious Coder of The Vision
    • View Profile
  • Faction: Swadian
  • WB
Re: [WB, Code] Custom Lord Notes OSP
« Reply #7 on: January 23, 2012, 02:53:01 PM »
As a quick question, would it be possible to change it so that the creator of a mod, say A Clash of Kings, could pop in notes for the Lords that cannot be changed by the player and are rather some background information for each Lord?

Say I want Count John Cleese to have an unchangeable note saying "Born in the backwards County of Slumtown, named Lord of Slumtown in the year 221"?

  #script_game_get_troop_note
  # This script is called from the game engine when the notes of a troop is needed.
  # INPUT: arg1 = troop_no, arg2 = note_index
  # OUTPUT: s0 = note

Learn the script and then you will find out how to do what you want.

Idibil

  • External Developer
  • *
    • View Profile
    • Nova Regula
  • Faction: Nord
  • MP nick: Celt√≠beroIdibil
Re: [WB, Code] Custom Lord Notes OSP
« Reply #8 on: January 23, 2012, 03:21:36 PM »
Nice feature Lav

Lav

  • Sergeant Knight at Arms
  • *
    • Skype - Eleyvie
    • Steam - eleyvie
    • View Profile
    • Lav's Warband Workshop
  • Faction: Vaegir
  • MP nick: Lav
  • M&BWB
Re: [WB, Code] Custom Lord Notes OSP
« Reply #9 on: January 23, 2012, 10:12:29 PM »
As a quick question, would it be possible to change it so that the creator of a mod, say A Clash of Kings, could pop in notes for the Lords that cannot be changed by the player and are rather some background information for each Lord?

Say I want Count John Cleese to have an unchangeable note saying "Born in the backwards County of Slumtown, named Lord of Slumtown in the year 221"?
Sure. You need add_troop_note_from_sreg operation. Each troop has 16 slots for notes (numbered from 0 to 15). For troops, slots from 3 to 15 are used for rumours. However it's quite easy to change this range (as I did in this presentation). Then you set the note, and it will persist.