Staredit Network

Staredit Network -> UMS Assistance -> Using Powerups...
Report, edit, etc...Posted by chuiu on 2003-10-13 at 17:30:37
Using the non-creatable powerups (mineral/gas ones) I am setting certain values on them. So that when a player grabs on, and brings it to a certain location, it will be removed (and moved to another part of the map) and then the player will get cash for it.

But my problem is, I don't have a way of telling what player brought what to where. I have a possible solution, but I was wondering if anyone else has already encountered this problem and can give me their solution.

Help is appreciated. Thanks. smile.gif
Report, edit, etc...Posted by Mini Moose 2707 on 2003-10-13 at 18:02:43
Annoying, but you could always give each player a seperate area to bring the powerup to.
Report, edit, etc...Posted by Yoshi da Sniper on 2003-10-13 at 18:47:59
The powerup should be owned by the player who owns the peon.
Report, edit, etc...Posted by chuiu on 2003-10-13 at 22:30:52
Then you can't pick it up, Yoshi. And I would have to dramatically rework the terrain to get that to work, Moose.

I'm still thinking myself. If I don't find another way then I will have to make a bunch of complicated triggers.
Report, edit, etc...Posted by FizzleBoink on 2003-10-14 at 05:00:55
Hmm.. Here is what I would put..

Criteria Needed:
Player 12 or Computer player owns the Item
Item Reception Location which we will call "LOCATION ITEM"
Item Storage which we will call "ITEM STORE"
two switches which we will call "CASH FLOW" and "RANDOM"
Extra Locations in which item will appear

TRIGGER CONDITIONS:
- *COMPUTER PLAYER* brings exactly 1 *ITEM* to *LOCATION ITEM*
- *Current Player* brings exactly 1 *UNIT* to *LOCATION ITEM*
- Set switch "ITEM MONEY"
TRIGGER ACTIONS:
- Kill all units owned by *CURRENT PLAYER* at *LOCATION ITEM*
- Wait 50 Milliseconds
- Move all *ITEM* owned by *COMPUTER PLAYER* to *ITEM STORE*
- Preserve Trigger

TRIGGER CONDITIONS:
- *COMPUTER PLAYER* brings exactly 1 *ITEM* to *ITEM STORE*
TRIGGER ACTIONS:
- Set swtich "RANDOM"

TRIGGER CONDITIONS:
- *ITEM MONEY* is set
TRIGGER ACTIONS:
- Set(or Add) resources for *CURRENT PLAYER* to *Money Gained*

TRIGGER CONDITIONS:
- *RANDOM* is set
TRIGGER ACTIONS:
- Move all *ITEM* at *ITEM STORE* to *whatever location*

You can make more switches to best appropriate your needs.. hmm and yeah.. I hope it works for you.. good luck..
Report, edit, etc...Posted by chuiu on 2003-10-14 at 12:10:05
That won't work either, like I said its only one location im using to bring to and im using multiple players. I want them to be able to drop them off to the spot quickly and not interfere with other players dropoffs.

I re-worked my solution to it. What im going to do is change the powerup to an ally of the player so that when he brings a unit close to it, then he can grab it and bring it to the location which will give gas/ore to the team.

However I don't know how im going to do this for FFA mode. Because once the powerup, or powerup's are changed to another player, then that player will get vision and a slight advantage of some intel over there.
Report, edit, etc...Posted by Yoshi da Sniper on 2003-10-14 at 12:33:51
Hmmm... heres another idea:

TRIGGER 1 (Centering Location)
COND
- Always
ACTIONS
- Center Location 'Worker' on all peon owned by current player.

TRIGGER 2 (Detection)
COND
- All players bring at least 1 'Powerup' to location Worker.
- Current player brings at least 1 peon to location '[where the detection takes place]'
ACTIONS
- [Do whatever actions]
Report, edit, etc...Posted by chuiu on 2003-10-14 at 13:24:27
QUOTE
'[where the detection takes place]'


You lost me. Detection?
Report, edit, etc...Posted by Revelade on 2003-10-14 at 20:07:59
Dunno if this help but what I do is when the player brings to the location, I move the player who is carrying the powerup to another location, and kill the unit. I'm assuming you are talking about the Xtra powerups right? ore, gas, etc...
Report, edit, etc...Posted by chuiu on 2003-10-14 at 21:02:25
Actually, that does help ... a lot. I can move the scv from the spawn point, to a box I have for the player, then I will have a trigger run to remove the powerup and give the cash of the player brings a unit to his box.

And that I re-read Interfere's post, I wonder why I didn't think of that before.

Thanks guys. I may have a beta ready for this map by Saturday.
Report, edit, etc...Posted by Yoshi da Sniper on 2003-10-15 at 08:15:49
Detection is when Staredit detects it.
Next Page (1)