Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > King's Bounty > King's Bounty: The Legend > Mods

Mods Everything about mods

Reply
 
Thread Tools Display Modes
  #1  
Old 05-27-2009, 05:45 PM
TheWizardKs TheWizardKs is offline
Registered Member
 
Join Date: May 2009
Posts: 9
Default Anyone have knowledge of how scrolls work?

EDIT__
figured this one out finally. To give a random chance for a scroll...

find this in the arena.lua file approx line #255 (at least it is 255 in my arena.lua, yours will be this or close depending on mods)

The actual line reads:

function calc_bonus() --ftag:bonus

Then add these lines:

-- chance of scroll
if (Game.Random(1,100) <= tonumber(5)) then
Logic.hero_add_spell( "spell_resurrection", 0, 1 )
end

I have not tried to use numbers for the 'spell_resurrection" part yet, but my main goal of aquiring a rez scroll has been met. Also I did not use the random check in game, just put the logic.hero line in and fought one battle, so I won't swear the random stuff is right yet. going off memory and it's hours past bedtime, mind fried, later

End EDIT__

I'm trying to have a random chance to gain a random scroll after a battle sort of like the extra rune and rage/mana pot mods do. I can not seem to figure out what the exact call to add an item is for them. Does anyone have this knowledge?

Last edited by TheWizardKs; 05-28-2009 at 11:19 AM. Reason: found info on scrolls
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:09 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.