HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

problems with variable

05-09-2005, 07:22 PM#1
escpy
variables:
ReplaceLevel - Integer (integer), initial value: 0 (default)
ReplaceHP - Real (real), initial value: 0 (default)

actions:
Set ReplaceLevel = (Hero Experience of (Triggering Unit))
Game - Display to (all players) the text: (String(ReplaceLevel))
Set ReplaceHP = (Life of (Triggering Unit))
Game - Display to (all players) the text: (String(ReplaceHP))

what i see in the game ...

0
0.000

how do i solve it ?
05-09-2005, 07:27 PM#2
Naakaloh
Whichever unit you want to be recognized as the triggering unit is probably not being recognized when the event is detected to start the trigger. Give the event for the trigger. What you posted are actions not events.
05-10-2005, 07:33 AM#3
Raptor--
Quote:
Originally Posted by escpy
variables:
ReplaceLevel - Integer (integer), initial value: 0 (default)
ReplaceHP - Real (real), initial value: 0 (default)

actions:
Set ReplaceLevel = (Hero Experience of (Triggering Unit))
Game - Display to (all players) the text: (String(ReplaceLevel))
Set ReplaceHP = (Life of (Triggering Unit))
Game - Display to (all players) the text: (String(ReplaceHP))

what i see in the game ...

0
0.000

how do i solve it ?

if the 'triggering unit' doesn't exist, then the 'experience of a non-existant unit' is 0, likewise with life
what event are you using?
05-10-2005, 10:23 AM#4
escpy
hehe ... it solved .. thx anyway