Problem with creep trigger...

Penguin-

Member
Reaction score
4
I've set up a creep trigger and its fully operational except one thing.

I have set up regions, and the scheduled time spawn with a condition that only if the region is empty will the creeps spawn.
I want the spawns to be one of three things.
For now i will call them spiders/soldiers/ogres. I set them all to level 8, and made sure they are the only creeps that are level 8 (to avoid unwanted creeps).

So i set up the following trigger.

Spiders Top
Events
Time - Every 90.00 seconds of game time
Conditions
(Number of units in (Units in Creep Top <gen>)) Equal to 0
Actions
Unit - Create 3 (Random level 8 creep unit-type) for Neutral Hostile at (Center of Creep Top <gen>) facing 90.00 degrees

This works, giving me 3 spiders every 90 secs if the condition is fulfilled. BUT its giving me ONLY spiders. It's never creating any soldiers or ogres.

Can someone tell me where i am going wrong??

Peng-
 
It will only generate creep type units of the tileset currently in use. (or ones that wok with all) try changing that.
 
Try putting all the creeps in an array, and picking a random mumber.
OR
Change the creeps' tileset to all/the tileset youre using
 
Persen said:
Try putting all the creeps in an array, and picking a random mumber.
OR
Change the creeps' tileset to all/the tileset youre using


1. How do i make an array?

2. I've looked in the OE and cant find anything to do with tileset :confused:

Peng
 
Tilesets should have nothing to do with it. Because I currently don't have the WE open (I'm using my Mom's mac, and she doesn't want Warcraft installed), I can only write a JASS script that would work (I don't really know all the GUI array crap). And... you probably don't know how to do any JASS, so I'm not even going to get started (Unless you want me to).
 
Make an variable:

Name: SpiderOgreSoldier
Type: Unit-Type
Array: Size 3
Initial Value: None

Then do this at initzialisation (or somewhere else)

Set SpiderOgreSoldier[1] = Spider
Set SpiderOgreSoldier[2] = Ogre
Set SpiderOgreSoldier[3] = Soldier

then make a trigger

Code:
Spiders Top
Events
Time - Every 90.00 seconds of game time
Conditions
(Number of units in (Units in (Units in creep top <gen>) owned by neutral hostile)) Equal to 0
Actions
Unit - Create 1 SpiderOgreSoldier[(Random integer number between 1 and 3)] for neutral hostile at (Units in creep top <gen>)) facing 90.00 degrees
 
> Tilesets should have nothing to do with it.

The "create random creep" action only finds creeps that are part of the map's tileset...


> I've looked in the OE and cant find anything to do with tileset

There is some however. The option is called "Editor - Tilesets".
 
AceHart said:
> Tilesets should have nothing to do with it.

The "create random creep" action only finds creeps that are part of the map's tileset...
Ah, I thought that "Create random creep" was psudocode.
 
The WE test function does not actually use random, it picks one and uses that one every time, make sure to enable random seed in advanced, or test it using normal wc3.
 
Do what Cougar said, and chance the Ogres/Spiders/Soldiers to the base tileset that you are using in the Object Editor. That should alleviate the concern.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
    +1
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.
  • A Andyoyo:
    Thank you for the hard work over the years. It did not go unnoticed.

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top