HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Instant Tome Portal

03-28-2005, 12:05 AM#1
abraxas
As you might know, you need to choose the place u want to teleport to with tome portal. How can i make so i only need to press the tome portal, so the hero instant will be teleported to his base? (only hero, no units)
03-28-2005, 02:49 AM#2
Fragmentation
I am thinking of triggers on the top of my head, so bear with me if they seem out of place


Event -
Unit issued order
Condition -
Issued order = to tome portal or whatever the string is for the tome action
Action -
Unit - instantly move unit to base


thats just a concept, hope it helps

also to prevent units from going with you, maybe you can make it so the tome action is actually cancelled but the trigger to move the unit will simulate as if the item works anyway.
The trigger will transport your hero, and the units wont follow because they not part of the trigger.

Edit - its possible you can make it so that no unit goes with the hero when use tome portal if you edit something in the tome portal item fields in the object editor.
03-28-2005, 04:59 AM#3
yuripro84
Event
Unit - Generic Unit Event
-A Unit (Uses An Item)

Condition
Item - Type Comparison
-*(Item-Type Of ^(Target Item Of Issued Order))^* Equal To Tome Portal
*Item-Type Of Item
^Item-Type Of (Target Item Of Issued Order)

Action
Move - Move Unit (Instantly)
-Move (Triggering Player) Instantly To (Center Of (Base ## <gen>))

Hope this helps!!sry its a lil confusing, lol, but too make it a lil less confusing, theres only 1 event, condition, and action, so dont get too confused, my works a lil sloppy. Also, if you want, you can add a condition which makes sure its a hero using it??if they have an inventory, and u want help with this, just ask!gl with your map
03-28-2005, 12:52 PM#4
abraxas
ok, but how will i make so the tome portal will lose 1 charge when the trigger has run?
I have 2 charge on each tome portal. I guess it wont be used any charges, if im right
03-28-2005, 12:56 PM#5
Taur
well if he uses an item he loses charges doesn't he? and if he doesn't use the item charge function
03-28-2005, 01:14 PM#6
Metal_Sonic64
Why not just base it off any item, just set charges and stuff, then just make a simple trigger,

Unit uses an item

Item being manipulated equal to Tome portal

Actions- move (triggering unit) to center of (Region)

That would work if your using it for something other than a melee map, but if it's melee then you should go with something more advanced.