HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Variable

08-29-2002, 03:21 PM#1
Guest
I want to knwo if a variable is set far all the game
or if i can re set him in game

if i can how to do this
08-29-2002, 03:54 PM#2
wacko
i am sure you could create another variable at the defualt settings and thus use triggers to go between the 2
08-29-2002, 05:38 PM#3
SuperIKI
To change a variable value, use the 'Set Variable' Action.
08-29-2002, 06:15 PM#4
Guest
ok :rolleyes: i know this

But i want to know if the varaible is the set for all the game or if can i can set him in game
and how to do this
08-29-2002, 07:56 PM#5
SuperIKI
WTF???

Maybe I don't quite get your question. For me it sounds like:

Is the variable set for the whole game or can I change it?

If this is your question, I've already given the correct respsonse to you.
But it seems that this doesn't satisfy you. So... WHAT THE HELL DO YOU WANT TO KNOW???
08-29-2002, 08:42 PM#6
Guest
Are you asking if you can CREATE/DESTROY a variable in game? I don't see how, bu I don't see why, either.
08-29-2002, 08:59 PM#7
Guest
The French and the English language.... :S
08-30-2002, 03:05 PM#8
Guest
Ok .....

I've done a sort of hero arena.
and i've try to lock the cam behind the hero
here no pbl (but i need to set variable for ex :

Event
Unit type _ entering in P1 gen

Condition
unit player = player 1

Action
set P1heros = entering unit

(it looks like it)

And i my game when a hero dies he's removed and an other is created
here pbl : how can i do to set P1heros = new heros ???
(the trigger from up doesn't work)

i hope you'll all understand:D
08-30-2002, 04:37 PM#9
Unindel
on the trigger that removes and makes new unit:

remove - p1heroes
create - 1 ___ for player 1 at ____
set p1heroes = (last created unit)

last created unit is a function
08-30-2002, 08:36 PM#10
Guest
It works but the cam don't follow the hero
the camera turn but it don't follow.....:(

plz how can i do :( :( :( :(
08-31-2002, 07:00 PM#11
Unindel
err, well i suppose after set p1heroes=(last created unit) just have an action that lock the camera onto p1heroes
08-31-2002, 08:41 PM#12
Guest
:D :D :D :D :D :D :D :D :p

did'nt thought to it

IT WOOOOOOOOOORKS

:D :D :D :D :D :D :D :D :p