![]() |
#1
|
|||
|
|||
![]()
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 |
|
|