Dim *VILLAGENAME*News*VILLAGENAME*News = GetVar("VillageNews.ini", "News", "*VILLAGENAME*") Call PlayerMsg(index, GetPlayerName(index) & " , heres the news... ", 7) Call PlayerMsg(index, *VILLAGENAME* & "", 9)
C'mon Hail, don't be mean to the little post-count hunting newbs XP
Difficulty: I made this myself and found it relatively easy. 1/5. Well basically the script gets the Player's name and says "PlayerName", heres the news. And then the news is displayed in the text area.Code: [Select]Dim *VILLAGENAME*News*VILLAGENAME*News = GetVar("VillageNews.ini", "News", "*VILLAGENAME*") Call PlayerMsg(index, GetPlayerName(index) & " , heres the news... ", 7) Call PlayerMsg(index, *VILLAGENAME* & "", 9)Things you need to do...1)Create Villagenews.ini2)In it, create [News]*VILLAGENAME*News= NEWS HEREThings to change1)The villagename is obviously the name of the village you are dealing with, so change that.2)In villagenews.ini: News here is where you put the news3)In the script, change the color of the text if you want to. I set it blue. To create more villagenews...Since your game will obviously have more than one village, then copy this script and put it under another scriptedtile. Then just edit the things again.
So I must repeat NEWS in INI file and same to Call PlayerMsg?. Somone know?
[News]*VILLAGENAME*News= NEWS HERE" *VILLAGENAME*News= NEWS HERE" *VILLAGENAME*News= NEWS HERE" *VILLAGENAME*News= NEWS HERE"