- Joined
- Jun 10, 2008
- Messages
- 1,399
Yeah, i'm making a map. And i need help with a script i've been working on. What it basically does, is when a unit kills another unit. it takes a random number between 1 and 3 and if it returns 1 then it adds a rank, aka, removes other rank abilities and adds the +rank level armor, +rank level dmg and +Ability that you can see that says what rank the unit is
This is what i have so far, i'm having trouble with the condition
This is what i have so far, i'm having trouble with the condition
-
Rank system
-
Events
- Unit - A unit Dies
-
Conditions
- (Random integer number between 1 and 3) Equal to 1
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Ability being cast) Equal to Rank 1 <-- Killing unit has ability
- Then - Actions
-
Else - Actions
- Unit - Add Rank 2 to (Killing unit)
- Unit - Add Rank 2 Armor to (Killing unit)
- Unit - Add Rank 2 Dmg to (Killing unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Ability being cast) Equal to Rank 2 <-- Killing Unit has ability
- Then - Actions
-
Else - Actions
- Unit - Add Rank 3 to (Killing unit)
- Unit - Add Rank 3 Armor to (Killing unit)
- Unit - Add Rank 3 Dmg to (Killing unit)
-
If - Conditions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events