HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spawn Trigger caps level at 20???

08-23-2004, 09:22 PM#1
HexenLordX
Okay, heres the prob. I made custom units for neutral passive, set level to 50. I use this spawn trigger.

Events:
Map Initialization
Conditions:
Actions:
For Each (Integer A) from 1 to 15, do (actions)
-Loop Actions
--Create 1 Fighter1 at (Random Point in Spawn1 <gen>) facing (Random Angle) Degrees.

The problem is, even though the unit's level is 50 in the object editor, it spawns at level 20. It does this for every unit above level 20. Anyone know how to fix it?
08-23-2004, 09:38 PM#2
weaaddar
did you set the constant to allow him to actually be at level 50? (The game has a constant that sets max level if you entered 999 for instance it will by default go to 20 I think).
08-23-2004, 09:50 PM#3
HexenLordX
Quote:
Originally Posted by weaaddar
did you set the constant to allow him to actually be at level 50? (The game has a constant that sets max level if you entered 999 for instance it will by default go to 20 I think).

Gameplay Constants: Unit Maximum Level 1296

Don't think thats it.
08-24-2004, 12:52 PM#4
HexenLordX
Has anyone ever had this problem before?

I just checked my unit's levels, and none of them have level 20 in them, so I think that the create unit trigger will not create units above level 20, if it does, then there is something really wrong with my map.
08-24-2004, 08:56 PM#5
HexenLordX
I still don't know what the problem is :(
08-25-2004, 01:59 AM#6
HexenLordX
Oddly, all units spawn at level 20 with my spawn trigger, however heroes can spawn at any level. I check and non of my units are level 20, they are either below or above 20, yet every unit above level 20 spawns at level 20 when using this trigger:

Code:
Saibamen
    Events
        Map initialization
    Conditions
    Actions
        Wait 1.00 seconds
        For each (Integer A) from 1 to 15, do (Actions)
            Loop - Actions
                Unit - Create 1 Saibaman for Neutral Hostile at (Random point in Saiba1 <gen>) facing (Random angle) degrees
        Wait 0.01 seconds
        For each (Integer A) from 1 to 20, do (Actions)
            Loop - Actions
                Unit - Create 1 Saibaman 2 for Neutral Hostile at (Random point in Saiba2 <gen>) facing (Random angle) degrees
        Wait 0.01 seconds
        For each (Integer A) from 1 to 30, do (Actions)
            Loop - Actions
                Unit - Create 1 Saibaman 2 for Neutral Hostile at (Random point in Saiba2a <gen>) facing (Random angle) degrees
        Wait 0.01 seconds
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Unit - Create 1 Saibaman 2 for Neutral Hostile at (Random point in Saiba2b <gen>) facing (Random angle) degrees
        Wait 0.01 seconds
        For each (Integer A) from 1 to 3, do (Actions)
            Loop - Actions
                Unit - Create 1 Saibaman 2 for Neutral Hostile at (Random point in Saiba2c <gen>) facing (Random angle) degrees
        Wait 0.01 seconds
        For each (Integer A) from 1 to 100, do (Actions)
            Loop - Actions
                Unit - Create 1 Saibaman 3 for Neutral Hostile at (Random point in Saiba3 <gen>) facing (Random angle) degrees
        Wait 0.01 seconds
        For each (Integer A) from 1 to 40, do (Actions)
            Loop - Actions
                Unit - Create 1 Saibaman 3 for Neutral Hostile at (Random point in Saiba3a <gen>) facing (Random angle) degrees
        Wait 0.01 seconds
        For each (Integer A) from 1 to 15, do (Actions)
            Loop - Actions
                Unit - Create 1 Saibaman 3 for Neutral Hostile at (Random point in Saiba3b <gen>) facing (Random angle) degrees
        Wait 0.01 seconds
        For each (Integer A) from 1 to 20, do (Actions)
            Loop - Actions
                Unit - Create 1 Saibaman 3 for Neutral Hostile at (Random point in Saiba3c <gen>) facing (Random angle) degrees
        Wait 0.01 seconds
        For each (Integer A) from 1 to 50, do (Actions)
            Loop - Actions
                Unit - Create 1 Saibaman 4 for Neutral Hostile at (Random point in Saiba45a <gen>) facing (Random angle) degrees
                Unit - Create 1 Saibaman 5 for Neutral Hostile at (Random point in Saiba45a <gen>) facing (Random angle) degrees
        Wait 0.01 seconds
        For each (Integer A) from 1 to 15, do (Actions)
            Loop - Actions
                Unit - Create 1 Saibaman 5 for Neutral Hostile at (Random point in Saiba45a <gen>) facing (Random angle) degrees
                Unit - Create 1 Saibaman 4 for Neutral Hostile at (Random point in Saiba45a <gen>) facing (Random angle) degrees
        Wait 0.01 seconds
        For each (Integer A) from 1 to 250, do (Actions)
            Loop - Actions
                Unit - Create 1 Saibaman 6 for Neutral Hostile at (Random point in Saiba6 <gen>) facing (Random angle) degrees
        Wait 0.01 seconds
        For each (Integer A) from 1 to 5, do (Actions)
            Loop - Actions
                Unit - Create 1 Saibaman 6 for Neutral Hostile at (Random point in Saiba6a <gen>) facing (Random angle) degrees
        Wait 0.01 seconds
        For each (Integer A) from 1 to 5, do (Actions)
            Loop - Actions
                Unit - Create 1 Saibaman 6 for Neutral Hostile at (Random point in Saiba6b <gen>) facing (Random angle) degrees
        Wait 0.01 seconds
        For each (Integer A) from 1 to 5, do (Actions)
            Loop - Actions
                Unit - Create 1 Saibaman 6 for Neutral Hostile at (Random point in Saiba6c <gen>) facing (Random angle) degrees
        Wait 0.01 seconds
        For each (Integer A) from 1 to 15, do (Actions)
            Loop - Actions
                Unit - Create 1 Saibaman 6 for Neutral Hostile at (Random point in Saiba6d <gen>) facing (Random angle) degrees
        Wait 0.01 seconds
        For each (Integer A) from 1 to 125, do (Actions)
            Loop - Actions
                Unit - Create 1 Saibaman 7 for Neutral Hostile at (Random point in Saiba7 <gen>) facing (Random angle) degrees
        Wait 0.01 seconds
        For each (Integer A) from 1 to 100, do (Actions)
            Loop - Actions
                Unit - Create 1 Saibaman 8 for Neutral Hostile at (Random point in Saiba8 <gen>) facing (Random angle) degrees
        Wait 0.01 seconds
        For each (Integer A) from 1 to 15, do (Actions)
            Loop - Actions
                Unit - Create 1 Saibaman 8 for Neutral Hostile at (Random point in Saiba8a <gen>) facing (Random angle) degrees
        Wait 0.01 seconds
        For each (Integer A) from 1 to 25, do (Actions)
            Loop - Actions
                Unit - Create 1 Saibaman 9 for Neutral Hostile at (Random point in Saiba9 <gen>) facing (Random angle) degrees
        Trigger - Turn off (This trigger)

Still awaiting help.. maybe even a suggestion?
08-25-2004, 02:21 AM#7
Oo.h3ih02.oO
Couldn't you do something like:

Events:
Map Initialization
Conditions:
Actions:
For Each (Integer A) from 1 to 15, do (actions)
-Loop Actions
--Create 1 Fighter1 at (Random Point in Spawn1 <gen>) facing (Random Angle) Degrees.
--Set (Last Created Unit) Hero-Level to 50, Hide level-up graphics
08-25-2004, 02:24 AM#8
HexenLordX
Quote:
Originally Posted by Oo.h3ih02.oO
--Set (Last Created Unit) Hero-Level to 50, Hide level-up graphics

The thing is, I'm spawning units, not heroes, so I don't think it would work.
08-25-2004, 03:15 AM#9
HexenLordX
Even though I didn't get much help, I got it fixed, it seems to be an odd bug with gameplay constants. But anyway, its fixed.
08-25-2004, 03:31 AM#10
Eeporgorg
It would be nice if you could post how you fixed it to help other people with the same problems, hexen. :)
08-25-2004, 01:26 PM#11
weaaddar
I figured the constant was always to blame. I figure that you may have entered whatever value but ti didn't register. Unfortuantly, I've been mostly away from the computer so I had no time to reply.
08-25-2004, 03:19 PM#12
HexenLordX
Quote:
Originally Posted by EePoRgOrG
It would be nice if you could post how you fixed it to help other people with the same problems, hexen. :)

Well I think it was a problem with WEU. When I applied the no limits patch to remove # of doodads placeable and some other limits, it set max unit level to 1296 in the gameplay constants. Units spawned at lvl 20. I decided to set max unit level to 1000, which is the same as my max hero level, and they began to spawn at the correct level.