HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

how do i make a unit start with an item

09-16-2003, 11:30 AM#1
Crimsongg137
ok when the wisp enters the region to select its character it waits 2 secs then creates an iteam in the midle of nowhere i want the item to go to the hero
09-16-2003, 12:00 PM#2
Grater
Use create item for hero right after it has spawned...
09-16-2003, 08:26 PM#3
Crimsongg137
i did and it creates it in the middle of no where
09-16-2003, 08:47 PM#4
35263526
post your trigger. you must be doing something wrong. or, if only one hero of each type can be used, just give the items to the heros in WE and make the trigger simply switch control of the hero to the owner of the wisp.
09-16-2003, 08:50 PM#5
BadRegistration
You are using the trigger for Items. The trigger you want is under Hero.
09-16-2003, 09:00 PM#6
Earth Fury
events: unit enters map
cond. unti is 'a hero' class unit

spawn item,
give last crewated item to entering unit
09-16-2003, 09:03 PM#7
BadRegistration
Or just

Hero - Create Item and Give to Hero :p
09-16-2003, 09:13 PM#8
Crimsongg137
ahhh i did that but it dont work
heres wut i got
Select Unit Skill Sword
Events
Unit - A unit enters Sword <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Wisp
Actions
Unit - Create 1 White Slave for (Owner of (Triggering unit)) at (Center of Shop <gen>) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Wait 2.00 seconds
Hero - Create Small Sword and give it to (Triggering unit)
09-16-2003, 09:42 PM#9
BadRegistration
You're giving the sword to the Triggering Unit, aka the Entering Unit, which you had just removed. Try giving it to Created Unit instead. Also, make sure that whatever unit this slave is, it can hold items.

And finally, what the hell sort of map are you making that's apparently endorsing slavery, white or otherwise?!? :WD:
09-16-2003, 09:56 PM#10
Crimsongg137
um im makin a map with gladiators
09-16-2003, 10:16 PM#11
BadRegistration
Heh, I noticed that when I checked your sig. I'm just making a little bad joke.

Does the trigger work now?
09-16-2003, 10:24 PM#12
Crimsongg137
noo i dont get it
09-16-2003, 11:40 PM#13
Das Jank
Ok what he was saying was you had this.

Events
Unit - A unit enters Sword <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Wisp
Actions
Unit - Create 1 White Slave for (Owner of (Triggering unit)) at (Center of Shop <gen> ) facing Default building facing degrees
Unit - Remove (Entering unit) from the game
Wait 2.00 seconds
Hero - Create Small Sword and give it to (Triggering unit)

And then your problem is right there in the bold.... your giving your item to the triggering unit which the triggering unit is the wisp. Since the wisp was already removed... it puts the item in the middle of nowhere. Your best bet would be to do this I think:


Events
Unit - A unit enters (Entire map)
Conditions
(Unit-type of (Entering unit)) Equal to White Slave.
Actions
Hero - Create Small Sword and give it to (Entering unit)

Not sure of this will set off anytime he revives or something like that or if it will interfere with your respawn triggers but you could make it only run once by adding a:

Action:
Trigger - Turn off (This trigger)
09-17-2003, 12:30 AM#14
Dragon
A possibly better (and slave free! ) trigger is to make it like this.

Event -Some guy types message exactly "-Equip Sword"
Action -Give small sword item 2 hero
09-17-2003, 12:36 AM#15
Das Jank
That would then require a trigger to tell people to type it. Even then people would not notice it for one reason or another and then claim the game is "cheap" becuase someone else has a sword and he doesnt.