Blink Area, Starting Items and Map Protector

  • Thread starter Thread starter war3
  • Start date Start date
W

war3

Guest
Hello,

1. How do I make a blink area?
I want to make a blink area (like in footmen frenzy, near the shops).

2. How to do that when hero has been selected (for example: Paladin) or when the hero has been selected by random he will start with item(s)?

3. How do I protect on my map (that the map cannot be opened by World Editor)?

Please, explain it step by step.
 
i dont know what a bkink area is

to give the her and item, whenever he is spawned or picked, make a trigger ot create the item, then give it to the hero, not difficult

to protect your map look at the top of this forum where is says optimizer 3.5
 
Can you explain how to do the trigger (to create the item), please?
 
Code:
item 4 hero
    Events
        Unit - A unit enters Region 000 <gen>
    Conditions
        (Unit-type of (Entering unit)) Equal to Blood Mage
    Actions
        Item - Create Crown of Kings +5 at (Position of (Entering unit))
        Hero - Give (Last created item) to (Entering unit)
        Trigger - Turn off (This trigger)

make the region where the hero spawns, and set the unit equal to the unit you want the item to go to, and the item to whatever item you wish

then you turn it off so you cant just run in and out of the region and keep getting the item
 
thanks!
I need your help or other person help..

1). How do I change the position of the items (the items of the trigger) in the invertory?

2). Blink area is a area that player(s) cannot enter it. for example: there are 2 teams. team 1 cannot enter in a specific area that belong to team 2 and team 2 cannot enter in a specific area that belong to team 1.
if player(s) from team 1 try to enter in the specific area that belong to team 2, the player(s) blinked backword.

*like in Footmen Frenzy, near the shops in the base.

PLEASE HELP!!
 
war3 said:
1. How do I make a blink area?
I want to make a blink area (like in footmen frenzy, near the shops).
Note: it's not a good idea to say "like in this map." Some people may not have played it or know it very well (like me).

So, let's see... how do we want this to work?
When a unit enters the region around the area for team 1:
  • Check if the unit belongs to someone on team 2.
    • If yes, move the unit to some other region and display a message.
    • If no, do nothing.
Translated to triggers, that becomes:
Code:
Team 1 Blink
    Events
        Unit - A unit enters Area For Team 1 <gen>
    Conditions
        ((Entering unit) belongs to an ally of Player 7 (Green)) Equal to True
        [i]----- this assumes that Player 7 is on team 2 -----[/i]
    Actions
        Unit - Move (Entering unit) instantly to (Center of Blink To For Team 1 <gen>)

war3 said:
2. How to do that when hero has been selected (for example: Paladin) or when the hero has been selected by random he will start with item(s)?
I'm assuming you're using triggers to pick these Heroes. If so, just add this line after you create the Hero:
Code:
Hero - Create Scroll of Town Portal and give it to (Last created unit)
(This is the Hero - Create Item For Hero action.)

war3 said:
3. How do I protect on my map (that the map cannot be opened by World Editor)?
Try Vexorian's optimizer (stickied thread in this forum).
 
Code:
item 4 hero
Events
Unit - A unit enters Region 000 <gen>
Conditions
(Unit-type of (Entering unit)) Equal to Blood Mage
Actions
Item - Create Crown of Kings +5 at (Position of (Entering unit))
Hero - Give (Last created item) to (Entering unit)
Trigger - Turn off (This trigger)

its not what I ment. I dont want that when a hero enter to area he will get the items. I want that when the hero has been sold he will strat with item(s), and everytime when the hero has been sold he will strat with item(s).

And Heptameron,
I didnt understand how to do that.
If someone know what I mean please write it here..
please
 
Code:
Events
    Unit - A unit Sells a unit
Conditions
    Sold unit is a Hero equal to true
Actions
    Hero - Create Protection Ring +5 and give it to (Sold unit)
 
thanks,

How do I make that an hero for example paladin, when he has been choosen by random he will get an item(s) ?

I mean how to do that: when I choose paladin I get item A and when the paladin has been choosen by random he will get item A+B?
 
Chosen by random should mean that you create the unit for the player.
So, add an "Hero - create item ... (last created unit)" just after creating it.
 
no.. I mean:
for example:
hero 1-8 , if you picked them - the hero will strat with item A

hero 1-8 , if they picked by random - the heroes will strat with item A and B

hero 9-10, that canot be picked (can be picked only by random) - the heroes will strat with item A, B and C.
 
help

please help!!
1)
hero 1-8 , if you picked them - the hero will strat with item A

hero 1-8 , if they picked by random - the heroes will strat with item A and B

hero 9-10, that canot be picked (can be picked only by random) - the heroes will strat with item A, B and C.

2).

How to do that a aura of hero A doesnt effect on hero B

3).
How do I make a blink area?
Blink area is a area that player(s) cannot enter it. for example: there are 2 teams. team 1 cannot enter in a specific area that belong to team 2 and team 2 cannot enter in a specific area that belong to team 1.
if player(s) from team 1 try to enter in the specific area that belong to team 2, the player(s) blinked backword.

*like in Footmen Frenzy, near the shops in the base.

PLEASE HELP!!
 
1)
When a hero is created, give him item A
Then if hero is picked randomly, give him item B
Then if hero's number is greater than 8, give him item C
It's a problem of knowing the exact conditions for the IF part

2)
I think there's something in Gameplay Constants to change this

3)
Triggering
Code:
Events
    Unit - A unit enters Player 1 Blink zone <gen>
Conditions
    (Owner of (Entering unit)) Not equal to Player 1 (Red)
Actions
    Unit - Move (Entering unit) instantly to (Position of Entering unit) offset by -128.00 towards (Facing of Entering unit)
 
I dont know how to that..
I mean I dont know how to do that: when hero is picked he gets item A, and he he picked randomly he gets item A+B.

How I do that for example Paladin when I picked him I get item A, and when I picked him randomly I get item A+B.

*look what i need is : when I picked Paladin I get item A.
and when I got Paladin by random I get item A+B.

=================================
Random Hero
Events
Unit - A unit Sells a unit
Conditions
(Unit-type of (Sold unit)) Equal to Random Hero
Actions
Unit - Create 1 RANDOM_HERO_ARRAY[(Random integer number between 1 and NUM_HEROES)] for (Owner of (Sold unit)) at ((Owner of (Sold unit)) start location) facing Default building facing degrees
Hero - Create Scroll of Town Portal and give it to (Last created unit)
Hero - Create Jaood's Amulet of Power and give it to (Last created unit)
Hero - Create Boots of Speed and give it to (Last created unit)
Unit - Remove (Sold unit) from the game
===================

this is the trigger that gives to all the random heros items.
I need the trigger that gives to the paladin (*ONLY TO HIM*) one more item only when he picked randomly
 
In other words
You create a hero, all of them receives a item A (say a Portal of Town Hall)
If you pick the hero randomly, receive also a item B (say a Potion of Healing)
If you pick the hero randomly and it's of type 9 or more, receive also a item C (say a Potion of Invisibility)

This one is for buying a hero from a tavern, change the event to whatever fits in your map
Code:
Events
    Unit - A unit Sells a unit
Conditions
    ((Sold unit) is A Hero) Equal to True
Actions
    Hero - Create Town Portal and give it to (Sold unit)
    Player Group - Add (Owner of (Sold unit)) to HeroPick
And this one is for the random heroes
Code:
Events
    Player - Player 1 (Red) types -random as exact match
    Player - Player 2 (Blue) types -random as exact match
    ...
Conditions
    ((Triggering player) is in HeroPick) Equal to False
Actions
    Set RandomHero = (Random integer number between 1 and 10)
    Unit - Create 1 HeroType[RandomHero] for (Triggering player) at ((Triggering player) start location) facing Default building facing (270.0) degrees
    Hero - Create Town Portal and give it to (Last created unit)
    Player Group - Add (Owner of (Sold unit)) to HeroPick
    Hero - Create Potion of Healing and give it to (Last created unit)
    If RandomHero Greater than 8 Then
        Hero - Create Potion of Invis and give it to (Last created unit)
RandomHero is a integer variable
HeroType is an array with all 10 hero unit-types
HeroPick is a Player Group initially empty to avoid someone to pick more than one hero

I hope it helps
 
war3 said:
I need the trigger that gives to the paladin (*ONLY TO HIM*) one more item only when he picked randomly
You can use this:
Code:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
        (Unit-type of (Last created unit)) Equal to Paladin
    Then - Actions
        Hero - Create [i]<item>[/i] and give it to (Last created unit)
    Else - Actions
 
Thanks!!

THANKS!!
thank you all!!
Heptameron, I took your trigger because it was the easier.
and one more thing :
the item of the paladin, I want it be in the first solt.
(its in solt 4 because all the random heroes get 3 items).
can some please tell me how to do that?

xPheRe, i have trouble with trigger of the blink area.
i explain it diffrently:

|=====================|
|XX|____________1<==1|YY|
|XX|_________________|YY|
|XX|_________________|YY|
|XX|_________________|YY|
|XX|_________________|YY|
|=====================|


the 'X' area is an area that belong to team 1 and all the players from team 2 cannot enter it.
the 'Y' area is an area that belong to team 2 and all the players from team 1 cannot enter it.

now, when someone from team 1 try to enter the 'Y' area (area that belong to team 2), he blinked [teleported] back (1<==1).

*one more thing: how I do that an aura doesnt effect on spesific heroes?
(for example: the aura of the Paladin will not effect on Blood Mage.)
its not on 'Gameplay Constants'
 
war3 said:
and one more thing :
the item of the paladin, I want it be in the first solt.
(its in solt 4 because all the random heroes get 3 items).
can some please tell me how to do that?
Simply move the If action above the rest of the actions that give him items. That way it will be added first, so it will appear first.

war3 said:
*one more thing: how I do that an aura doesnt effect on spesific heroes?
(for example: the aura of the Paladin will not effect on Blood Mage.)
its not on 'Gameplay Constants'
You can't, at least not easily.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Wow - the change in the stats are major. I kind of knew it was all bots but wow, to see the effect. Why the social media sites cant do something like this I have no idea.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)
  • The Helper The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)
  • The Helper The Helper:
    Happy Saturday! Hope everyone has a fantastic weekend!
  • Ghan Ghan:
    We are now on Ubuntu 24.04. Had some issues with the style after the OS/PHP upgrade but now resolved.
    +1
  • Ghan Ghan:
    PHP 8.3 now live
    +1
  • The Helper The Helper:
    Weekend went by too fast. Next weekend I am going to try to do a nature thing - buddy of mine lives by the Colorado river and has some kayaks and invited me to do some kayaking from a place he knows to get on the river.
  • Ghan Ghan:
    That sounds like an adventure.
  • The Helper The Helper:
    400 users all online all looking at latest content
  • The Helper The Helper:
    I wonder how all these bots that sit on the lastest content page get passed anubis or maybe they did not but they are just registering on whos online
  • The Helper The Helper:
    showing up on whos online not registration
  • Ghan Ghan:
    The first gate is stopping all the bots that don't execute javascript.
  • Ghan Ghan:
    That's the main thing with Anubis - no Javascript, no site. Typically you can still get the site to load without Javascript.
  • The Helper The Helper:
    I remember the whole javascript thing, question - how many real people disable that?
  • The Helper The Helper:
    Hell I guess I could go back on the stats to know that - we probably capture that and we know the before and after
  • Ghan Ghan:
    Real users can't really disable Javascript anymore these days.
  • Ghan Ghan:
    The internet is broken without it.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!

The Helper Discord

Staff online

Members online

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top