- Joined
- Apr 17, 2011
- Messages
- 302
So I was coding some stuff for my WoW III project and it worked until I added basically the same lines with different conditions.
I had it working at Mage, I then added the other classes and it stopped working throwing me the Expected endif errors, hundreds of them with a few others.
I'm hoping one of you more experienced coders will know what the problem is.
Thanks
EDIT Code bugs a bit on here at the Shaman (High Elf Male) part.
I had it working at Mage, I then added the other classes and it stopped working throwing me the Expected endif errors, hundreds of them with a few others.
I'm hoping one of you more experienced coders will know what the problem is.
Thanks
EDIT Code bugs a bit on here at the Shaman (High Elf Male) part.
-
Hero Generation
- Events
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to True
- Race Equal to 0
- HeroClass Equal to Hunter
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Hunter (Human Male) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
- Unit - Create 1 Pet for Player 1 (Red) at (Center of Pet <gen>) facing 270.00 degrees
- Set Pet = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to False
- Race Equal to 0
- HeroClass Equal to Hunter
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Hunter (Human Female) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
- Unit - Create 1 Pet for Player 1 (Red) at (Center of Pet <gen>) facing 270.00 degrees
- Set Pet = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to True
- Race Equal to 1
- HeroClass Equal to Hunter
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Hunter (High Elf Male) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
- Unit - Create 1 Pet for Player 1 (Red) at (Center of Pet <gen>) facing 270.00 degrees
- Set Pet = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to False
- Race Equal to 1
- HeroClass Equal to Hunter
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Hunter (High Elf Female) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
- Unit - Create 1 Pet for Player 1 (Red) at (Center of Pet <gen>) facing 270.00 degrees
- Set Pet = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to True
- Race Equal to 0
- HeroClass Equal to Druid
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Druid (Human Male) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to False
- Race Equal to 0
- HeroClass Equal to Druid
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Druid (Human Female) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to True
- Race Equal to 1
- HeroClass Equal to Druid
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Druid (High Elf Male) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to False
- Race Equal to 1
- HeroClass Equal to Druid
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Druid (High Elf Female) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to True
- Race Equal to 0
- HeroClass Equal to Mage
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Mage (Human Male) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to False
- Race Equal to 0
- HeroClass Equal to Mage
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Mage (Human Female) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to True
- Race Equal to 1
- HeroClass Equal to Mage
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Mage (High Elf Male) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to False
- Race Equal to 1
- HeroClass Equal to Mage
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Mage (High Elf Female) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to True
- Race Equal to 0
- HeroClass Equal to Paladin
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Paladin (Human Male) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to False
- Race Equal to 0
- HeroClass Equal to Paladin
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Paladin (Human Female) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to True
- Race Equal to 1
- HeroClass Equal to Paladin
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Paladin (High Elf Male) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to False
- Race Equal to 1
- HeroClass Equal to Paladin
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Paladin (High Elf Female) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to True
- Race Equal to 0
- HeroClass Equal to Priest
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Priest (Human Male) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to False
- Race Equal to 0
- HeroClass Equal to Priest
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Priest (Human Female) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to True
- Race Equal to 1
- HeroClass Equal to Priest
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Priest (High Elf Male) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to False
- Race Equal to 1
- HeroClass Equal to Priest
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Priest (High Elf Female) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to True
- Race Equal to 0
- HeroClass Equal to Rogue
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Rogue (Human Male) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to False
- Race Equal to 0
- HeroClass Equal to Rogue
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Rogue (Human Female) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to True
- Race Equal to 1
- HeroClass Equal to Rogue
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Rogue (High Elf Male) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to False
- Race Equal to 1
- HeroClass Equal to Rogue
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Rogue (High Elf Female) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to True
- Race Equal to 0
- HeroClass Equal to Shaman
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Shaman (Human Male) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to False
- Race Equal to 0
- HeroClass Equal to Shaman
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Shaman (Human Female) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to True
- Race Equal to 1
- HeroClass Equal to Shaman
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Shaman
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
(High Elf Male) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to False
- Race Equal to 1
- HeroClass Equal to Shaman
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Shaman (High Elf Female) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to True
- Race Equal to 0
- HeroClass Equal to Warlock
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Warlock (Human Male) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to False
- Race Equal to 0
- HeroClass Equal to Warlock
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Warlock (Human Female) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to True
- Race Equal to 1
- HeroClass Equal to Warlock
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Warlock (High Elf Male) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to False
- Race Equal to 1
- HeroClass Equal to Warlock
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Warlock (High Elf Female) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to True
- Race Equal to 0
- HeroClass Equal to Warrior
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Warrior (Human Male) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to False
- Race Equal to 0
- HeroClass Equal to Warrior
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Warrior (Human Female) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to True
- Race Equal to 1
- HeroClass Equal to Warrior
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Warrior (High Elf Male) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Gender Equal to False
- Race Equal to 1
- HeroClass Equal to Warrior
-
Then - Actions
- Unit - Remove Pet from the game
- Unit - Remove Player from the game
- Unit - Create 1 Warrior (High Elf Female) for Player 1 (Red) at (Center of Hero <gen>) facing 270.00 degrees
- Set Player = (Last created unit)
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)