theFarWilds.com http://thefarwilds.com/forum/ | |
More help would be requested http://thefarwilds.com/forum/viewtopic.php?f=14&t=1895 |
Page 1 of 1 |
Author: | Zblader [ Sun May 02, 2010 1:23 am ] |
Post subject: | More help would be requested |
I'm working on some more advanced scripts lately, but I'm having muchos problemos as usual. Knowing the reliability of the TFW community, I'll turn to you guys once again. {Script,Rebeling Peasants! (Advanced),177} is the problem. It's also been publicized in order to have the experts look at it's guts. |
Author: | angelatheist [ Sun May 02, 2010 1:25 am ] |
Post subject: | Re: More help would be requested |
int x = 0; int y = 0; should be outside the onNewRound function otherwise they get reset every round createEntity("Pilgrim",rando,randi,aiPlayer); createEntity("Pilgrim",rando,randi,aiPlayer); createEntity("Pilgrim",rando,randi,aiPlayer); will try to create 3 pilgrims in the same random location. rando, randi need to be re randomized between them. You could create a function to do this like int randi(){ return rand(11); } in y=7 the same location is being set twice I also don't see the entityCallback function in there |
Author: | Zblader [ Sun May 02, 2010 3:42 am ] |
Post subject: | Re: More help would be requested |
The only thing I'm not getting is callback. Hopefully you can put that into code for me? |
Author: | Zblader [ Sun May 02, 2010 3:31 pm ] |
Post subject: | Re: More help would be requested |
I'm trying to fix it, but I think a little more help is needed. Current Errors so far: Compile Errors: line:60, col:7 : Expression must be of boolean type line:67, col:7 : Expression must be of boolean type line:72, col:4 : No matching signatures to 'statusMsg(string&)' line:74, col:5 : Expression must be of boolean type line:82, col:7 : Expression must be of boolean type line:87, col:4 : No matching signatures to 'statusMsg(string&)' line:95, col:4 : No matching signatures to 'statusMsg(string&)' line:97, col:5 : Expression must be of boolean type |
Author: | angelatheist [ Sun May 02, 2010 11:14 pm ] |
Post subject: | Re: More help would be requested |
take a look at {Script,Rebelling Peasants! (fixed),183} |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |