• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Need help with Creeps, Race locking, and more (to come too)

Status
Not open for further replies.
Level 4
Joined
Aug 22, 2005
Messages
44
Creeps
What i do, is i have a creep spawn at a region, but i want to make it move to another region to make them more accessible, shorter trip to get to them, and for other reasons.

When they go out, they wait 5 seconds, then come back. I cant seem to fix this.

Race Locking
Well, i basically want people on one side to ONLY BE HUMAN, in some games, you cant select your race. what i did, was i went into player settings, made everyone what i wanted them to be, it works when i test it from editor, but when i host to do a quick test with my frieds, we can still select our race.

And More!

Item Storage
I want to make item storages for people, just a few buildings with inventories. I know it wont be hard, but what i want to do, is make it so no player can go into the other ones item storage, so far i cant figure out a system for this, i want it as like an item you click on shop (for free) and it brings you there, or something along the line. I dont want to use a circle of power, because too many can be confusing.

Morphing Heroes and Keeping their items
In many games, when you reach a certain level, your hero can "evolve" so to speak. into a totally different guy that is better, sometimes has same skills. but in some games you keep your items, some you dont. I want them to keep the items in my game. But obviously i dont know how to do this.

Thanks in advance for all advice[/b]
 
Level 2
Joined
Aug 27, 2005
Messages
9
creeps
Do you mean like in a TD? where they move automaticly?

Race Locking
I am looking into it...

Item Storage
Just maske the items belong to the players and make them invunerable...but the other part...I have no clue...

Morphing Heroes
I'll look into it
 
Level 2
Joined
Aug 27, 2005
Messages
9
Alrighty, so, basicly...for creeps...

Code:
Untitled Trigger 001
    Events
        Unit - A unit enters (Create a empty region)
    Conditions
        ((Triggering unit) is owned by Player 11 (Dark Green)) Equal to True
    Actions
        Unit - Create 1 Footman for Player 11 (Dark Green) at (Center of Rect 000 <gen>) facing Default building facing (270.0) degrees
        Wait 10.00 seconds
        Unit - Order (Triggering unit) to Move To (Center of Rect 000 <gen>)

or something like that...as for the race locking, check the "Force Properties" And up near the top left corner, check off the fixed player ettings box and that should do the trick
 
Level 4
Joined
Aug 22, 2005
Messages
44
cool.
Hey, i was just playing a game of HvsH and i was paying close attention to the creeps. I noticed that when the creeps came out, the gate would close behind it, then it would go out, try to go back, but it couldnt, so it just went to the other location. I know how to do this, but the PROBLEM is, the gates dont fit the areas i have made, they are a little on the small side :( and i cant figure out how to make it bigger (AAAARRRRGGG)

EDIT

sorry, i forgot to say why i didnt want to use that one. anyway the reason is, some of the guys in HvsH (which is what im basing my map off of...) use that trigger, or something like that. Thus i easily abused and could kill really good guys real early. :)
 
Level 2
Joined
Sep 6, 2005
Messages
9
lol for fixing your gate problem, just scale them, should be art - scaling value in the destructables section of the object editor
dunno about morhping tho but ill give it a shot
add in an interget named herolevel with a value of 1, and another called morph level and set it to the desired number of levels you want the hero to get before they morph..
and to rise it...
Code:
rise hero lvl var
events -
hero - hero gains a level
action - 
set herolevel = herolevel + 1
and for the morph
Code:
morph em
events - 
hero - hero gains a level
conditions - hero level equal to or greater than morph level
actions - set hero level = 1
unit - morph triggering unit into a gray wolf
hero - give item from hero to hero
it might not work, but i tried i use variables for near everything i do but there might be a way to do this without them.
 
Level 2
Joined
Sep 9, 2005
Messages
18
Race Locking

hmm, i think i know what ur talkin bout, go to Scenario>Force Properties>Check the Fixed Player Settings box, thats it, thats what i did and it works fine
 
Level 6
Joined
May 13, 2005
Messages
164
I dont get what u mean for the item storage. Is it like a room where you put your items in or a building that acts like a stash?

This is for the 'morphing' part:

Event:
-Unit gains a level

Condition:
-Level of (triggering unit) equal to (the level you want your hero to morph) <<--under integer

-Unit type of (triggering unit) equal to (the hero that's gonna morph') <<--under unit-type comparison

Action:
-Replace (triggering unit) with (the morphed hero)with new unit's max health and mana. <<--under unit


that should do it... ill be here for awhile...
 
Level 4
Joined
Aug 22, 2005
Messages
44
hmmm, sounds complex, i'll get around to the hero morphing once i have made them (hehehe :oops: ) ya, its basically like a seperate room where no one but you can enter. then there are a few buildings to put things in that act like a stash, then if you have more you can put them on the ground, i have the inventories hidden (i think) so you can use the building if you dont want that item seen.
 
Level 6
Joined
May 13, 2005
Messages
164
But how you wanna get into the item storage?? Walk into the portal or..?

The portal is easy coz i know the triggers, but if you think its confusing, drop the idea. However, i think making a small room for item storage is a waste of time and space in the map, i mean, whats the point of putting your item on the ground and letting others see it, show off??

Okay, if you want another way to make other players unit not able to enter your item storage just make a room with only an opening for the hero to enter. Then make a region covering the whole room, naming it player 1 storage, and another region a little further away from the opening of the room and name it outside or wateva u wanna name it. Then do this trigger:

Event;
-Unit enters (player 1 storage)

Condition:
-(owner of entering unit) not equal to (player 1)

Actions:
-Move (entering unit) to (outside)


This trigger will move any entering unit that does not belong to player 1 away from the storage so it cant get in. For a different player, just change the player 1 to other player.

I'll be away...hope this helps!
 
Level 4
Joined
Aug 22, 2005
Messages
44
Well, the game im basing this off is heaven vs hell, and sometimes your 6 slot inventory doesnt hold the items you want/need, so you can either put it in the base and hope people respect you and dont steal, or just be noob and take it. Also, when you switch hereos, you often want to keep your hard earned items, again...people aren't trustworthy. the item storage will help solve these problems, at least i think it would be nice.
 
Status
Not open for further replies.
Top