| 10-25-2003, 03:04 PM | #1 |
I am posting this question here since it is about editing the editor (···) In hopes to find a way to make a Custom Script function I started editing TriggerData.txt I found that using (space) as the name for the a function and scriptcode as argument I can create it! , unfortunally I couldn't find a way to make it to make the editor think that the dummy function returns everything Is there a way to do it? If there isn't I will have to make a (space) function that returns boolean a (space)(space) function that returns integer and ... and ... until I make 16+ spaces function. too bad the spaces are not ignored when compiling the triggers. I can also create dummy functions like function ReturnInteger takes integer returns integer that in triggerdata.txt take scriptcode, but I will need a system like WeU to implement the functions... |
| 10-25-2003, 04:09 PM | #2 |
a function can always have only one return type, there's nothing to do about it. if the declared return type would be handle you could actually return everything you like (because all other types extend the handle type). But you couldn't use that returned handle in any other GUI action just because none of these takes a handle. |
| 10-25-2003, 09:51 PM | #3 |
I will have to use dummy functions then |
| 10-31-2003, 05:51 AM | #4 |
You can always create it as a new handler, (ie: jimmyjimmy) then just make a conversion function which links to jimmyjimmy. :) Hope this helps. |
| 10-31-2003, 11:24 AM | #5 |
