- Joined
- Mar 15, 2012
- Messages
- 2,877
It's a tome-based damage system and sadly it only loops once so I am confused now and would appreciate anyone's help if possible.
[trigger=]
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Set itemamountmax = (itemamountmax + 1)
Set itembase[itemamountmax] = Zweihander
Set itembasedmg10s[itemamountmax] = 5
Set itembasedmg100s[itemamountmax] = 2
[/trigger]
[trigger=]
Events
Unit - A unit Acquires an item
Conditions
Actions
For each (Integer itemloop1) from 1 to itemamountmax, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item being manipulated)) Equal to itembase[itemloop1]
Then - Actions
For each (Integer ZITEMLOOP[1]) from 1 to itembasedmg100s[itemloop1], do (Actions)
Loop - Actions
Hero - Create atk add 100 and give it to (Triggering unit)
For each (Integer ZITEMLOOP[2]) from 1 to itembasedmg10s[itemloop1], do (Actions)
Loop - Actions
Hero - Create atk add 10 and give it to (Triggering unit)
Else - Actions
[/trigger]
[trigger=]
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Set itemamountmax = (itemamountmax + 1)
Set itembase[itemamountmax] = Zweihander
Set itembasedmg10s[itemamountmax] = 5
Set itembasedmg100s[itemamountmax] = 2
[/trigger]
[trigger=]
Events
Unit - A unit Acquires an item
Conditions
Actions
For each (Integer itemloop1) from 1 to itemamountmax, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item being manipulated)) Equal to itembase[itemloop1]
Then - Actions
For each (Integer ZITEMLOOP[1]) from 1 to itembasedmg100s[itemloop1], do (Actions)
Loop - Actions
Hero - Create atk add 100 and give it to (Triggering unit)
For each (Integer ZITEMLOOP[2]) from 1 to itembasedmg10s[itemloop1], do (Actions)
Loop - Actions
Hero - Create atk add 10 and give it to (Triggering unit)
Else - Actions
[/trigger]
Last edited: