Jump to content


jurgy

Member Since 10 Mar 2020
Offline Last Active May 10 2020 06:14 PM

Posts I've Made

In Topic: Two quick questions

18 April 2020 - 10:13 PM

The first problem was probably caused by the fact that there were two buildings with the same name.

 

I haven't really fixed the second problem yet, but I suspect that it has to do with the fact that the individual WildSpiderling object also has a build time associated with it.

 

 

I have a new question though:

 

Is it possible to change the upgrade cost/time of a building? Simply copy pasting the Upgrade tag of the building and changing the BuildCost and BuildTime fields doesn't work. And creating a new Upgrade tag and a new CommandButton and adding the new CommandButton to the building's CommandSet works, but the upgrade loses it's icon. What is the correct way of doing this?


In Topic: How can I spawn a team at another team?

13 March 2020 - 04:58 PM

I don't really follow you.

 

What do you mean with "Script B will call for Script A"? 

Can't script B just enable A? Enabling a script multiple times doesn't reset or retrigger a script right? (Not sure, haven't tested it)

 

And why can't script A just loop (after being enabled)?


In Topic: How can I spawn a team at another team?

10 March 2020 - 06:34 PM

I'm kinda new to the world builder myself but I think I can help you with your second question:

 

You can set it as a subroutine and then have a trigger script that just executes the subroutine multiple times.

 

If you want to run it a variable amount of times you can do something like this:

 

Trigger script:

IF [Trigger condition]:
    Set Counter 'n' randomly between 0 and 10.
    Run Subroutine 'Repeatable Subroutine'

And the repeatable subroutine:

IF Counter 'n' IS Greater Than 0:
    [Do whatever]
    Subtract 1 from counter 'n'
    Run Subroutine 'Repeatable Subroutine'