- Joined
- Feb 6, 2009
- Messages
- 50
-
Knight
-
Events
- Unit - A unit Gains a level
-
Conditions
- (Unit-type of (Triggering unit)) Equal to knight
-
Actions
- Unit - Set level of Honor skill for (Triggering unit) to (Level of (Triggering unit))
-
Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit))) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) is A Hero) Equal to True
-
Then - Actions
- Unit - Add Honor skill to (Picked unit)
- Hero - Set (Picked unit) Hero-level to (Hero level of (Triggering unit)), Hide level-up graphics
- Unit - Set level of Honor skill for (Picked unit) to (Hero level of (Triggering unit))
- Hero - Modify Strength of (Picked unit): Set to (Strength of (Triggering unit) (Exclude bonuses))
- Hero - Modify Agility of (Picked unit): Set to (Agility of (Triggering unit) (Exclude bonuses))
- Hero - Modify Intelligence of (Picked unit): Set to (Intelligence of (Triggering unit) (Exclude bonuses))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Events
Each player (3 players) has a group of around 20 playable units, only one of these units are active at a time, the rest are in a specific location. clicking on one instantly switches the active and the inactive units.
when a character gains a level all units gain a level, but the only stat increase and ability learned should come from the active character.
I don't know how to do this (aside from the stats).
I was wondering however i I should make an array for each player and each ability (they are all spellbooks by the way) so that when a character gains a level then the number stored in the array increases and then so does the skill for each unit?
That would be rather time consuming, but I can not think of a faster/better way at the moment.
on a side note, I am going to change it from "set level" to setting the experience the same. This wouldn't make things worse/harder would it?