Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
River Items.w3x
Variables
Initialization
Read Me
Changelog
Map Initialization
Item Triggers
Setup Items
River Items
Items Taken
Message Item Region 1
Message Item Region 2
Enter map-specific custom script code below. This text will be included in the map script after variables are declared and before any trigger code.
Name
Type
is_array
initial_value
RiverItems
itemcode
Yes
RiverItemsCount
integer
No
RiverItemsRegions
location
Yes
RiverItemsRegionsCount
integer
No
RiverItemsTaken
boolean
Yes
TempInteger
integer
No
System made by cHeRoL
How to import:
1. Copy all the varibles
2. Copy items if you want or create your owns.
3. Copy triggers
4. Paste trigger on your map (Map Initialization,Setup Items, River Items, River Items Taken)
Have fun with it.
Visit my Hiveworkshop profile at http://www.hiveworkshop.com/forums/members/cherol/
http://www.xcheroltv.forumup.com Forum if you want to talk.There are many programms wich I think will helps.
Changelog 1.10
*Added some doodads ^_^
*Message receiving when a unit takes the rune.
Map Initialization
Events
Map initialization
Conditions
Actions
-------- - --------
-------- You don't need to copy the Game - Set the time of day to 8.00 --------
Game - Set the time of day to 8.00
Trigger - Run Setup_Items <gen> (ignoring conditions)
Setup Items
Events
Conditions
Actions
-------- Items that spawn in or near the river --------
Set Variable Set RiverItemsCount = "6"
Set Variable Set RiverItems[1] = "manh"
Set Variable Set RiverItems[2] = "tdex"
Set Variable Set RiverItems[3] = "tdx2"
Set Variable Set RiverItems[4] = "texp"
Set Variable Set RiverItems[5] = "tint"
Set Variable Set RiverItems[6] = "tin2"
-------- Spawning Places. You can add or remove regions as you wish. --------
Set Variable Set RiverItemsRegionsCount = "2"
Set Variable Set RiverItemsRegions[1] = (Center of Region_1 <gen>)
Set Variable Set RiverItemsRegions[2] = (Center of Region_2 <gen>)
-------- Unless there already is an item --------
For each (Integer A) from 1 to RiverItemsRegionsCount , do (Actions)
Loop - Actions
Set Variable Set RiverItemsTaken[(Integer A)] = "false"
River Items
Events
Time - Every (Random real number between 10.00 and 20.00) seconds of game time
Conditions
Actions
-------- You can edit event time as you wish ^^^^ --------
Set Variable Set TempInteger = (((Execution count of (This trigger)) mod RiverItemsRegionsCount) + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RiverItemsTaken[TempInteger] Equal to False
Then - Actions
Set Variable Set RiverItemsTaken[TempInteger] = "true"
Item - Create RiverItems[(Random integer number between 1 and RiverItemsCount)] at RiverItemsRegions[TempInteger]
Item - Set the custom value of (Last created item) to TempInteger
Else - Actions
Items Taken
Events
Unit - A unit Acquires an item
Conditions
(Custom value of (Item being manipulated)) Greater than 0
Actions
Set Variable Set RiverItemsTaken[(Custom value of (Item being manipulated))] = "false"
Message Item Region 1
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Random item in Region_1 <gen>)) Not equal to Ring of Protection +5
Actions
Game - Display to (All players) the text: The rune has been taken
Message Item Region 2
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Random item in Region_2 <gen>)) Not equal to Ring of Protection +5
Actions
Game - Display to (All players) the text: The rune has been taken
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.