- Joined
- Jan 6, 2008
- Messages
- 2,622
Hi, im making a map and i made a region that all players can enter and learn +2 Knowledge and another for Str and Agi, but i dont want one person that can learn 8 times more.

Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

Give Player 1
Events

Unit - A unit owned by Player 1 (Red) enters <YOURREGION>
Conditions
Actions

Trigger - Turn off (this trigger)

...and all your other actions
Events

Unit - A unit enters <Str region>
Conditions
Actions

If/then/else


If



STRamount smaller than 4


then



Hero - add str to entering unit



Set STRamount = STRamount + 1



Game - show text message to triggering player "You can enter this region x more times"


else



Game - Show text message to triggering player "Region disabled"
i mean that evry hero should go in the region for getting it but not make 1 man take every str and other things for themselves.
Events

Unit - A unit enters <BonusRegion>
Conditions
Actions

If (Owner of <Triggering Unit>) = Player 1 Then


If PlayerOneStr = False Then



<Add str to hero>



PlayerOneStr = True


Else



Game - Show text message to (Owner of <Triggering Unit>) "You cannot gain any more strength!"

If (Owner of <Triggering Unit>) = Player 2 Then


If PlayerTwoStr = False Then



<Add str to hero>



PlayerTwoStr = True


Else



Game - Show text message to (Owner of <Triggering Unit>) "You cannot gain any more strength!"
etc etc...
Actions

Unit - Create 1 Archmage for Player 1 at blablabla

Set Hero[1] = last created Unit

Unit - Create 1 Paladin for Player 2 at blablabla

Set Hero[2] = last created Unit
Events

Unit - A Unit enters <Region Str>
Conditions
Actions

Loop - Pick every Unit in <Region Str> of Type Hero and do actions:


If Number of living (picked unit) equal to PlayersCount Then



Unit - Add 1 Str to (Picked Unit)


Else



Game - Show Text Message to all Players "Not enough Heroes with the Region"
Events

Unit - A Unit enters <REGION>
Conditions

(Custom Value of (Entering Unit)) Equal to 0
Actions

Unit - Add <CUSTOM_ABILITY> to (Entering Unit)

Unit - Set the Custom Value of (Entering Unit) to 1
Events

Unit - A unit enters <Region>
Conditions

BonusOccupied Equal to True
Actions

Set ExitRegion = <A region your hero will be moved if there another hero in the bonus region>

Unit - Move (Triggering unit) instantly to (ExitRegion)

Custom script: call RemoveLocation(udg_ExitRegion)
Events

A unit owned by Player 1 (Red) enters <YOURREGION>
Conditions
Actions

Trigger - Turn off (this trigger)

Unit - Add <STRENGTH_ABILITY> to (Entering Unit)
Trigger - Turn off (this trigger)