peanuts25
  • peanuts25
  • 56% (Neutral)
  • Private Topic Starter
15 years ago
Hey guys I'm new to WorldBuilder and come here quite often for help. Great forum, thanks all moderators and forum staff. :)

Have a question here. Is it possible, by means of scripts, to grant a science and/or money to a certain player after he has captured an unmanned unit? More specifically, I'm trying to make it such that there's a neutral boss dozer on a map that once captured will activate Cash Bounty 3 (GLA Science) for whoever captured it as well as give the player additional money.

Would someone please tell me if this can be done, and if so how and which script to use? Help would be greatly appreciated. 🙂
Sponsor
Annihilationzh
15 years ago
This is how it should look:

*** IF ***
    [???] Unit 'bossdozer' is owned by Player 'player0'
*** THEN ***
  [???] Player 'player0' is granted Science 'SCIENCE_CashBounty3'.
  [???] Player 'player0' is granted Science 'SCIENCE_CashBounty2'.
  [???] Player 'player0' is granted Science 'SCIENCE_CashBounty1'.

You can find this:
Unit '???' is owned by Player '???'
in Player>owns>Player owns the specific unit.

And you can find this:
Player 'player0' is granted Science 'SCIENCE_CashBounty3'.
in Player>science>Grant a science to a given player (ignore prerequisites).

You will need a script for every player if you want every player to be able to obtain the cash bounty. Player0 being the host of the game, player1 being the second player in the game, etc.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
peanuts25
  • peanuts25
  • 56% (Neutral)
  • Private Topic Starter
15 years ago
Thanks for the prompt reply :)

I did exactly as you told but I'm facing a problem. Only GLA factions (Vanilla, Demo, Toxin and Stealth) are automatically granted Cash Bounty 3 once the boss dozer is captured. Is it possible to include the USA and China factions too?

Merry Christmas!
Annihilationzh
15 years ago
They'll need a GLA command center because that's what activates cash bounty. Once cash bounty is activated, they'll no longer need the CC because it should stay active.

EDIT: On a side note, the boss generals command center will also work, because she has cash bounty.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
peanuts25
  • peanuts25
  • 56% (Neutral)
  • Private Topic Starter
15 years ago
That's great, you solved the problem!

I included a script that spawns a GLA Command Center for whoever captured the boss dozer, and make the Command Center disappear after 0.01 seconds. It worked, thanks once again. 😃
Seb767
  • Seb767
  • 61.25% (Friendly)
  • Private
15 years ago
but onequestion: if i use this sript, could other players in multiplayer use cashbounty too?
Don't look at me!
I'm just a stupid signatur....
No one who realy exists
maybe my lifesense is to do nothing while some People laugh at me....
My (not existing) homepage now in english^^
casparmartin01
15 years ago
@seb
No if you use that script than only the plAyer who will take over the dozer, than he will get the science nOt the other players
Having problems? Just ask me