How do I make....(trigger problems)

Gemini_Bloodian

Member!
Joined
Apr 8, 2004
Messages
107
Reaction score
0
Website
Visit site
I'll be coming here often to ask how to make various triggers, but only several triggers or so. Here is my first request:

How do I make a renting trigger?

Like, a person brings thier unit to the unit beacon(overlord), money is subtracted, then they keep it for 1 minute for example.

Gemini_Bloodian
 

Magikarp

BattleForums Senior Member
Joined
Mar 18, 2004
Messages
3,129
Reaction score
1
I haven't messed with sC for a long time, but I'm pretty sure this is an easy trigger:

[Conditions]
Current Player Brings Exactly 1 Unit To Beacon

[Actions]
Subtract 1 Minerals From Current Player
Wait 1000 Milliseconds
Preserve Trigger


I'm pretty sure this is correct. You can, of course, adjust the milliseconds and the mineral subtraction.
 

Gemini_Bloodian

Member!
Joined
Apr 8, 2004
Messages
107
Reaction score
0
Website
Visit site
Sounds simple enough. Thanks alot. The map is currently under-construction, so I'll post here actively.

Gemini_Bloodian
 

Nitemare

Member!
Joined
Jul 29, 2003
Messages
22
Reaction score
0
Location
Arizona
Website
Visit site
Renting? Like Rent a Unit? Or a Mercenary?

Con
- Current Player brings Atleast 1 Overlord to 'Location'
- Current Player accumulates atleast 1 minerals

Action
- Modify resourses for current player: Subtract 1 minerals
- Create 1 zergling(or whatever unit) at 'Location1' for current player
- Wait 10000 milliseconds (1000 = 1 second)
- Remove all zerglings for current player
- PreserveTrigger
 

Lwek

Member!
Joined
May 18, 2003
Messages
4,487
Reaction score
0
Website
www.Battleforums.com
PLAYERS
-Human player
CONDITIONS
-Current player brings 'unit' to 'overlord beacon'
-Current player commands exactly 0 overlords
ACTIONS
-Subtract '1' mineral from 'current player'
-Move 'unit' from 'overlord beacon' to 'back'
-Give 'overlord' to Current player controled by 'computer player' at 'anywhere'
-Set countdown timer to 60 seconds.(unless the game speed is under fastest then you might want to set it a little higher)
-Preserve Trigger


PLAYERS
-Human player
CONDITIONS
-Current player commands exactly 1 overlord
-Countdown timer is atleast 1 second.
-Countdown timer is atmost 3 seconds.
ACTIONS
-Display text for current player: TIMES UP!
-Give 'overlord' to 'computer player' controled by 'current player' at anywhere.
-Preserve trigger


Oh man, that was confusing to type I probably messed up somewhere.
 

Bolt Head

Member!
Joined
May 20, 2003
Messages
1,194
Reaction score
0
Website
www.shadowfortress.net
Originally posted by Master Virus
PLAYERS
-Human player
CONDITIONS
-Current player brings 'unit' to 'overlord beacon'
-Current player commands exactly 0 overlords
ACTIONS
-Subtract '1' mineral from 'current player'
-Move 'unit' from 'overlord beacon' to 'back'
-Give 'overlord' to Current player controled by 'computer player' at 'anywhere'
-Set countdown timer to 60 seconds.(unless the game speed is under fastest then you might want to set it a little higher)
-Preserve Trigger
Dont forget to include the cost.

"Current player accumulates at least one mineral" (added to the conditions in the trigger i quoted)
 

New threads

Top