- Joined
- Sep 9, 2007
- Messages
- 6,759
What I am trying:
I am trying to set the HP of a unit to somewhat I want.
So I made 5 spells which change the hp.
All spells have 9 levels (so maximum of 9X1*10^(1-5))
so for example first spell has the hp adding from 1-9
the second from 10 - 90. etc.
But with some reason my added abilities cannot be setted after.
I am trying to set the HP of a unit to somewhat I want.
So I made 5 spells which change the hp.
All spells have 9 levels (so maximum of 9X1*10^(1-5))
so for example first spell has the hp adding from 1-9
the second from 10 - 90. etc.
But with some reason my added abilities cannot be setted after.
-
CreepSpawn I Change HP
- Events
- Conditions
-
Actions
- Set CS_HPChangers[1] = +Hp [1]
- Set CS_HPChangers[2] = +Hp [10]
- Set CS_HPChangers[3] = +Hp [100]
- Set CS_HPChangers[4] = +Hp [1000]
- Set CS_HPChangers[5] = +Hp [10000]
-
For each (Integer A) from 1 to 5, do (Actions)
-
Loop-Actions
- Set CS_HPChanging_Levels[(Integer A)] = 0
-
Loop-Actions
- Set CS_WantedHP = 30
- Set CS_CurHP = (Integer((Max. Leben of Spinne 0078 <gen>)))
- Set CS_HPtoAdd = (CS_WantedHP - CS_CurHP)
-
For each (Integer A) from 1 to 9, do (Actions)
-
Loop-Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Conditions
- CS_HPtoAdd bigger or equal to 10000
-
'THEN'-Actions
- Set CS_HPtoAdd = (CS_HPtoAdd - 10000)
- Set CS_HPChanging_Levels[5] = (CS_HPChanging_Levels[5] + 1)
- 'ELSE'-Actions
-
'IF'-Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop-Actions
-
For each (Integer A) from 1 to 9, do (Actions)
-
Loop-Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Conditions
- CS_HPtoAdd bigger or equal to 1000
-
'THEN'-Actions
- Set CS_HPtoAdd = (CS_HPtoAdd - 1000)
- Set CS_HPChanging_Levels[4] = (CS_HPChanging_Levels[4] + 1)
- 'ELSE'-Actions
-
'IF'-Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop-Actions
-
For each (Integer A) from 1 to 9, do (Actions)
-
Loop-Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Conditions
- CS_HPtoAdd bigger or equal to 100
-
'THEN'-Actions
- Set CS_HPtoAdd = (CS_HPtoAdd - 100)
- Set CS_HPChanging_Levels[3] = (CS_HPChanging_Levels[3] + 1)
- 'ELSE'-Actions
-
'IF'-Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop-Actions
-
For each (Integer A) from 1 to 9, do (Actions)
-
Loop-Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Conditions
- CS_HPtoAdd bigger or equal to 10
-
'THEN'-Actions
- Set CS_HPtoAdd = (CS_HPtoAdd - 10)
- Set CS_HPChanging_Levels[2] = (CS_HPChanging_Levels[2] + 1)
- 'ELSE'-Actions
-
'IF'-Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop-Actions
-
For each (Integer A) from 1 to 9, do (Actions)
-
Loop-Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Conditions
- CS_HPtoAdd smaller as 10
- CS_HPtoAdd bigger als 0
-
'THEN'-Actions
- Set CS_HPtoAdd = (CS_HPtoAdd - 1)
- Set CS_HPChanging_Levels[1] = (CS_HPChanging_Levels[1] + 1)
- 'ELSE'-Actions
-
'IF'-Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop-Actions
- Wait 0.30 seconds
-
For each (Integer A) from 1 to 5, do (Actions)
-
Loop-Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Conditions
- CS_HPChanging_Levels[(Integer A)] bigger as 0
-
'THEN'-Actions
- Unit - Add CS_HPChangers[(Integer A)] to Spinne 0078 <gen>
- 'ELSE'-Actions
-
'IF'-Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop-Actions
- Wait 0.30 seconds
-
For each (Integer A) from 1 to 5, do (Actions)
-
Loop-Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Conditions
- CS_HPChanging_Levels[(Integer A)] bigger as 0
-
'THEN'-Actions
- Unit - Set level of CS_HPChangers[(Integer A)] for Spinne 0078 <gen> to CS_HPChanging_Levels[(Integer A)]
- Game - Display to (All players) for 2.00 seconds the text: ((Name of CS_HPChangers[(Integer A)]) + ( : + (String(CS_HPChanging_Levels[(Integer A)]))))
- 'ELSE'-Actions
-
'IF'-Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop-Actions