H
HenrikGoSu
Guest
This rly good tutorial i would +rep u if i cuold xD
u dont need to respond like i owe u now im not gonna help
The Save Code can not work if Hero[(Player number (Triggering player))] Variable is not defined.
master maste said:Quote: hey Chocobo how did you make a variable for storing gold, or how would you?
Double Quote: sorry I just thought being a save/load code it would save gold. . .
If you want a Save Load code that saves Gold and Wood, I recommand you to read the Tutorial and to use Effane's Triggers located here :
http://www.thehelper.net/forums/sho...?t=37153&page=1
http://www.thehelper.net/forums/att...tachmentid=5830
The Save Code can not work if Hero[(Player number (Triggering player))] Variable is not defined.
Solidhadriel said:So is that the Hero Variable? If I understand this correctly...
Your talking about a Variable[Subscript]. Now, the Variable in this case is Hero. The subscript is PlayerNumber OF Triggering Player. What am I defining when I make my heros? Do I set the variable number of Heros to something?
Edit: Where the heck to I define this? Or is it so easy im just making it complicated on myself? lol.
Solidhadriel said:Do i do this for each player in the save 'save' trigger?
Hero[1] = Player 1
Hero[2] = Player 2
Hero[3] = Player 3
Hero[4] = Player 4
Hero[5] = Player 5
Hero[6] = Player 6
Hero[7] = Player 7
Hero[8] = Player 8
Hero[9] = Player 9
Hero[10] = Player 10
Hero[11] = Player 11
Hero[12] = Player 12
Solidhadriel said:Oh I get it!!! But wait..Still a question to ask... Where do I set the Heros to players?
[B]Hero[1] = Player 1's Hero
Hero[2] = Player 2's Hero
Hero[3] = Player 3's Hero
Hero[4] = Player 4's Hero
Hero[5] = Player 5's Hero
Hero[6] = Player 6's Hero
Hero[7] = Player 7's Hero
Hero[8] = Player 8's Hero
Hero[9] = Player 9's Hero
Hero[10] = Player 10's Hero
Hero[11] = Player 11's Hero
Hero[12] = Player 12's Hero[/B]
Drakens said:I think your prblem is you don't set the player's heros, you have to set them when each player chooses one.
In example if you have regions for select heros:
A unit enters (Region HeroX)
Create 1 HeroX for owner of entering unit at point...
Set Hero[(Owner of(Triggering unit)]= Las created unit
(simplified)
...I don't understand?Chocobo: You should tell us that before you post the problem that you solved alone.
Solidhadriel said:...I don't understand?