Jump to content


Photo

Increase Command Points with Spell Book Power


  • Please log in to reply
7 replies to this topic

#1 Super Hippo

Super Hippo
  • Members
  • 29 posts

Posted 19 February 2019 - 02:48 PM

Hi,

since I dislike spell book powers which summon anything (especially anything absolutely overpowered), I thought of starting to replace Balrog and Army of the Dead with something else and found that there is a command to give 100 CP. I put it in the spell book, I can buy it, it appears on the left side of the screen, but the CP limit is not affected by that at all.

Am I missing something or is there another way to increase the CP limit with a spell book power?

 

Codes:

Spoiler

 

 

Despite the fact that nothing is working so far, I would like to have a permanent (passive) buff to the CP limit which could be either +X CP or +X % CP. If not %, the amount should be different for good and evil. When a player is defeated and you gain CP for that, this buff should apply to this new limit again.



#2 Echo

Echo

    T3A:Online

  • T3A Staff
  • 1,069 posts
  • Location:Germany
  • Projects:Lot3A
  •  ~~
  • Division:BFME
  • Job:T3A Moderator
  • Donated

Posted 19 February 2019 - 06:50 PM

I tried to use this power also, but so far to no avail. There's a chance that this power is not working or buggy and that's why EA decided to cut it from the release (among many other things). There's also a chance that it is possible to somehow make this power work, but in that case EA has removed the important pieces of code from the ini files. The only thing I can find in game.dat regarding this power is the special power enum. Maybe there is somehow a leftover module like "CommandPointUpgrade" or something, but I could not find any module like that. 

 

I assume it was conflicting with the command point behavior that happens when players get defeated, and therefore EA just took it out entirely..


26285.png


#3 Slava Shadrinov

Slava Shadrinov
  • Members
  • 178 posts
  • Projects:The Word Of Tolkien Mod

Posted 20 February 2019 - 02:38 PM

So, you can summon invisible object with spellbook who adds you a command points.
Something like Sauron eye or Crebain but without visible textures)

You need to add this: CommandPointBonus = 800 (you can change 800 to 100 or any other) in design parameters, for example get Balrog codes:
 

; ***DESIGN parameters ***
DisplayName      = OBJECT:Balrog
;//DisplayMeleeDamage = BALROG_DAMAGE_DISPLAY
 
Side = Neutral
EditorSorting = UNIT
ThreatLevel = BALROG_THREAT_LEVEL
ThingClass = CHARACTER_UNIT
CrusherLevel   = 4  ;What can I crush?: 1 = infantry, 2 = trees, 3 = vehicles
CrushWeapon = BalrogCrush  
CommandPointBonus = 800
TransportSlotCount = TRANSPORTSLOTCOUNT_MONSTER

Sorry dont see this is bfme1 topic but you can try this, i think it shoud work

Edited by Slava Shadrinov, 20 February 2019 - 05:55 PM.


#4 Miraak5

Miraak5

    title available

  • Members
  • 389 posts
  • Location:France
  • Projects:ROTWK Patch 2.02, Wars of the North, BFME1 1.08 Complete Edition
  •  BIG coding, Map scripting and AI coding

Posted 20 February 2019 - 06:19 PM

I have a list of all existing behaviors in the game and i found something called "CommandPointsUpgrade"

i didn't know what parameters it accepted because it was unused in the game so i dit some testing and luckily found something that didn't crashed the game (but didn't have time to check in if it worked)

Behavior = CommandPointsUpgrade ModuleTag_CommandPointsBonus
   TriggeredBy = Upgrade_YourUpgrade
   CommandPoints = 100
End

i would suggest you to create a code in system.ini that would give the upgrade

Behavior = PlayerUpgradeSpecialPower	SpellBookCommandPoints_ModuleTag
	SpecialPowerTemplate		= SpellBookPlus100CommandPoints
	UpgradeName 				= Upgrade_YourUpgrade
	UpdateModuleStartsAttack	= No
	AffectAllies				= No ; Should not try to affect ally units
	AvailableAtStart			= No
End

and so then you put the first code (CommandPointsUpgrade) in an object, like the citadel or you might try the castle floor object if you dont want to loose the bonus when the citadel is destroyed
and if this code still work in the game then when you buy the spell you should get a CP bonus


He was the first...


#5 Echo

Echo

    T3A:Online

  • T3A Staff
  • 1,069 posts
  • Location:Germany
  • Projects:Lot3A
  •  ~~
  • Division:BFME
  • Job:T3A Moderator
  • Donated

Posted 20 February 2019 - 07:22 PM

^ I think you guys did not pay attention that this is the BFME 1 Modding Forum and magic like that did not exist back then... :p


26285.png


#6 Miraak5

Miraak5

    title available

  • Members
  • 389 posts
  • Location:France
  • Projects:ROTWK Patch 2.02, Wars of the North, BFME1 1.08 Complete Edition
  •  BIG coding, Map scripting and AI coding

Posted 20 February 2019 - 07:47 PM

i knew that "CommandPointBonus = 800" was the bfme2 classic system but was pretty sure CommandPointsUpgrade could have worked in bfme1 too bad

anyway the cut plus100commandpoints power will never work as long as you do not find a working code for it in system.ini :(


He was the first...


#7 Super Hippo

Super Hippo
  • Members
  • 29 posts

Posted 22 February 2019 - 05:25 PM

Thank you for your replies!

I just tried to create an invisible object which gives CP. I did all the stuff for commandbuttons, commandsets and system, but I should have checked first that the "CommandPointBonus" line gives a startup error…

Man, I guess I can't make anything working :thumbsdownsmiley: 



#8 Echo

Echo

    T3A:Online

  • T3A Staff
  • 1,069 posts
  • Location:Germany
  • Projects:Lot3A
  •  ~~
  • Division:BFME
  • Job:T3A Moderator
  • Donated

Posted 23 February 2019 - 03:12 AM

BFME 1 just doesn't allow people to make things work. It's not you. :p


26285.png





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users