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: Armored Princess > Mods

Mods Armored Princess mods

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 01-16-2011, 12:37 AM
bucazaurus's Avatar
bucazaurus bucazaurus is offline
Approved Member
 
Join Date: Sep 2009
Posts: 131
Default

To be honest with you , i had no idea what i did. I saw your post and decided to experiment . My logic behind the numbers was that the game rolls a number ranging from 0 to 100 to decide what the reward will be...

if r < 97 then (...so only if the number rolled is higher then 97 the gold will be generated with that amount .)
Boxgen.parcount( "money", "*1" ) -- ãåíåðèì äåíåã Mini

Another example.
K = K - 15 (any number below this will generate gold)
if K < 0 then
local r = Boxgen.rnd(100)

if r < 20 then (if the number rolled is between 15 and 20 you get 3 crystals)
Boxgen.parcount( "crystals", "3" )
elseif r < 50 then (if number is between 20 and 50 you get 5 crystals)
Boxgen.parcount( "crystals", "5" )
elseif r < 65 then (and so on )
Boxgen.parcount( "crystals", "10" )

Again , this is how i thought the system works. It might be wrong , but it seems is working.
Reply With Quote
 


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 12:04 PM.


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