Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Development Chronicle X
#1
NARRATED VIDEO VERSION

Hello and welcome to the Development Chronicle X for Legacy of the Zodiac II. Basically this week I worked on quests that the Haven Groundskeeper gives you; he gives you 6 quests and some of them are quite humorous; the quests go up to level 25 and give gold, potions, EXP and one of them gives 3 bonus stat points. The quests for him are now done so I can move on to The Iron Mercenary where most of the larger quests for this area will be.

One thing I noticed was that since potions are not stackable; I can't use one line of script to give you let's say 10 potions; for example...

I want the first quest to give you 10 Small Health Potions and 5 Small Mana Potions; the easiest way to do that would be to do...

Code:
             Call GiveItem(Index, 898, 1, 10)
             Call GiveItem(Index, 901, 1, 5)

But since they are not stackable the script just gives you one of each; so in order for a quest to do this properly I have to do...

Code:
             Call GiveItem(Index, 898, 1, 1)
             Call GiveItem(Index, 898, 1, 1)
             Call GiveItem(Index, 898, 1, 1)
             Call GiveItem(Index, 898, 1, 1)
             Call GiveItem(Index, 898, 1, 1)
             Call GiveItem(Index, 898, 1, 1)
             Call GiveItem(Index, 898, 1, 1)
             Call GiveItem(Index, 898, 1, 1)
             Call GiveItem(Index, 898, 1, 1)
             Call GiveItem(Index, 898, 1, 1)            
             Call GiveItem(Index, 901, 1, 1)
             Call GiveItem(Index, 901, 1, 1)
             Call GiveItem(Index, 901, 1, 1)
             Call GiveItem(Index, 901, 1, 1)
             Call GiveItem(Index, 901, 1, 1)

Quite annoying hm? Well it is pretty annoying; the last quest he gives you rewards 35 Small Health Potions and 30 Small Mana Potions; so just imagine how long that is! I mean; it's not hard to put down; I just copy and paste the lines; but it takes up MAJOR room on the script that could be just a simple small one liner; oh well :3.

I also figured since I have almost all the NPCs in I would just show you a few screenshots of the some of the beginning areas with the NPCs added in. So here is two screenshots with some of the beginning NPCs...

Here is one of the first spots you might train on; against some Roosters.

[Image: outskirtsofhaven2.png]

Here is the Grounds Keeper of Haven; he's outside of his dwelling in this screenshot.

[Image: outskirtsofhaven3.png]

That's all I have that I can show for this week; I know it's not much but oh well; time to work on The Iron Mercenary missions.

That is all for this week, see everyone next week!

Thanks for listening,

-Scythe
Reply
#2
Use a for loop:
Code:
Dim i
For i = 0 to 9
    Call GiveItem(Index, 898, 1, 1)
Next i
For i = 0 to 4
    Call GiveItem(Index, 901, 1, 1)
Next i
Reply
#3
Stomach Pulser Wrote:Use a for loop:
Code:
Dim i
For i = 0 to 9
    Call GiveItem(Index, 898, 1, 1)
Next i
For i = 0 to 4
    Call GiveItem(Index, 901, 1, 1)
Next i
Thanks, but I didn't know my friend had built a script so I could just make the Potion a Currency; define how much it heals with the script and set a limit to how many you can carry since it's stacked now.

-Scythe
Reply
#4
For the code make the second number how much you want to give.

Code:
Call GiveItem(index, 898, 9, 1)

Call GiveItem(index, 901, 4, 1)

I am pretty sure that will work.
Reply
#5
...Did you read what he said at all?


They aren't stackable.
Reply
#6
So original said to rewrite the code giveItem so that it is.
Reply
#7
You can't, XW is Closed Source.
Reply
#8
Doesn't matter since my friend (DarkDragoon) made a script so they are stackable; works out fine now.

-Scythe
Reply
#9
Funny, cause that script works for me perfectly fine in LX: Legends.
Reply
#10
I never used XW...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)