Hello everyone I'd need help in coding a simple plugin/script to add items and actors from array variables.
Let's say I have a string like:
John, Mary, Sword, Shield, Matthew, Spear
I put the variable 01 to be an array of those strings
variable 01: [John, Mary, Potion, Mana Potion, Matthew, Spear]
now, I have a txt list of corresponding Name and database id number:
names.txt:
Mary: 001
Matthew: 002
John: 003
...
...
items.txt
Potion: 001
Mana Potion: 002
...
...
weapons.txt
Sword: 001
Spear: 002
How can I write a small plugin to execute a plugin command to add all the array stuff?
It should
1) compare the array strings with the text files
2) find which id number each string is
3) add the id number for every txt category (weapon, item, actor, and so on).
Let's say I have a string like:
John, Mary, Sword, Shield, Matthew, Spear
I put the variable 01 to be an array of those strings
variable 01: [John, Mary, Potion, Mana Potion, Matthew, Spear]
now, I have a txt list of corresponding Name and database id number:
names.txt:
Mary: 001
Matthew: 002
John: 003
...
...
items.txt
Potion: 001
Mana Potion: 002
...
...
weapons.txt
Sword: 001
Spear: 002
How can I write a small plugin to execute a plugin command to add all the array stuff?
It should
1) compare the array strings with the text files
2) find which id number each string is
3) add the id number for every txt category (weapon, item, actor, and so on).