HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hero - Disable experience gain for (Triggering Unit)

11-22-2006, 11:02 PM#1
st33m
Will this event prevent a hero from leveling up, even through triggers? Or will it just stop it from gaining experience by killing things?

EDIT: Other problems:
Okay, thank you. For some reason, something was affecting my ability to level, and I changed this, and then changed the event to
Trigger:
Hero - Make (Owner of (Last created unit)) Heroes gain 0.00% experience from future kills
and now it works... Odd.

I have another problem. The only triggers in my map that order units to move tell them to move to a certain region. For some reason units are moving back, seemingly randomly, to where they started. I have no idea what the problem is. Are there unit order bugs or something?

1 more problem. My floating text wont die. It used to too, which is odd, as I havnt changed anything...

Trigger:
Floating Text - Create floating text that reads +1 Int above (Attacking unit) with Z offset 0.00, using font size 12.00, color (0.00%, 0.00%, 100.00%), and 0.00% transparency
Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
11-22-2006, 11:08 PM#2
Daxtreme
It will prevent it from non-triggered leveling, as in killing creeps.
11-22-2006, 11:19 PM#3
st33m
Okay, thank you. For some reason, something was affecting my ability to level, and I changed this, and then changed the event to
Trigger:
Hero - Make (Owner of (Last created unit)) Heroes gain 0.00% experience from future kills
and now it works... Odd.

I have another problem. The only triggers in my map that order units to move tell them to move to a certain region. For some reason units are moving back, seemingly randomly, to where they started. I have no idea what the problem is. Are there unit order bugs or something?

1 more problem. My floating text wont die. It used to too, which is odd, as I havnt changed anything...

Trigger:
Floating Text - Create floating text that reads +1 Int above (Attacking unit) with Z offset 0.00, using font size 12.00, color (0.00%, 0.00%, 100.00%), and 0.00% transparency
Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds


EDIT: Reposted on first post so people can see these problems.
11-23-2006, 12:20 AM#4
Daxtreme
The units you order to move... Are they owned by neutral players?

Add the action "Floating Text - Disable Permanence for (Last created Floating text)" between the 2 others.
11-23-2006, 12:32 AM#5
st33m
The units are owned by computer players.

The floating text thing worked fine a minute ago though T_T But okay.

EDIT: I take it you mean
Trigger:
Floating Text - Change (Last created floating text): Disable permanence
?
11-23-2006, 12:36 AM#6
Daxtreme
Computer players? You mean, player 1 to 12 ?

Strange... Neutral creeps come back to their spot, but not computers. You might want to delete the Melee Initialization triggers if you haven't already.

Yes, I meant that action.
11-23-2006, 12:45 AM#7
st33m
I did. I really dont know why they are doing it... Also, the floating text works now, thanks.
11-23-2006, 12:55 AM#8
Daxtreme
Np.

For the units return, try re-ordering them every x second.
11-23-2006, 12:58 AM#9
st33m
Ehhh...
11-23-2006, 01:05 AM#10
Daxtreme
Still better than watching them go back at their original position :P
11-23-2006, 01:58 PM#11
oNdizZ
do the units return before they have arrived to the real destination or afterwards?

have you tried with removing the units guard position?
Trigger:
AI - Ignore (Last created unit)'s guard position
native RemoveGuardPosition takes unit hUnit returns nothing
11-23-2006, 03:49 PM#12
blu_da_noob
If they are owned by neutral players, go to gameplay constants and set creep guard distance (I think it's called that... might be return distance) to 99999. If owned by a non-neutral player, see above.