Right so basically i am looking for a code that transforms the user to make them stronger.
Right i will just explain the kind of Transformation code i am looking for.
The verb may be called Tramsform (or somehting like that) and what it does is that it changes the user's icon to something different. I have got the whole icon changing codes but i dont know how to improve their stats like to make the user stronger and better defense e.t.c. and also i would like the transformation to only last for atleast 3 minutes.
SUMMARY!
i need a good transformation code that changes the user's icon and stats (strength, defense e.t.c.)
Please i need your help
Thank-You in Advance
ID:158508
Aug 14 2009, 6:20 am
|
|
Aug 14 2009, 6:29 am
|
|
In response to Donut_eater
|
|
Donut_eater wrote:
> mob/verb/transform() Right the stat changing thing works, but i just realised 3 minutes is a bit long for this transformation so could you (or someone) tell me how to change it to last for 1 minute? Also when i transform and the transformation comes to an end my icon does not change back to its original icon. how do i fix this problem? |
In response to Runney001
|
|
Runney001 wrote:
Donut_eater wrote: > > mob/verb/transform() Right the stat changing thing works, but i just realised 3 minutes is a bit long for this transformation so could you (or someone) tell me how to change it to last for 1 minute? Ok sleep(time) BTW time in byond is 1/10ths of a second. so 600 = 1 minute. as ur your changing back icon mob/verb/transform() This should work |
In response to Gamemakingdude
|
|
Don't post things that "should" work. Test it yourself!
mob THAT works, and is actually commented and has a much better way of going about that. |
In response to Runney001
|
|
In response to Vic Rattlehead
|
|
Vic Rattlehead wrote:
Don't post things that "should" work. Test it yourself! > mob THAT works, and is actually commented and has a much better way of going about that. Yeah thanks it worked, but i have another issue, when i click transform i transform and gain stats and a change of icon but if i keep clicking transform he keeps transforming and gaining stats, how do i make it that you can only transform once then the next time you can transform is after the transformation has ended? |
In response to Runney001
|
|
mob There, I added the transformed var in there that it should read... i didnt test it out, but eh, its just one var, not hard to change or take out... To prevent it from happening though, you have to put certain things like transformed=1 after so much coding.... (Future reference that is).... that should now prevent it from continuing to repeatedly transform |
In response to Seteden
|
|
Didn't really seem like you test your work either(Though I don't think 95% of the people do). You only need one /transforming variable, and then set it to 1 at the beginning and back to 0 at the end(Which you forgot). Having two of them is a waste of variables. Also the better way to do it I think is if Transform() was pressed again they revert. But so far Garthor has been the most correct in this post...
|