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 > Adventure mode

Adventure mode All you want to know about adventure mode (may contain SPOILERS)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 12-01-2008, 11:25 PM
Lari Lari is offline
Approved Member
 
Join Date: Nov 2008
Posts: 36
Default

Quote:
Originally Posted by Keneth View Post
After:
Code:
function calc_bonus() --ftag:bonus

  if (Game.Random(1,100) <= tonumber(Logic.hero_lu_skill("alchemist"))*10) then
    Logic.hero_add_item("mana_potion")
  end
Awesome answer.
Would this add the item at the end of combat? ->

Code:
function calc_bonus() --ftag:bonus
 
 if 1 then
   Logic.hero_add_item("the_boots_that_i_miss_to_complete_the_knight_set")
 end
Obviously i wll substitute the right name, after i look in item.txt. May i skip the "if 1 then" part?
Reply With Quote
 

Thread Tools
Display Modes

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:14 AM.


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