hmm yea this is pretty useful but instead of having to preload only certain items why not make it like this
[trigger=trig]
Untitled Trigger 001
Events
Time - Elapsed game time is 3.00 seconds
Conditions
Actions
For each (Integer A) from 1 to 400, do (Actions)
Loop - Actions
Hero - Create (Random level -1 item-type) and give it to Blood Mage 0001 <gen>
Set count = (count + 1)
Set count2 = (count2 + 1)
Set item[(Integer A)] = (Item-type of (Last created item))
Trigger - Run Untitled Trigger 002 <gen> (checking conditions)
[/trigger]
[trigger=trig]
Untitled Trigger 002
Events
Conditions
Actions
For each (Integer count) from 1 to count, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
item[count2] Equal to item[count]
Then - Actions
Set item[count2] = (Random level -1 item-type)
Hero - Create item[count2] and give it to Blood Mage 0001 <gen>
Else - Actions
[/trigger]
[trigger=trig]
Untitled Trigger 003
Events
Unit - A unit Acquires an item
Conditions
Actions
Hero - Drop (Item being manipulated) from (Hero manipulating item)
Item - Remove (Last created item)
[/trigger]
sure this may cause the game to freeze for about 8 seconds but it will preload everything