Ok so like I said in my last post its a new way for power and I haven't done WaW coding for a while.
I have a trigger in my map that says how many seconds until the fuse goes bad and it says it has X seconds and counts down. The problem is, it gets stuck at 22 seconds. I debuged it and it was still counting down.
Also when the fuse blows your supposed to lose all your perks temporarily and it saves them in an array to make sure you get them back, and the problem Im having with that is the perk machine hintstrings aren't changing when the fuse blows.
Here is my code for watchFuse.gsc:
I was expecting errors because I have 0 knowledge of how to make triggers so if someone could help me with that too, that would be nice Sorry this is a lot of problems and I'm still trying to figure it out, its just helpful if I can't.
I also have this in _zombiemods_perks.gsc:
P.S. This isnt a pretty code, its just a base and it doesnt fully do everything I want it to so dont judge me! As in perk machines wont turn off, just change hint string, and I want to make perks gray out when fuse blows, and a sound to play, ect. It will be epic if I can get it to work!
Hintstings aren't going out as it should be if( !IsDefined( fuse ) ) // Text else // Text. I believe. Maybe try that then what you have set up. Also I believe it might have to be threaded - This is actually a yes now that I remember. I am working on why countdown isn't working.
Hintstings aren't going out as it should be if( !IsDefined( fuse ) ) // Text else // Text. I believe. Maybe try that then what you have set up. Also I believe it might have to be threaded. However I can't remember don't have my normal pc as it stopped working so I am just throwing out ideas now. I am working on why countdown isn't working.
Yea its stuck at 25 now also I dont think it would be the !IsDefined thing because that would be if the perks were being set to default text and also one more thing i thought of, in the set string function it says "self sethint....." so would I thread the trigger of the perk machine to fix that?
You have to get Machines = GetEntArray( "WhateverIsTheSameForThemAll", "targetname" ); Oh to get the perk from there just put Perk = Machines.script_notworthy and thread on that (Perk). Hopefully that should fix that problem. This can be found at the top somewhere of _zombiemode_perks. Also Timer I believe will get stuck if HintStings are changed to much. There should be and i in [] for Perk and Machines.script_noteworthy if you can't see them.
You have to get Machines = GetEntArray( "WhateverIsTheSameForThemAll", "targetname" ); Oh to get the perk from there just put Perk = Machines.script_notworthy and thread on that (Perk). Hopefully that should fix that problem. This can be found at the top somewhere of _zombiemode_perks. Also Timer I believe will get stuck if HintStings are changed to much.
I did this for the threading(gonna test now): And damn, so like would it get stuck if it only changed once every 10 minutes? because I need it to say one that says "Press f to change" and one that says "fuse is good" or something
I believe there is a limit. If I remember correctly others may have had problems and it is something to do with the engine. But yah the threading should be like this. Sorry for all the confusion. Don't have sublime or any of the WAW codes or gsc in front of me until I get a new pc or get mine fixed. But try Then to get the script_noteworthy do then thread on Example
I believe there is a limit. If I remember correctly others may have had problems and it is something to do with the engine. But yah the threading should be like this. Sorry for all the confusion. Don't have sublime or any of the WAW codes or gsc in front of me until I get a new pc or get mine fixed. But try Then to get the script_noteworthy do then thread on Example
That gave me a syntax error Thanks for the help tonight but Im really tired and cant stay up much longer so ill be on tomorrow working on it, if you think of anything tho just let me know
Counting down seconds in a hintstring just produces way too many for WaW's limit of 48 in total. You gotta find another way to count down (HUD elem for example).
Counting down seconds in a hintstring just produces way too many for WaW's limit of 48 in total. You gotta find another way to count down (HUD elem for example).
- Phil.
Ok, i can do a hud countdown but does that mean I cant change the hintstring to say "Not needed" then change to say "press *button* to change the fuse" like back and forth or would that hit a limit too, or is it just like 48 different ones?
Also I am confused with triggers will this do what i want, like wait till someone presses it then go to "changeFuse()"? Post Merge: June 03, 2014, 07:50:50 pm
lol wow, how did i miss that, i looked at that for like a minute and completely missed that Post Merge: June 03, 2014, 09:36:26 pmUpdated code. Most of it works, except it still doesn't change the hintstrings of perk machines and also it checks for the perks I have in a different way, it checks them but even if you have the perk it doesn't save to the savedPerks array.
You are saving them in savedPerks then loading in self.savedPerks. Also it is just if self hasperk(perks) the true isn't needed
yea I see the self.savedPerks but I was just testing somthing with the true, it wasnt there before. and i think the condition in the if is returning false or something because when i have the debug on it says "checking : (perk)" but it never says the "saving perk (perk)" thing so it never gets past that
yea I see the self.savedPerks but I was just testing somthing with the true, it wasnt there before. and i think the condition in the if is returning false or something because when i have the debug on it says "checking : (perk)" but it never says the "saving perk (perk)" thing so it never gets past that
The only things I can think of is remove the == true and also what is self.SavedPerks defined to as it isn't in that script so it would not print but it would save to savedPerks. You then have it setperk to self.savedperks when according to that script you are saving to savedperks.If I can get either of my PCs working I'll show you what I mean.